Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 13, 2011, 11:58:07 PM (13 years ago)
Author:
landauf
Message:

Exported orxout() and the output levels to lua, replaces logMessage() and cout().
Note that OutputDefinitions.h is now included in the tolua section of core, even though the file is in util. But I guess that's ok.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/data/gui/scripts/QuestGUI.lua

    r8706 r8840  
    220220function P.selectQuest(list, quest)
    221221    if quest == nil then -- If the input quest is nil, there is nothing to be selected, an error is output and the first quest is selected instead.
    222         cout(1, "Error in QuestGUI: selectQuest(), input quest is nil. Selecting first.")
     222        orxout(orxonox.level.internal_error, "Error in QuestGUI: selectQuest(), input quest is nil. Selecting first.")
    223223        list:setItemSelectState(list:getListboxItemFromIndex(0), true) -- Select first
    224224        return
     
    240240        list:setItemSelectState(list:getListboxItemFromIndex(index), true)
    241241    else -- If the quest isn't found an error is output and the first quest is selected instead.
    242         cout(1, "Error in QuestGUI: selectQuest(), input quest is not in list. Selecting first.")
     242        orxout(orxonox.level.internal_error, "Error in QuestGUI: selectQuest(), input quest is not in list. Selecting first.")
    243243        list:setItemSelectState(list:getListboxItemFromIndex(0), true) -- Select first
    244244    end
     
    313313            end
    314314        else
    315             cout(1, "Error in QuestGUI: changeToSubquest(), quest was nil. Ignoring...")
     315            orxout(orxonox.level.internal_error, "Error in QuestGUI: changeToSubquest(), quest was nil. Ignoring...")
    316316        end
    317317    end
Note: See TracChangeset for help on using the changeset viewer.