Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11394


Ignore:
Timestamp:
Apr 6, 2017, 4:17:58 PM (8 years ago)
Author:
rrogge
Message:

DialogueManager not loadable

Location:
code/branches/Dialogue_FS17
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Dialogue_FS17/data/levels/events.oxw

    r9985 r11394  
    5757    -->
    5858
     59<DistanceTrigger name="test" position="0,0,0" target="Pawn" distance=25 stayActive="true"/>
     60    <Backlight position="0,0,0" visible=true frequency=0.6 amplitude=3 material="Flares/lensflare" colour="1,0,0"/>
     61    <DialogueManager question="Hello World3">
     62      <events>
     63        <execute>
     64           <EventListener event="test" />
     65        </execute>
     66      </events>
     67    </DialogueManager>
    5968
    6069    <!-- red -->
  • code/branches/Dialogue_FS17/src/modules/dialogue/DialogueManager.cc

    r11393 r11394  
    1515namespace orxonox {
    1616        //ManageScopedSingleton(DialogueManager, ScopeID::ROOT, false);
    17         RegisterAbstractClass(DialogueManager).inheritsFrom<Configurable>();
     17        RegisterAbstractClass(DialogueManager).inheritsFrom<BaseObject>();
    1818
    1919
     
    2323        DialogueManager::DialogueManager(Context* context): BaseObject(context){
    2424                RegisterObject(DialogueManager);
    25                 this->setConfigValues();
     25               
    2626               
    2727
     
    5050        bool DialogueManager::execute(bool bTriggered, BaseObject* trigger)
    5151    { 
    52         if(!bTriggered) return false;
     52        //if(!bTriggered) return false;
     53
     54
    5355
    5456        orxout() << "bTriggered is " << bTriggered;
Note: See TracChangeset for help on using the changeset viewer.