Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6268 for code


Ignore:
Timestamp:
Dec 7, 2009, 10:06:30 PM (15 years ago)
Author:
dafrick
Message:

Added more Keybindings to the KeyBinMenu and the displayed names of the commands are now much more userfriendly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/data/gui/scripts/KeyBindMenu.lua

    r6266 r6268  
    1515    commandList = {}
    1616    table.insert(commandList, "fire 0")
    17     table.insert(commandList, "fire 1")
    18     table.insert(commandList, "fire 2")
     17    table.insert(commandList, "fire 1 | unfire")
     18    table.insert(commandList, "onpress fire 2")
     19    table.insert(commandList, "scale 1 moveRightLeft")
     20    table.insert(commandList, "scale -1 moveRightLeft")
     21    table.insert(commandList, "scale 1 moveFrontBack")
     22    table.insert(commandList, "boost")
     23    table.insert(commandList, "scale -1 moveFrontBack")
     24    table.insert(commandList, "scale 1 rotateRoll")
     25    table.insert(commandList, "scale -1 rotateRoll")
     26    table.insert(commandList, "scale 1 moveUpDown")
     27    table.insert(commandList, "scale -1 moveUpDown")
     28    table.insert(commandList, "openConsole")
     29    table.insert(commandList, "OverlayGroup toggleVisibility Debug")
     30    table.insert(commandList, "OverlayGroup toggleVisibility Stats")
     31    table.insert(commandList, "mouseLook")
     32    table.insert(commandList, "pause")
     33   
     34    nameList = {}
     35    table.insert(nameList, "Primary Fire")
     36    table.insert(nameList, "Secondary Fire")
     37    table.insert(nameList, "Fire Rocket")
     38    table.insert(nameList, "Steer Right")
     39    table.insert(nameList, "Steer Left")
     40    table.insert(nameList, "Give Thrust")
     41    table.insert(nameList, "Boost")
     42    table.insert(nameList, "Hit Breaks")
     43    table.insert(nameList, "Roll Right")
     44    table.insert(nameList, "Roll Left")
     45    table.insert(nameList, "Up")
     46    table.insert(nameList, "Down")
     47    table.insert(nameList, "Open Console")
     48    table.insert(nameList, "Show Debug")
     49    table.insert(nameList, "Show Stats")
     50    table.insert(nameList, "mouseLook")
     51    table.insert(nameList, "Pause")
    1952
    2053    local lineHeight = 30
     
    3669       
    3770        button:setText(orxonox.KeyBinderManager:getInstance():getCurrent():getBinding(v))
    38         command:setText(v)
     71        command:setText(nameList[k])
    3972       
    4073        orxonox.KeyBinderManager:getInstance():subscribeEventHelper(button, "Clicked", P.filename .. ".KeyBindButton_clicked")
Note: See TracChangeset for help on using the changeset viewer.