ported from perforce
This commit is contained in:
50
DonkeysAndDroids.Godot/robot.tscn
Normal file
50
DonkeysAndDroids.Godot/robot.tscn
Normal file
@@ -0,0 +1,50 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://d1k0kumi1bar"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://7qvfryuyunpn" path="res://images/robot-bottom-right.png" id="1_3cn6f"]
|
||||
[ext_resource type="Script" uid="uid://cxg6ixmxgaxtw" path="res://Robot.cs" id="1_dfm56"]
|
||||
|
||||
[node name="Button" type="Button"]
|
||||
custom_minimum_size = Vector2(150, 200)
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -4.0
|
||||
offset_top = -4.0
|
||||
offset_right = 4.0
|
||||
offset_bottom = 4.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 4
|
||||
size_flags_vertical = 4
|
||||
script = ExtResource("1_dfm56")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_constants/margin_top = 20
|
||||
theme_override_constants/margin_bottom = 30
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="MarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 32
|
||||
text = "Robot"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="TextureRect" type="TextureRect" parent="MarginContainer/VBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
texture_filter = 5
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
texture = ExtResource("1_3cn6f")
|
||||
expand_mode = 1
|
||||
stretch_mode = 5
|
||||
Reference in New Issue
Block a user