mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Special arrow color option
This commit is contained in:
parent
78ab9750d9
commit
ce5d6e125a
2 changed files with 7 additions and 6 deletions
|
@ -239,12 +239,12 @@ class Nametag2d(Nametag, Clickable2d, MarginVisible):
|
|||
self.panelWidth = self.textNode.getWidth() + self.PANEL_X_PADDING
|
||||
self.panelHeight = self.textNode.getHeight() + self.PANEL_Z_PADDING
|
||||
self.panel.setScale(self.panelWidth, 1, self.panelHeight)
|
||||
|
||||
|
||||
# Add an arrow:
|
||||
self.arrow = NametagGlobals.arrowModel.copyTo(self.contents)
|
||||
self.arrow.setZ(self.ARROW_OFFSET + self.textNode.getBottom())
|
||||
self.arrow.setScale(self.ARROW_SCALE)
|
||||
self.arrow.setColor(self.nametagColor[0][0])
|
||||
self.arrow.setColor(self.nametagColor[4] if len(self.nametagColor) >= 5 else self.nametagColor[0][0])
|
||||
|
||||
def marginVisibilityChanged(self):
|
||||
if self.cell is not None:
|
||||
|
|
|
@ -157,10 +157,11 @@ NametagColors = {
|
|||
(VBase4(0.8, 0.4, 0.0, 1.0), VBase4(0.8, 0.8, 0.8, 0.375)) # Disabled
|
||||
),
|
||||
CCSuit: (
|
||||
(VBase4(0.2, 0.2, 0.2, 1.0), VBase4(0.8, 0.8, 0.8, 0.375)), # Normal
|
||||
(VBase4(0.2, 0.2, 0.2, 1.0), VBase4(0.2, 0.2, 0.2, 0.1875)), # Down
|
||||
(VBase4(0.4, 0.4, 0.4, 1.0), VBase4(1.0, 1.0, 1.0, 0.5625)), # Rollover
|
||||
(VBase4(0.2, 0.2, 0.2, 1.0), VBase4(0.8, 0.8, 0.8, 0.375)) # Disabled
|
||||
(VBase4(0.2, 0.2, 0.2, 1.0), VBase4(0.8, 0.8, 0.8, 0.375)), # Normal
|
||||
(VBase4(0.2, 0.2, 0.2, 1.0), VBase4(0.2, 0.2, 0.2, 0.1875)), # Down
|
||||
(VBase4(0.4, 0.4, 0.4, 1.0), VBase4(1.0, 1.0, 1.0, 0.5625)), # Rollover
|
||||
(VBase4(0.2, 0.2, 0.2, 1.0), VBase4(0.8, 0.8, 0.8, 0.375)), # Disabled
|
||||
VBase4(0.8, 0.4, 0.0, 1.0) # Arrow color
|
||||
),
|
||||
CCSuitBuilding: (
|
||||
(VBase4(0.5, 0.5, 0.5, 1.0), VBase4(0.8, 0.8, 0.8, 0.375)), # Normal
|
||||
|
|
Loading…
Reference in a new issue