Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions addons/block_code/blocks/ui/label_set_text.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[gd_resource type="Resource" load_steps=2 format=3 uid="uid://ciqkywxdk4uht"]

[ext_resource type="Script" path="res://addons/block_code/code_generation/block_definition.gd" id="1_bofov"]

[resource]
script = ExtResource("1_bofov")
name = &"label_set_text"
target_node_class = "Label"
description = "Set the text for the label."
category = "UI"
type = 2
variant_type = 0
display_template = "set text to {text: STRING}"
code_template = "text = {text}"
defaults = {}
signal_name = ""
scope = ""
5 changes: 5 additions & 0 deletions addons/block_code/ui/constants.gd
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ const BUILTIN_CATEGORIES_PROPS: Dictionary = {
"color": Color("03aa74"),
"order": 62,
},
"UI":
{
"color": Color("03aa74"),
"order": 65,
},
"Sounds":
{
"color": Color("e30fc0"),
Expand Down