Updated escoria-demo-game
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
extends CanvasLayer
|
||||
|
||||
onready var list = $VBoxContainer/hover_stack
|
||||
|
||||
func update() -> void:
|
||||
for e in list.get_children():
|
||||
list.remove_child(e)
|
||||
e.queue_free()
|
||||
if escoria.inputs_manager.hover_stack.empty():
|
||||
return
|
||||
for e in escoria.inputs_manager.hover_stack.get_all():
|
||||
var l = Label.new()
|
||||
l.text = e.global_id
|
||||
list.add_child(l)
|
||||
@@ -0,0 +1,27 @@
|
||||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://addons/escoria-core/ui_library/tools/hover_stack/hover_stack.gd" type="Script" id=1]
|
||||
|
||||
[node name="hover_stack_layer" type="CanvasLayer"]
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||||
margin_top = 32.0
|
||||
margin_right = 99.0
|
||||
margin_bottom = 72.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="title" type="RichTextLabel" parent="VBoxContainer"]
|
||||
margin_right = 99.0
|
||||
margin_bottom = 18.0
|
||||
size_flags_vertical = 3
|
||||
bbcode_enabled = true
|
||||
bbcode_text = "[u]Hover stack[/u]"
|
||||
text = "Hover stack"
|
||||
|
||||
[node name="hover_stack" type="VBoxContainer" parent="VBoxContainer"]
|
||||
margin_top = 22.0
|
||||
margin_right = 99.0
|
||||
margin_bottom = 40.0
|
||||
size_flags_vertical = 3
|
||||
Reference in New Issue
Block a user