Move ressources to 2 by 2 display
This commit is contained in:
@@ -49,7 +49,7 @@ class ResourcesViewFull(StatsView):
|
||||
self.headerPanel = headerPanel
|
||||
panel = "full"
|
||||
|
||||
sizer = wx.FlexGridSizer(3, 2)
|
||||
sizer = wx.FlexGridSizer(2, 2)
|
||||
sizer.SetMinSize(wx.Size(27 + self.getTextExtentW("400/400"), 0))
|
||||
for i in xrange(3):
|
||||
sizer.AddGrowableCol(i + 1)
|
||||
@@ -60,13 +60,17 @@ class ResourcesViewFull(StatsView):
|
||||
#Turrets & launcher hardslots display
|
||||
tooltipText = {"turret":"Turret hardpoints", "launcher":"Launcher hardpoints", "drones":"Drones active", "calibration":"Calibration"}
|
||||
for type in ("turret", "launcher", "drones", "calibration"):
|
||||
outerBox = wx.BoxSizer(wx.VERTICAL)
|
||||
box = wx.BoxSizer(wx.HORIZONTAL)
|
||||
|
||||
bitmap = bitmapLoader.getStaticBitmap("%s_big" % type, parent, "icons")
|
||||
tooltip = wx.ToolTip(tooltipText[type])
|
||||
bitmap.SetToolTip(tooltip)
|
||||
box = wx.BoxSizer(wx.HORIZONTAL)
|
||||
|
||||
sizer.Add(bitmap, 0, wx.ALIGN_CENTER)
|
||||
sizer.Add(box, 0, wx.ALIGN_CENTER_VERTICAL)
|
||||
outerBox.Add(bitmap, 0, wx.ALIGN_CENTER)
|
||||
box.Add(outerBox, 0, wx.ALIGN_CENTER)
|
||||
|
||||
sizer.Add(box, 0, wx.ALIGN_CENTER)
|
||||
|
||||
suffix = {'turret':'Hardpoints', 'launcher':'Hardpoints', 'drones':'Active', 'calibration':'Points'}
|
||||
lbl = wx.StaticText(parent, wx.ID_ANY, "0")
|
||||
|
||||
Reference in New Issue
Block a user