GE Lua Documentation

Press F to search!

messageBox

Definition


-- @/=[C]:-1
function messageBox(...)

Callers

@/lua/ge/extensions/editor/api/core.lua
  if editor.dirty or anyToolDirty() and editor.initialized then
    local result = messageBox("World Editor - Exiting BeamNG", "You have edited this level.\nDo you want to save your changes made to this level ?", 4, 2)
    if result == 1 then
        editor.logError("Cannot save as directly into /levels folder, you need to specify a subfolder")
        messageBox("World Editor - Save As", "Cannot save as directly into /levels folder, you need to specify a subfolder", 0, 0)
      else
        editor.saveLevelAs(newPath)
        messageBox("World Editor - Save As", "The new level folder data was copied, you need to manually fix issues with remaining paths inside various files, where needed", 0, 0)
      end
@/lua/ge/extensions/core/modmanager.lua
    log('E', 'unpackMod', 'Error : could not safe delete: ' .. dumps(filename))
    messageBox("BeamNG - Modmager",
    "The zip file could not be deleted properlly.\nThis happens when it's open by another software.\nYou need to close that software and manually delete the file bellow :\n"..dumps(filename), 0, 0)