Add lever and jump pad components with activation logic
This commit is contained in:
25
addons/rmsmartshape/scenes/GUI_InfoPanel.gd
Normal file
25
addons/rmsmartshape/scenes/GUI_InfoPanel.gd
Normal file
@@ -0,0 +1,25 @@
|
||||
@tool
|
||||
extends PanelContainer
|
||||
class_name SS2D_PointInfoPanel
|
||||
|
||||
|
||||
@onready var idx_label: Label = %IDX
|
||||
@onready var tex_label: Label = %Tex
|
||||
@onready var width_label: Label = %Width
|
||||
@onready var flip_label: Label = %Flip
|
||||
|
||||
|
||||
func set_idx(i: int) -> void:
|
||||
idx_label.text = "IDX: %s" % i
|
||||
|
||||
|
||||
func set_texture_idx(i: int) -> void:
|
||||
tex_label.text = "Texture2D: %s" % i
|
||||
|
||||
|
||||
func set_width(f: float) -> void:
|
||||
width_label.text = "Width: %s" % f
|
||||
|
||||
|
||||
func set_flip(b: bool) -> void:
|
||||
flip_label.text = "Flip: %s" % b
|
||||
Reference in New Issue
Block a user