Add transfer amounts and active gas vents
This commit is contained in:
parent
31ebfa905e
commit
e4df9bc41a
8 changed files with 147 additions and 12 deletions
|
|
@ -28,6 +28,7 @@ enum Icon {
|
|||
ACTION_MENU,
|
||||
GAS,
|
||||
LEFT_ARROW, RIGHT_ARROW,
|
||||
MINUS, PLUS,
|
||||
}
|
||||
|
||||
# Size the glyphs were originally drawn against. Every glyph dimension is
|
||||
|
|
@ -208,6 +209,10 @@ func _draw() -> void:
|
|||
_draw_horizontal_arrow(center, pulse, -1.0, s)
|
||||
Icon.RIGHT_ARROW:
|
||||
_draw_horizontal_arrow(center, pulse, 1.0, s)
|
||||
Icon.MINUS:
|
||||
_draw_minus(center, pulse, s)
|
||||
Icon.PLUS:
|
||||
_draw_plus(center, pulse, s)
|
||||
|
||||
|
||||
func _draw_close(center: Vector2, pulse: float, s: float) -> void:
|
||||
|
|
@ -242,6 +247,19 @@ func _draw_horizontal_arrow(center: Vector2, pulse: float, direction: float, s:
|
|||
NeonDraw.draw_glowing_line(self, tip, tip + Vector2(-r * 0.8 * direction, r * 0.7), _active_color(), pulse, 0.5 * s, core_color)
|
||||
|
||||
|
||||
func _draw_minus(center: Vector2, pulse: float, s: float) -> void:
|
||||
var r: float = 9.0 * s
|
||||
NeonDraw.draw_glowing_line(self, center + Vector2(-r, 0.0), center + Vector2(r, 0.0),
|
||||
_active_color(), pulse, 0.55 * s, core_color)
|
||||
|
||||
|
||||
func _draw_plus(center: Vector2, pulse: float, s: float) -> void:
|
||||
_draw_minus(center, pulse, s)
|
||||
var r: float = 9.0 * s
|
||||
NeonDraw.draw_glowing_line(self, center + Vector2(0.0, -r), center + Vector2(0.0, r),
|
||||
_active_color(), pulse, 0.55 * s, core_color)
|
||||
|
||||
|
||||
func _draw_transfer_icon(center: Vector2, pulse: float, s: float) -> void:
|
||||
# Two shafts side by side pointing opposite ways. Drawn as a pair rather
|
||||
# than as one double-headed arrow because the button's whole job is that
|
||||
|
|
|
|||
Loading…
Reference in a new issue