Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11433


Ignore:
Timestamp:
May 18, 2017, 5:27:15 PM (8 years ago)
Author:
rrogge
Message:

Everything works

Location:
code/branches/Dialogue_FS17
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Dialogue_FS17/data/gui/scripts/Dialogue.lua

    r11432 r11433  
    5151
    5252function P.onLoad()
     53
    5354        orxout("loading")
    5455    P.wrapper = nil
     
    6061function P.onShow()
    6162        orxout("showing")
     63    orxonox.CommandExecutor:execute("setTimeFactor 0")
    6264    P.createInventory()
    6365    P.showing = true
     66
    6467end
    6568
    6669function P.onHide()
     70    orxonox.CommandExecutor:execute("setTimeFactor 1")
    6771    P.showing = false
    6872    P.cleanup(true)
     
    8791
    8892function P.createInventory()
     93
    8994    local pickupManager = orxonox.DialogueManager:getInstance()
    9095   
  • code/branches/Dialogue_FS17/data/levels/events.oxw

    r11432 r11433  
    7777    </NextQuestion>
    7878
     79    <DistanceTrigger name="test1" position="100,300,0" target="Pawn" distance=25 stayActive="true" />
     80    <Backlight position="100,300,0" visible=true frequency=0.6 amplitude=3 material="Flares/lensflare" colour="1,1,1"/>
     81   
     82    <NextQuestion  question="Wazzp bud?" a1="yes" a2="no" >
     83     <possibleQuestions>
     84        <NextQuestion  question="Do you like fish" a1="yep let me continue" a2="no actually not" />
     85        <NextQuestion  question="Whats your favourite pastime?" a1="Got a dentist's appointment" a2="this sucks" >
     86        <possibleQuestions>
     87          <NextQuestion  question="Whatever?" a1="yep" a2="leave me alone godammit" />
     88          <NextQuestion  question="Turtles then?" a1="..." a2="Im going now okay" />
     89        </possibleQuestions>
     90      </NextQuestion>
     91      </possibleQuestions>   
     92      <events>
     93        <execute>
     94           <EventListener event="test1" />
     95        </execute>
     96      </events>
     97    </NextQuestion>
     98
     99
    79100    <!-- red -->
    80101    <!--
  • code/branches/Dialogue_FS17/src/modules/dialogue/NextQuestion.cc

    r11432 r11433  
    6767       
    6868       
    69 
     69       
    7070
    7171        orxout() << "bTriggered is " << bTriggered << endl;
Note: See TracChangeset for help on using the changeset viewer.