[Orxonox-commit 1633] r6351 - code/branches/presentation2/data/gui/scripts
scheusso at orxonox.net
scheusso at orxonox.net
Mon Dec 14 20:20:09 CET 2009
Author: scheusso
Date: 2009-12-14 20:20:08 +0100 (Mon, 14 Dec 2009)
New Revision: 6351
Modified:
code/branches/presentation2/data/gui/scripts/KeyBindMenu.lua
Log:
keybinding now possible without scrolling again and again
Modified: code/branches/presentation2/data/gui/scripts/KeyBindMenu.lua
===================================================================
--- code/branches/presentation2/data/gui/scripts/KeyBindMenu.lua 2009-12-14 00:03:27 UTC (rev 6350)
+++ code/branches/presentation2/data/gui/scripts/KeyBindMenu.lua 2009-12-14 19:20:08 UTC (rev 6351)
@@ -199,6 +199,8 @@
end
function P.callback()
+ local pane = tolua.cast(winMgr:getWindow("orxonox/KeyBindPane"), "CEGUI::ScrollablePane")
+ local position = pane:getVerticalScrollPosition()
while table.getn(linesList) ~= 0 do
if linesList[1] ~= nil then
winMgr:destroyWindow(linesList[1]:getName())
@@ -212,6 +214,7 @@
if(InfoPopup ~= nil) then
InfoPopup.close()
end
+ pane:setVerticalScrollPosition( position )
end
function P.KeyBindBackButton_clicked(e)
More information about the Orxonox-commit
mailing list