gd: added input addon
This commit is contained in:
11
addons/guide/ui/renderers/misc/action_renderer.gd
Normal file
11
addons/guide/ui/renderers/misc/action_renderer.gd
Normal file
@ -0,0 +1,11 @@
|
||||
@tool
|
||||
extends GUIDEIconRenderer
|
||||
|
||||
func supports(input:GUIDEInput) -> bool:
|
||||
return input is GUIDEInputAction
|
||||
|
||||
func render(input:GUIDEInput) -> void:
|
||||
pass
|
||||
|
||||
func cache_key(input:GUIDEInput) -> String:
|
||||
return "0ecd6608-ba3c-4fc2-83f7-ad61736f1106" # we only have one output, so same cache key
|
1
addons/guide/ui/renderers/misc/action_renderer.gd.uid
Normal file
1
addons/guide/ui/renderers/misc/action_renderer.gd.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://bdrygt8mymguu
|
16
addons/guide/ui/renderers/misc/action_renderer.tscn
Normal file
16
addons/guide/ui/renderers/misc/action_renderer.tscn
Normal file
@ -0,0 +1,16 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://ortn6jb3wljf"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/guide/ui/renderers/misc/action_renderer.gd" id="1_140q4"]
|
||||
[ext_resource type="Texture2D" uid="uid://diwkvjkss2ie" path="res://addons/guide/ui/renderers/textures/action.svg" id="2_uqvia"]
|
||||
|
||||
[node name="ActionRenderer" type="MarginContainer"]
|
||||
offset_right = 512.0
|
||||
offset_bottom = 512.0
|
||||
size_flags_horizontal = 0
|
||||
script = ExtResource("1_140q4")
|
||||
|
||||
[node name="Action" type="TextureRect" parent="."]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
texture = ExtResource("2_uqvia")
|
||||
stretch_mode = 4
|
11
addons/guide/ui/renderers/misc/fallback_renderer.gd
Normal file
11
addons/guide/ui/renderers/misc/fallback_renderer.gd
Normal file
@ -0,0 +1,11 @@
|
||||
@tool
|
||||
extends GUIDEIconRenderer
|
||||
|
||||
func supports(input:GUIDEInput) -> bool:
|
||||
return true
|
||||
|
||||
func render(input:GUIDEInput) -> void:
|
||||
pass
|
||||
|
||||
func cache_key(input:GUIDEInput) -> String:
|
||||
return "2e130e8b-d5b3-478c-af65-53415adfd6bb" # we only have one output, so same cache key
|
1
addons/guide/ui/renderers/misc/fallback_renderer.gd.uid
Normal file
1
addons/guide/ui/renderers/misc/fallback_renderer.gd.uid
Normal file
@ -0,0 +1 @@
|
||||
uid://dah64oq8ican
|
20
addons/guide/ui/renderers/misc/fallback_renderer.tscn
Normal file
20
addons/guide/ui/renderers/misc/fallback_renderer.tscn
Normal file
@ -0,0 +1,20 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://bqf4yoind3a82"]
|
||||
|
||||
[ext_resource type="Script" path="res://addons/guide/ui/renderers/misc/fallback_renderer.gd" id="1_mgm3k"]
|
||||
[ext_resource type="FontFile" uid="uid://cu8bvod6tnnwr" path="res://addons/guide/ui/renderers/keyboard/Lato-Black.ttf" id="2_5hk8u"]
|
||||
|
||||
[node name="FallbackRenderer" type="MarginContainer"]
|
||||
offset_right = 512.0
|
||||
offset_bottom = 512.0
|
||||
size_flags_horizontal = 0
|
||||
script = ExtResource("1_mgm3k")
|
||||
priority = 100
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
custom_minimum_size = Vector2(512, 512)
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("2_5hk8u")
|
||||
theme_override_font_sizes/font_size = 350
|
||||
text = "?"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
Reference in New Issue
Block a user