Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 14, 2016, 1:39:14 PM (8 years ago)
Author:
maxima
Message:

merged the highscore branch to presentation

Location:
code/branches/Presentation_HS16
Files:
4 edited
2 copied

Legend:

Unmodified
Added
Removed
  • code/branches/Presentation_HS16

  • code/branches/Presentation_HS16/data/gui/layouts/MainMenu.layout

    r6746 r11339  
    1111            <Property Name="Text" Value="Quickstart" />
    1212            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
    13             <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.2875,0},{0.6,0},{0.3375,0}}" />
     13            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.25,0},{0.6,0},{0.3,0}}" />
    1414            <Event Name="Clicked" Function="MainMenu.QuickGameTestButton_clicked"/>
    1515        </Window>
     
    1717            <Property Name="Text" Value="Singleplayer" />
    1818            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
    19             <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.3625,0},{0.6,0},{0.4125,0}}" />
     19            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.325,0},{0.6,0},{0.375,0}}" />
    2020            <Event Name="Clicked" Function="MainMenu.SingleplayerButton_clicked"/>
    2121        </Window>
     
    2323            <Property Name="Text" Value="Multiplayer" />
    2424            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
    25             <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.4375,0},{0.6,0},{0.4875,0}}" />
     25            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.4,0},{0.6,0},{0.45,0}}" />
    2626            <Event Name="Clicked" Function="MainMenu.MultiplayerButton_clicked"/>
     27        </Window>
     28        <Window Type="MenuWidgets/Button" Name="orxonox/HighscoreButton" >
     29            <Property Name="Text" Value="Highscore" />
     30            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
     31            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.475,0},{0.6,0},{0.525,0}}" />
     32            <Event Name="Clicked" Function="MainMenu.HighscoreButton_clicked"/>
    2733        </Window>
    2834        <Window Type="MenuWidgets/Button" Name="orxonox/SettingsButton" >
    2935            <Property Name="Text" Value="Settings" />
    3036            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
    31             <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.5125,0},{0.6,0},{0.5625,0}}" />
     37            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.55,0},{0.6,0},{0.6,0}}" />
    3238            <Event Name="Clicked" Function="MainMenu.SettingsButton_clicked"/>
    3339        </Window>
     
    3541            <Property Name="Text" Value="Credits" />
    3642            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
    37             <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.5875,0},{0.6,0},{0.6375,0}}" />
     43            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.625,0},{0.6,0},{0.675,0}}" />
    3844            <Event Name="Clicked" Function="MainMenu.CreditsButton_clicked"/>
    3945        </Window>
     
    4147            <Property Name="Text" Value="Exit" />
    4248            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
    43             <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.6625,0},{0.6,0},{0.7125,0}}" />
     49            <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.7,0},{0.6,0},{0.75,0}}" />
    4450            <Event Name="Clicked" Function="MainMenu.ExitButton_clicked"/>
    4551        </Window>
  • code/branches/Presentation_HS16/data/gui/scripts/MainMenu.lua

    r8079 r11339  
    22
    33local P = createMenuSheet("MainMenu")
    4 P.loadAlong = { "SingleplayerMenu", "MultiplayerMenu", "SettingsMenu", "CreditsMenu" }
     4P.loadAlong = { "SingleplayerMenu", "MultiplayerMenu", "HighscoreMenu", "SettingsMenu", "CreditsMenu" }
    55
    66function P.onLoad()
     
    2222
    2323    P:setButton(4, 1, {
     24            ["button"] = winMgr:getWindow("orxonox/HighscoreButton"),
     25            ["callback"]  = P.MultiplayerButton_clicked
     26    })
     27
     28    P:setButton(5, 1, {
    2429            ["button"] = winMgr:getWindow("orxonox/SettingsButton"),
    2530            ["callback"]  = P.SettingsButton_clicked
    2631    })
    2732
    28     P:setButton(5, 1, {
     33    P:setButton(6, 1, {
    2934            ["button"] = winMgr:getWindow("orxonox/CreditsButton"),
    3035            ["callback"]  = P.CreditsButton_clicked
    3136    })
    3237
    33     P:setButton(6, 1, {
     38    P:setButton(7, 1, {
    3439            ["button"] = winMgr:getWindow("orxonox/ExitButton"),
    3540            ["callback"]  = P.ExitButton_clicked
     
    5156end
    5257
     58function P.HighscoreButton_clicked(e)
     59    showMenuSheet("HighscoreMenu", true)
     60end
     61
    5362function P.SettingsButton_clicked(e)
    5463    showMenuSheet("SettingsMenu", true)
  • code/branches/Presentation_HS16/data/gui/scripts/MiscConfigMenu.lua

    r9977 r11339  
    1818
    1919    P.commandList = {}
     20    table.insert(P.commandList, "Highscore playerName_")
    2021    table.insert(P.commandList, "KeyBinder mouseSensitivity_")
    2122    table.insert(P.commandList, "KeyBinder mouseSensitivityDerived_")
     
    4344
    4445    P.nameList = {}
     46    table.insert(P.nameList, "Playername")
    4547    table.insert(P.nameList, "Mouse sensitivity")
    4648    table.insert(P.nameList, "Mouse acceleration")
Note: See TracChangeset for help on using the changeset viewer.