update ui
This commit was merged in pull request #31.
This commit is contained in:
51
core/game_menu/checkbox.tscn
Normal file
51
core/game_menu/checkbox.tscn
Normal file
@@ -0,0 +1,51 @@
|
||||
[gd_scene format=3 uid="uid://gvpxmy1bgt8h"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bf28djpewxwai" path="res://core/game_menu/checkbox.gd" id="2_ma3ho"]
|
||||
[ext_resource type="Texture2D" uid="uid://hw1j3ii4eer" path="res://core/game_menu/assets/page_3/buttonsquare_empty.png" id="2_p1o3r"]
|
||||
[ext_resource type="Texture2D" uid="uid://dde30f2ngoj53" path="res://core/game_menu/assets/page_3/checkbox.png" id="4_p1o3r"]
|
||||
|
||||
[node name="Checkbox" type="Button" unique_id=1346986972]
|
||||
custom_minimum_size = Vector2(52, 52)
|
||||
anchors_preset = -1
|
||||
anchor_right = 0.027083334
|
||||
anchor_bottom = 0.048148148
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
pivot_offset_ratio = Vector2(0.5, 0.5)
|
||||
toggle_mode = true
|
||||
flat = true
|
||||
script = ExtResource("2_ma3ho")
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="Texture" type="TextureRect" parent="." unique_id=1951376393]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
pivot_offset_ratio = Vector2(0.5, 0.5)
|
||||
texture = ExtResource("2_p1o3r")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="ToggleTexture" type="TextureRect" parent="." unique_id=1931011536]
|
||||
unique_name_in_owner = true
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -20.0
|
||||
offset_top = -20.0
|
||||
offset_right = 20.0
|
||||
offset_bottom = 20.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
pivot_offset_ratio = Vector2(0.5, 0.5)
|
||||
texture = ExtResource("4_p1o3r")
|
||||
expand_mode = 1
|
||||
|
||||
[connection signal="toggled" from="." to="." method="_on_toggled"]
|
||||
Reference in New Issue
Block a user