Changeset 11718 for code/trunk/data
- Timestamp:
- Jan 7, 2018, 10:34:30 PM (7 years ago)
- Location:
- code/trunk/data
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/data/gui/layouts/Dialogue.layout
r11451 r11718 3 3 <GUILayout > 4 4 <Window Type="DefaultWindow" Name="orxonox/Dialogue/Background" > 5 5 <Property Name="InheritsAlpha" Value="False" /> 6 6 <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" /> 7 7 <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" /> -
code/trunk/data/gui/layouts/SingleplayerMenu.layout
r10258 r11718 33 33 <Property Name="HorzScrollbar" Value="False" /> 34 34 <Property Name="UnifiedAreaRect" Value="{{0.1,0},{0.725,0},{0.9,0},{0.875,0}}" /> 35 35 <Property Name="HorzFormatting" Value="WordWrapLeftAligned" /> 36 36 </Window> 37 37 </Window> -
code/trunk/data/gui/scripts/HighscoreMenu.lua
r11356 r11718 12 12 13 13 function P.onLoad() 14 14 P.createLevelList() 15 15 end 16 16 17 17 function P.onShow() 18 19 20 21 22 18 19 -- reset tables 20 P.highscoreList = {} 21 P.tabList = {} 22 P.linesList = {} 23 23 24 25 26 27 28 29 30 24 -- fetch save scores and write it into the list 25 for i=orxonox.Highscore:getInstance():getNumberOfHighscores()-1,0,-1 do 26 table.insert(P.highscoreList, orxonox.Highscore:getInstance():getHighscore(i)) 27 28 end 29 30 -- read minigames out of the levelList 31 31 for k,v in pairs(P.levelList) do 32 32 if(v:getName() ~= "Hover level" and v:getName() ~= "Pong") then -- hover and pong dont contain relevant scores … … 38 38 function P.onHide() 39 39 40 41 42 43 40 -- delete old windows to reload them on show 41 local tabControl = winMgr:getWindow("orxonox/HighscoreTabControl") 42 for k,v in pairs(P.tabList) do 43 local default = winMgr:getWindow(v) 44 44 tabControl:removeChildWindow(default) 45 45 winMgr:destroyWindow(default) 46 46 end 47 47 end … … 68 68 table.insert(P.tabList, tabName) 69 69 -- create new tab window with desired name 70 70 local default = (winMgr:createWindow("DefaultWindow", tabName)) 71 71 default:setText(name) 72 72 default:setProperty("UnifiedMaxSize", "{{1,0},{1,0}}") … … 79 79 local offset = 2 80 80 for k,v in pairs(P.highscoreList) do 81 82 83 84 85 86 87 88 pane:addChildWindow(line)89 81 -- split the score ("Playername./.game./.score") 82 local splitlist = P.Split(v,"./.") 83 if(splitlist[2] == name)then 84 local line = P.createPickupEntry(tabName .. k,k,tag) 85 table.insert(P.linesList, line) 86 line:setYPosition(CEGUI.UDim(0,offset)) 87 offset = offset + line:getHeight():asAbsolute(1)+2 88 pane:addChildWindow(line) 89 end 90 90 91 91 end 92 92 93 94 93 local tabControl = winMgr:getWindow("orxonox/HighscoreTabControl") 94 tabControl:addChildWindow(default) 95 95 96 96 … … 111 111 112 112 item:addChildWindow(player) 113 113 114 114 local score = winMgr:createWindow("MenuWidgets/StaticText", name .. "/Score") 115 115 score:setText(splitlist[3]) -
code/trunk/data/overlays/HUDTemplates3.oxo
r11706 r11718 156 156 /> 157 157 158 159 name 160 background 161 material2D 162 material3DMiddle 163 material3DFront 164 material3DBack 165 correctaspect 166 size 167 position 168 pickpoint 169 rotation 170 sensitivity 171 halfDotSizeDistance 172 detectionLimit 173 maximumDotSize 174 maximumDotSize3D 175 mapAngle3D 158 <HUDRadar 159 name = "Radar" 160 background = "Orxonox/Radar3D" 161 material2D = "Orxonox/Radar" 162 material3DMiddle = "Orxonox/Radar3D" 163 material3DFront = "Orxonox/Radar3DFront" 164 material3DBack = "Orxonox/Radar3DBack" 165 correctaspect = true 166 size = "0.17, 0.17" 167 position = "1.0, 1.0" 168 pickpoint = "1.0, 1.0" 169 rotation = 0 170 sensitivity = 1.0 171 halfDotSizeDistance = 3000 172 detectionLimit = 10000.0 173 maximumDotSize = 0.1 174 maximumDotSize3D = 0.06 175 mapAngle3D = 0.6435011 176 176 /> 177 177 -
code/trunk/data/overlays/towerdefenseHUD.oxo
r10258 r11718 24 24 colour = "1.0, 1.0, 1.0, 1.0" 25 25 align = "left" 26 27 28 26 showlives = false 27 showcredits = true 28 showwaves = false 29 29 /> 30 30 … … 47 47 colour = "1.0, 1.0, 1.0, 1.0" 48 48 align = "left" 49 50 51 49 showlives = true 50 showcredits = false 51 showwaves = false 52 52 /> 53 53 … … 70 70 colour = "1.0, 1.0, 1.0, 1.0" 71 71 align = "left" 72 73 74 72 showlives = false 73 showcredits = false 74 showwaves = true 75 75 76 76 />
Note: See TracChangeset
for help on using the changeset viewer.