Changeset 7163 for code/trunk/src/libraries/core/GUIManager.h
- Timestamp:
- Aug 11, 2010, 8:55:13 AM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/core/GUIManager.h
r6749 r7163 84 84 //! Creates a new InputState to be used with a GUI Sheet 85 85 const std::string& createInputState(const std::string& name, TriBool::Value showCursor = TriBool::True, TriBool::Value useKeyboard = TriBool::True, bool bBlockJoyStick = false); // tolua_export 86 LuaState* getLuaState(void) 87 { return this->luaState_.get(); } 86 88 87 89 //! Returns the root window for all menu sheets … … 95 97 inline void setPlayer(const std::string& guiname, PlayerInfo* player) 96 98 { this->players_[guiname] = player; } 97 inline PlayerInfo* getPlayer(const std::string& guiname) const 98 { std::map<std::string, PlayerInfo*>::const_iterator it = this->players_.find(guiname); return (it != this->players_.end()) ? it->second : 0; } 99 inline orxonox::PlayerInfo* getPlayer(const std::string& guiname) const { std::map<std::string, PlayerInfo*>::const_iterator it = this->players_.find(guiname); return (it != this->players_.end()) ? it->second : 0; } // tolua_export 99 100 100 101 // TODO: Temporary hack because the tolua exported CEGUI method does not seem to work … … 105 106 private: 106 107 GUIManager(const GUIManager& instance); //!< private and undefined copy c'tor (this is a singleton class) 108 void executeCode(const std::string& str); 107 109 108 void executeCode(const std::string& str);109 110 template <typename FunctionType> 110 111 bool protectedCall(FunctionType function); 111 112 112 113 // keyHandler functions 113 void keyPressed (const KeyEvent& evt);114 void keyReleased(const KeyEvent& evt);114 void buttonPressed (const KeyEvent& evt); 115 void buttonReleased(const KeyEvent& evt); 115 116 116 117 // mouseHandler functions
Note: See TracChangeset
for help on using the changeset viewer.