Changeset 11428 for code/branches/Dialogue_FS17/data/gui/scripts
- Timestamp:
- May 18, 2017, 4:06:53 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Dialogue_FS17/data/gui/scripts/Dialogue.lua
r11422 r11428 146 146 147 147 function P.a1Button_clicked(e) 148 orxonox.DialogueManager:getInstance():a1clicked() 149 P.update() 148 local ending = orxonox.DialogueManager:getInstance():theEnd() 149 150 if ending then 151 orxonox.CommandExecutor:execute("OrxonoxOverlay toggleVisibility Dialogue") 152 153 154 else 155 orxonox.DialogueManager:getInstance():a1clicked() 156 P.update() 157 end 150 158 end 151 159 152 160 function P.a2Button_clicked(e) 153 orxonox.DialogueManager:getInstance():a2clicked() 161 local ending = orxonox.DialogueManager:getInstance():theEnd() 162 163 if ending then 164 orxonox.CommandExecutor:execute("OrxonoxOverlay toggleVisibility Dialogue") 165 166 167 else 168 orxonox.DialogueManager:getInstance():a2clicked() 169 P.update() 170 end 171 154 172 end 155 173
Note: See TracChangeset
for help on using the changeset viewer.