- Timestamp:
- Apr 12, 2010, 11:23:45 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamestates2/data/gui/scripts/KeyBindMenu.lua
r6662 r6704 126 126 plus:setPosition(CEGUI.UVector2(CEGUI.UDim(0, offset), CEGUI.UDim(0.15, 0))) 127 127 plus:setText("add") 128 orxonox.GUIManager:subscribeEventHelper(plus, "Clicked", P. filename .. ".KeyBindPlus_clicked")128 orxonox.GUIManager:subscribeEventHelper(plus, "Clicked", P.name .. ".KeyBindPlus_clicked") 129 129 line:addChildWindow(plus) 130 130 offset = offset + addWidth + spaceWidth … … 141 141 button:setSize(CEGUI.UVector2(CEGUI.UDim(0, buttonWidth), CEGUI.UDim(0.7, 0))) 142 142 button:setPosition(CEGUI.UVector2(CEGUI.UDim(0, offset), CEGUI.UDim(0.15, 0))) 143 orxonox.GUIManager:subscribeEventHelper(button, "Clicked", P. filename .. ".KeyBindButton_clicked")144 --button:subscribeScriptedEvent("EventClicked", P. filename .. ".KeyBindButton_clicked")143 orxonox.GUIManager:subscribeEventHelper(button, "Clicked", P.name .. ".KeyBindButton_clicked") 144 --button:subscribeScriptedEvent("EventClicked", P.name .. ".KeyBindButton_clicked") 145 145 line:addChildWindow(button) 146 146 offset = offset + buttonWidth … … 150 150 clear:setPosition(CEGUI.UVector2(CEGUI.UDim(0, offset), CEGUI.UDim(0.15, 0))) 151 151 clear:setText("X") 152 orxonox.GUIManager:subscribeEventHelper(clear, "Clicked", P. filename .. ".KeyBindClear_clicked")152 orxonox.GUIManager:subscribeEventHelper(clear, "Clicked", P.name .. ".KeyBindClear_clicked") 153 153 line:addChildWindow(clear) 154 154 offset = offset + clearWidth + spaceWidth
Note: See TracChangeset
for help on using the changeset viewer.