Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 5, 2009, 9:33:56 PM (15 years ago)
Author:
cmueri
Message:

The menu is now able to switch between normal and derive mouse input.

Location:
code/branches/presentation2/data/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/data/gui/layouts/MouseControlsMenu.layout

    r6238 r6251  
    7272            <Window Type="TaharezLook/Checkbox" Name="orxonox/MouseInvertCheckbox" >
    7373                <Property Name="Text" Value="Invert mouse" />
     74                <Property Name="Disabled" Value="true" />
    7475                <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
    7576                <Property Name="UnifiedAreaRect" Value="{{0.39,0},{0.85,0},{0.61,0},{0.95,0}}" />
     
    8485        </Window>
    8586        <Window Type="TaharezLook/StaticText" Name="orxonox/MouseControlsAvailable" >
    86             <Property Name="Text" Value="The button functions are not yet available." />
     87            <Property Name="Text" Value="The invert mouse button is not yet available." />
    8788            <Property Name="TextColours" Value="FFFF0000" />
    8889            <Property Name="InheritsAlpha" Value="False" />
  • code/branches/presentation2/data/gui/scripts/MouseControlsMenu.lua

    r6239 r6251  
    8686        derivewindow:setSelected(false)
    8787        block = false
    88         -- normal mouse input
    8988        orxonox.CommandExecutor:execute("config KeyBinder bDeriveMouseInput_ false")
    9089    end
     
    9695        normalwindow:setSelected(false)
    9796        block = false
    98         -- derive mouse input
    9997        orxonox.CommandExecutor:execute("config KeyBinder bDeriveMouseInput_ true")
    10098    end
     
    103101function P.MouseInvertCheckbox_clicked(e)
    104102    -- invert mouse
    105     debug("event: invert mouse")
    106103end
    107104
Note: See TracChangeset for help on using the changeset viewer.