mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 12:12:36 -06:00
More LBFO widescreen
This commit is contained in:
parent
ab0a57822d
commit
3bc9a90157
2 changed files with 18 additions and 4 deletions
|
@ -133,7 +133,7 @@ Gameplay.MinionScale = 0.8
|
||||||
Gui = VariableContainer()
|
Gui = VariableContainer()
|
||||||
Gui.FuelNumBladesPos2D = (-0.005, -0.017)
|
Gui.FuelNumBladesPos2D = (-0.005, -0.017)
|
||||||
Gui.FuelNumBladesScale = 0.07
|
Gui.FuelNumBladesScale = 0.07
|
||||||
Gui.FuelPos2D = (-1.19, -0.24)
|
Gui.FuelPos2D = (0.143, 0.760)
|
||||||
Gui.NumBlades2FuelColor = {0: (0.9, 0.15, 0.15, 1.0),
|
Gui.NumBlades2FuelColor = {0: (0.9, 0.15, 0.15, 1.0),
|
||||||
1: (0.9, 0.15, 0.15, 1.0),
|
1: (0.9, 0.15, 0.15, 1.0),
|
||||||
2: (0.9, 0.9, 0.15, 1.0),
|
2: (0.9, 0.9, 0.15, 1.0),
|
||||||
|
@ -141,7 +141,7 @@ Gui.NumBlades2FuelColor = {0: (0.9, 0.15, 0.15, 1.0),
|
||||||
Gui.FuelNormalColor = (0.25, 0.65, 0.25, 1.0)
|
Gui.FuelNormalColor = (0.25, 0.65, 0.25, 1.0)
|
||||||
Gui.FuelLowColor = (0.9, 0.9, 0.15, 1.0)
|
Gui.FuelLowColor = (0.9, 0.9, 0.15, 1.0)
|
||||||
Gui.FuelVeryLowColor = (0.9, 0.15, 0.15, 1.0)
|
Gui.FuelVeryLowColor = (0.9, 0.15, 0.15, 1.0)
|
||||||
Gui.ProgressPos2D = (1.15, -0.15)
|
Gui.ProgressPos2D = (-0.183, 0.85)
|
||||||
Gui.ProgressHPos2D = (0, 0.82)
|
Gui.ProgressHPos2D = (0, 0.82)
|
||||||
Gui.MarkerScale = 0.03
|
Gui.MarkerScale = 0.03
|
||||||
Gui.LocalMarkerScale = 0.0425
|
Gui.LocalMarkerScale = 0.0425
|
||||||
|
|
|
@ -20,12 +20,18 @@ class CogdoFlyingGuiManager:
|
||||||
self.root = NodePath('CogdoFlyingGui')
|
self.root = NodePath('CogdoFlyingGui')
|
||||||
self.root.reparentTo(aspect2d)
|
self.root.reparentTo(aspect2d)
|
||||||
self.root.stash()
|
self.root.stash()
|
||||||
|
self.fuelGui = NodePath('CogdoFlyingFuelGui')
|
||||||
|
self.fuelGui.reparentTo(base.a2dBottomLeft)
|
||||||
|
self.fuelGui.stash()
|
||||||
|
self.progressGui = NodePath('CogdoFlyingProgressGui')
|
||||||
|
self.progressGui.reparentTo(base.a2dBottomRight)
|
||||||
|
self.progressGui.stash()
|
||||||
self._initTimer()
|
self._initTimer()
|
||||||
self._initHud()
|
self._initHud()
|
||||||
self._initMessageDisplay()
|
self._initMessageDisplay()
|
||||||
self.sentTimeRunningOutMessage = False
|
self.sentTimeRunningOutMessage = False
|
||||||
self._refuelGui = CogdoFlyingFuelGui(self.root)
|
self._refuelGui = CogdoFlyingFuelGui(self.fuelGui)
|
||||||
self._progressGui = CogdoFlyingProgressGui(self.root, self._level)
|
self._progressGui = CogdoFlyingProgressGui(self.progressGui, self._level)
|
||||||
|
|
||||||
def _initHud(self):
|
def _initHud(self):
|
||||||
self._memoGui = CogdoMemoGui(self.root, 'memo_card')
|
self._memoGui = CogdoMemoGui(self.root, 'memo_card')
|
||||||
|
@ -50,6 +56,8 @@ class CogdoFlyingGuiManager:
|
||||||
|
|
||||||
def onstage(self):
|
def onstage(self):
|
||||||
self.root.unstash()
|
self.root.unstash()
|
||||||
|
self.fuelGui.unstash()
|
||||||
|
self.progressGui.unstash()
|
||||||
self._refuelGui.hide()
|
self._refuelGui.hide()
|
||||||
self._progressGui.hide()
|
self._progressGui.hide()
|
||||||
|
|
||||||
|
@ -67,6 +75,8 @@ class CogdoFlyingGuiManager:
|
||||||
|
|
||||||
def offstage(self):
|
def offstage(self):
|
||||||
self.root.stash()
|
self.root.stash()
|
||||||
|
self.fuelGui.stash()
|
||||||
|
self.progressGui.stash()
|
||||||
self._refuelGui.hide()
|
self._refuelGui.hide()
|
||||||
self._progressGui.hide()
|
self._progressGui.hide()
|
||||||
self.hideTimer()
|
self.hideTimer()
|
||||||
|
@ -164,4 +174,8 @@ class CogdoFlyingGuiManager:
|
||||||
self._messageDisplay = None
|
self._messageDisplay = None
|
||||||
self.root.removeNode()
|
self.root.removeNode()
|
||||||
self.root = None
|
self.root = None
|
||||||
|
self.fuelGui.removeNode()
|
||||||
|
self.fuelGui = None
|
||||||
|
self.progressGui.removeNode()
|
||||||
|
self.progressGui = None
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue