Changeset 11415 for code/branches/Dialogue_FS17/data/gui/scripts
- Timestamp:
- May 11, 2017, 3:04:50 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Dialogue_FS17/data/gui/scripts/Dialogue.lua
r11413 r11415 97 97 local detailsButton = winMgr:createWindow("MenuWidgets/Button", "/DetailsButton") 98 98 local a1 = orxonox.DialogueManager:getInstance():getanswers1() 99 detailsButton:setPosition(CEGUI.UVector2(CEGUI.UDim(0. 3, P.imageHeight+2*P.buttonWidth),CEGUI.UDim(0, (P.imageHeight-P.textHeight)/2)))100 detailsButton:setSize(CEGUI.UVector2(CEGUI.UDim(0, P.buttonWidth), CEGUI.UDim(0, P.textHeight)))99 detailsButton:setPosition(CEGUI.UVector2(CEGUI.UDim(0.1, 0),CEGUI.UDim(0.25, 0))) 100 detailsButton:setSize(CEGUI.UVector2(CEGUI.UDim(0, 575), CEGUI.UDim(0, P.textHeight))) 101 101 detailsButton:setText(a1) 102 102 orxonox.GUIManager:subscribeEventHelper(detailsButton, "Clicked", P.name ..".a1Button_clicked") 103 root:addChildWindow(detailsButton)103 P.wrapper:addChildWindow(detailsButton) 104 104 105 105 local a2Button = winMgr:createWindow("MenuWidgets/Button", "/a2Button") 106 106 local a2 = orxonox.DialogueManager:getInstance():getanswers2() 107 a2Button:setPosition(CEGUI.UVector2(CEGUI.UDim(0. 3, P.imageHeight+40+2*P.buttonWidth),CEGUI.UDim(0, (P.imageHeight-P.textHeight)/2)))108 a2Button:setSize(CEGUI.UVector2(CEGUI.UDim(0, P.buttonWidth), CEGUI.UDim(0, P.textHeight)))107 a2Button:setPosition(CEGUI.UVector2(CEGUI.UDim(0.1, 0),CEGUI.UDim(0.4, 0))) 108 a2Button:setSize(CEGUI.UVector2(CEGUI.UDim(0, 575), CEGUI.UDim(0, P.textHeight))) 109 109 a2Button:setText(a2) 110 110 orxonox.GUIManager:subscribeEventHelper(a2Button, "Clicked", P.name ..".a2Button_clicked") 111 root:addChildWindow(a2Button)111 P.wrapper:addChildWindow(a2Button) 112 112 113 113 … … 139 139 140 140 function P.a2Button_clicked(e) 141 orxonox. DialogueManager:getInstance():a2clicked()141 orxonox.CommandExecutor:execute("OrxonoxOverlay toggleVisibility Dialogue") 142 142 end 143 143
Note: See TracChangeset
for help on using the changeset viewer.