main screen
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
extends VBoxContainer
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
@export var Texture_button: TextureButton
|
||||
@export var Description: Label
|
||||
@export var Properties: Dictionary
|
||||
|
||||
#Shortcut|Name|Area|AreaName|Screen|ScreenName|Row|Col|ImagePath|LinkedScreen|ShowBound
|
||||
|
||||
|
||||
func init_button(initial_dict: Dictionary):
|
||||
Properties = initial_dict
|
||||
|
||||
func _on_button_up() -> void:
|
||||
print("hello button")
|
||||
#Texture_button.texture_normal = load("res://UI/1-Items/Helium.png")
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
uid://bxxllddlgurus
|
||||
@@ -0,0 +1,18 @@
|
||||
[gd_scene format=3 uid="uid://d3xjfxwe3w16v"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bxxllddlgurus" path="res://UI/Buttons/item_button.gd" id="1_e6ro1"]
|
||||
|
||||
[node name="Button" type="VBoxContainer" unique_id=1538731567 node_paths=PackedStringArray("Texture_button", "Description")]
|
||||
script = ExtResource("1_e6ro1")
|
||||
Texture_button = NodePath("TextureButton")
|
||||
Description = NodePath("Description")
|
||||
|
||||
[node name="TextureButton" type="TextureButton" parent="." unique_id=1377839155]
|
||||
custom_minimum_size = Vector2(216, 216)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Description" type="Label" parent="." unique_id=1488477178]
|
||||
custom_minimum_size = Vector2(216, 40)
|
||||
layout_mode = 2
|
||||
|
||||
[connection signal="button_up" from="TextureButton" to="." method="_on_button_up"]
|
||||
Reference in New Issue
Block a user