Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 7, 2009, 9:45:39 PM (15 years ago)
Author:
dafrick
Message:

KeyBindMenu is working now. (Apart from some minor faults)
Found some commandExecutor("show/hideGUI …") in DecisionPopup, and another possible bug.
Added an InfoPopup

Location:
code/branches/presentation2/src/libraries/core/input
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/libraries/core/input/KeyBinderManager.cc

    r6182 r6266  
    3737#include "InputManager.h"
    3838#include "KeyDetector.h"
     39
     40#include <CEGUIWindow.h>
    3941
    4042namespace orxonox
     
    9092        else
    9193            this->bDefaultFileLoaded_ = false;
     94    }
     95   
     96    void KeyBinderManager::subscribeEventHelper(CEGUI::Window* window, const std::string& event, const std::string& function)
     97    {
     98        window->subscribeScriptedEvent(event, function);
    9299    }
    93100
  • code/branches/presentation2/src/libraries/core/input/KeyBinderManager.h

    r6214 r6266  
    3636#include "util/Singleton.h"
    3737#include "core/OrxonoxClass.h"
     38
     39#include <CEGUIForwardRefs.h>
    3840
    3941namespace orxonox //tolua_export
     
    7981        void setToDefault()
    8082            { this->setCurrent(this->defaultFilename_); }
     83           
     84        void subscribeEventHelper(CEGUI::Window* window, const std::string& event, const std::string& function); //tolua_export
    8185
    8286        //! Returns a pointer to a KeyBinder (creates it if not yet loaded)
     
    9195
    9296        //! Bind 'command' to any key pressed after this call (use with care!)
    93         inline void keybind(const std::string& command)
    94             { this->keybindInternal(command, false); }
     97        inline void keybind(const std::string& command) { this->keybindInternal(command, false); } //tolua_export
    9598        //! Bind 'command' to any key pressed after this call (use with care!), but temporarily (no file save)
    9699        inline void tkeybind(const std::string& command)
Note: See TracChangeset for help on using the changeset viewer.