Changeset 8840 for code/branches/output/data/gui/scripts/QuestGUI.lua
- Timestamp:
- Aug 13, 2011, 11:58:07 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/data/gui/scripts/QuestGUI.lua
r8706 r8840 220 220 function P.selectQuest(list, quest) 221 221 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.") 223 223 list:setItemSelectState(list:getListboxItemFromIndex(0), true) -- Select first 224 224 return … … 240 240 list:setItemSelectState(list:getListboxItemFromIndex(index), true) 241 241 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.") 243 243 list:setItemSelectState(list:getListboxItemFromIndex(0), true) -- Select first 244 244 end … … 313 313 end 314 314 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...") 316 316 end 317 317 end
Note: See TracChangeset
for help on using the changeset viewer.