Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 1, 2016, 7:38:22 PM (9 years ago)
Author:
fvultier
Message:

Managed to call a C++ test function from a Lua script that gets executed when a button is pressed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/bindermFS16/src/orxonox/overlays/CampaignMenu.h

    r11150 r11162  
    3333#include "core/BaseObject.h"
    3434
    35 namespace orxonox
    36 {
    37 class _OrxonoxExport CampaignMenu : public BaseObject
    38     {
     35
     36namespace orxonox // tolua_export
     37{ // tolua_export
     38
     39        class _OrxonoxExport CampaignMenu // tolua_export
     40         : public BaseObject
     41    { // tolua_export
    3942    public:
    4043        CampaignMenu(Context* context);
    4144        ~CampaignMenu();
    42         void test();
    43         void loadnewmenu();
    44     };
    45 
    46 
    47 
    48 }
     45        static void test(); // tolua_export
     46        void loadNewMenu();
     47    };// tolua_export
     48} // tolua_export
    4949
    5050#endif /* _CampaignMenu_H__ */
Note: See TracChangeset for help on using the changeset viewer.