Changeset 11233 for code/branches/Highscore_HS16/data
- Timestamp:
- Oct 17, 2016, 3:56:17 PM (8 years ago)
- Location:
- code/branches/Highscore_HS16/data/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/Highscore_HS16/data/gui/layouts/MainMenu.layout
r6746 r11233 11 11 <Property Name="Text" Value="Quickstart" /> 12 12 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 13 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.2 875,0},{0.6,0},{0.3375,0}}" />13 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.25,0},{0.6,0},{0.3,0}}" /> 14 14 <Event Name="Clicked" Function="MainMenu.QuickGameTestButton_clicked"/> 15 15 </Window> … … 17 17 <Property Name="Text" Value="Singleplayer" /> 18 18 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 19 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.3 625,0},{0.6,0},{0.4125,0}}" />19 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.325,0},{0.6,0},{0.375,0}}" /> 20 20 <Event Name="Clicked" Function="MainMenu.SingleplayerButton_clicked"/> 21 21 </Window> … … 23 23 <Property Name="Text" Value="Multiplayer" /> 24 24 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 25 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.4 375,0},{0.6,0},{0.4875,0}}" />25 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.4,0},{0.6,0},{0.45,0}}" /> 26 26 <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"/> 27 33 </Window> 28 34 <Window Type="MenuWidgets/Button" Name="orxonox/SettingsButton" > 29 35 <Property Name="Text" Value="Settings" /> 30 36 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 31 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.5 125,0},{0.6,0},{0.5625,0}}" />37 <Property Name="UnifiedAreaRect" Value="{{0.4,0},{0.55,0},{0.6,0},{0.6,0}}" /> 32 38 <Event Name="Clicked" Function="MainMenu.SettingsButton_clicked"/> 33 39 </Window> … … 35 41 <Property Name="Text" Value="Credits" /> 36 42 <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}}" /> 38 44 <Event Name="Clicked" Function="MainMenu.CreditsButton_clicked"/> 39 45 </Window> … … 41 47 <Property Name="Text" Value="Exit" /> 42 48 <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}}" /> 44 50 <Event Name="Clicked" Function="MainMenu.ExitButton_clicked"/> 45 51 </Window> -
code/branches/Highscore_HS16/data/gui/scripts/MainMenu.lua
r8079 r11233 2 2 3 3 local P = createMenuSheet("MainMenu") 4 P.loadAlong = { "SingleplayerMenu", "MultiplayerMenu", " SettingsMenu", "CreditsMenu" }4 P.loadAlong = { "SingleplayerMenu", "MultiplayerMenu", "HighscoreMenu", "SettingsMenu", "CreditsMenu" } 5 5 6 6 function P.onLoad() … … 22 22 23 23 P:setButton(4, 1, { 24 ["button"] = winMgr:getWindow("orxonox/HighscoreButton"), 25 ["callback"] = P.MultiplayerButton_clicked 26 }) 27 28 P:setButton(5, 1, { 24 29 ["button"] = winMgr:getWindow("orxonox/SettingsButton"), 25 30 ["callback"] = P.SettingsButton_clicked 26 31 }) 27 32 28 P:setButton( 5, 1, {33 P:setButton(6, 1, { 29 34 ["button"] = winMgr:getWindow("orxonox/CreditsButton"), 30 35 ["callback"] = P.CreditsButton_clicked 31 36 }) 32 37 33 P:setButton( 6, 1, {38 P:setButton(7, 1, { 34 39 ["button"] = winMgr:getWindow("orxonox/ExitButton"), 35 40 ["callback"] = P.ExitButton_clicked … … 51 56 end 52 57 58 function P.HighscoreButton_clicked(e) 59 showMenuSheet("HighscoreMenu", true) 60 end 61 53 62 function P.SettingsButton_clicked(e) 54 63 showMenuSheet("SettingsMenu", true)
Note: See TracChangeset
for help on using the changeset viewer.