Changeset 6387 for code/branches/presentation2/data/gui
- Timestamp:
- Dec 21, 2009, 1:18:36 PM (15 years ago)
- Location:
- code/branches/presentation2/data/gui
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/data/gui/layouts/PickupInventory.layout
r5781 r6387 15 15 <Property Name="TabPanePosition" Value="Bottom" /> 16 16 <Property Name="UnifiedAreaRect" Value="{{0,10},{0,30},{1,-10},{1,-10}}" /> 17 17 18 18 <Window Type="TaharezLook/ScrollablePane" Name="orxonox/Inventory/TabControl/TabEquipment"> 19 19 <Property Name="Text" Value="Equipment" /> -
code/branches/presentation2/data/gui/scripts/GUITools.lua
r6363 r6387 14 14 function getMinTextSize(window) 15 15 local size = {} 16 16 17 17 local lookAndFeel = CEGUI.WidgetLookManager:getSingleton():getWidgetLook(window:getLookNFeel()) 18 18 local height = window:getFont():getLineSpacing() + window:getUnclippedPixelRect():getHeight() - lookAndFeel:getNamedArea("WithFrameTextRenderArea"):getArea():getPixelRect(window):getHeight() 19 19 local width = window:getFont():getTextExtent(window:getText()) + window:getUnclippedPixelRect():getWidth() - lookAndFeel:getNamedArea("WithFrameTextRenderArea"):getArea():getPixelRect(window):getWidth() 20 20 21 21 table.insert(size, height) 22 22 table.insert(size, width) -
code/branches/presentation2/data/gui/scripts/InitialiseGUI.lua
r6266 r6387 81 81 hideCursor() 82 82 end 83 83 84 84 if find( activeSheets, filename ) ~= nil then 85 85 table.remove( activeSheets, find( activeSheets, filename ) ) … … 96 96 bHidePrevious[filename]=hidePrevious 97 97 cursorVisibility[filename] = bCursorVisible 98 98 99 99 if hidePrevious == true then 100 100 for i=1,nrOfActiveSheets-1 do -
code/branches/presentation2/data/gui/scripts/KeyBindMenu.lua
r6369 r6387 70 70 sampleWindow = winMgr:createWindow("TaharezLook/StaticText", "orxonox/KeyBindPane/SampleWindow") 71 71 sampleWindow:setText("SampleText") 72 72 73 73 local size = getMinTextSize(sampleWindow) 74 74 lineHeight = size[1] 75 75 76 76 commandWidth = 0 77 77 for k,v in pairs(commandList) do … … 86 86 size = getMinTextSize(sampleWindow) 87 87 addWidth = size[2] 88 88 89 89 sampleWindow:setText("X") 90 90 size = getMinTextSize(sampleWindow) … … 92 92 93 93 spaceWidth = math.floor(1/14*commandWidth) 94 94 95 95 buttonWidth = 145 96 96 … … 166 166 167 167 line:setWidth(CEGUI.UDim(0, offset+clearWidth)) 168 168 169 169 return line 170 170 end … … 178 178 window:addChildWindow(line) 179 179 end 180 180 181 181 pane = tolua.cast(window, "CEGUI::ScrollablePane") 182 182 pane:setVerticalStepSize(getScrollingStepSize(window)) … … 216 216 local commandNr = tonumber(match()) 217 217 local buttonNr = tonumber(match()) 218 218 219 219 orxonox.KeyBinderManager:getInstance():unbind(orxonox.KeyBinderManager:getInstance():getCurrent():getBinding(commandList[commandNr], buttonNr)) 220 220 -
code/branches/presentation2/data/gui/scripts/PickupInventory.lua
r5781 r6387 20 20 local equipCount = orxonox.PickupInventory:getEquipmentCount() 21 21 local usableCount = orxonox.PickupInventory:getUsableCount() 22 22 23 23 if equipCount ~= self.lastEquipmentCount_ or usableCount ~= self.lastUsableCount_ then 24 24 self:updateTabs() … … 39 39 local t = name:sub(25, 27) 40 40 local i = name:sub(29) 41 41 42 42 if t == "equ" then 43 43 44 44 end 45 45 46 46 if t == "use" then 47 47 if self.currentUsableID_ >= 0 then … … 60 60 orxonox.PickupInventory:getSingleton():clearInventory(winMgr, eqWin, usWin) 61 61 orxonox.PickupInventory:getSingleton():updateTabs(winMgr, eqWin, usWin) 62 62 63 63 self.currentUsableID_ = orxonox.PickupInventory:getCurrentUsableIndex() 64 64 self.lastEquipmentCount_ = orxonox.PickupInventory:getEquipmentCount() -
code/branches/presentation2/data/gui/scripts/QuestGUI.lua
r5781 r6387 15 15 16 16 local questManager = orxonox.QuestManager:getInstance() 17 17 18 18 local questsList = winMgr:getWindow("orxonox/QuestGUI/QuestsList") 19 19
Note: See TracChangeset
for help on using the changeset viewer.