[Orxonox-commit 1634] r6352 - code/branches/presentation2/data/gui/scripts
dafrick at orxonox.net
dafrick at orxonox.net
Mon Dec 14 20:47:00 CET 2009
Author: dafrick
Date: 2009-12-14 20:47:00 +0100 (Mon, 14 Dec 2009)
New Revision: 6352
Modified:
code/branches/presentation2/data/gui/scripts/KeyBindMenu.lua
Log:
Adjusted commandButton size to fit the new commands.
Expanded KeyNameNiceifier to MouseAxes-type keys.
Modified: code/branches/presentation2/data/gui/scripts/KeyBindMenu.lua
===================================================================
--- code/branches/presentation2/data/gui/scripts/KeyBindMenu.lua 2009-12-14 19:20:08 UTC (rev 6351)
+++ code/branches/presentation2/data/gui/scripts/KeyBindMenu.lua 2009-12-14 19:47:00 UTC (rev 6352)
@@ -67,7 +67,7 @@
linesList = {}
lineHeight = 30
- commandWidth = 125
+ commandWidth = 150
buttonWidth = 145
clearWidth = 20
addWidth = 30
@@ -87,6 +87,8 @@
return "Key " .. string.sub(name, string.find(name, 'Key(.*)')+3)
elseif( group == "MouseButtons") then
return "Mouse " .. name
+ elseif( group == "MouseAxes" ) then
+ return "Mouse " .. string.sub(name, string.find(name, '.(.*)')+1) .. " " .. string.sub(name, 1, 1) .. "-Axes"
end
return key
end
More information about the Orxonox-commit
mailing list