- set to Linux newlines
This commit is contained in:
parent
9599d80b62
commit
2ce505fe78
14
Characters/Player/UI/UI.gd
Normal file
14
Characters/Player/UI/UI.gd
Normal file
@ -0,0 +1,14 @@
|
||||
extends Control
|
||||
|
||||
var _container: GridContainer
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
_container = get_node("GridContainer");
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
func add_Item ():
|
||||
#TODO: global member for inventory?
|
||||
Node item = new Node();
|
||||
_container.add_child(item)
|
@ -1,10 +1,13 @@
|
||||
[gd_scene format=2]
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://Characters/Player/UI/UI.gd" type="Script" id=1]
|
||||
|
||||
[node name="HUD" type="Control"]
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
margin_left = 1.948
|
||||
margin_right = 1.948
|
||||
margin_left = 5.12134
|
||||
margin_right = 5.12134
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="PressInteract" type="Label" parent="."]
|
||||
margin_left = 453.005
|
||||
@ -12,3 +15,10 @@ margin_top = 515.582
|
||||
margin_right = 569.005
|
||||
margin_bottom = 529.582
|
||||
text = "Press E to interact"
|
||||
|
||||
[node name="GridContainer" type="GridContainer" parent="."]
|
||||
margin_left = 868.0
|
||||
margin_top = 48.0
|
||||
margin_right = 1000.0
|
||||
margin_bottom = 491.0
|
||||
columns = 3
|
||||
|
Loading…
x
Reference in New Issue
Block a user