init basic signal player chinese chess game
This commit is contained in:
30
Main.tscn
Normal file
30
Main.tscn
Normal file
@ -0,0 +1,30 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://boa4od72355o4"]
|
||||
|
||||
[ext_resource type="Script" path="res://Main.cs" id="1_h4cv2"]
|
||||
[ext_resource type="PackedScene" uid="uid://b1tx7v3230wab" path="res://Scenes/Chessboard.tscn" id="2_bx85x"]
|
||||
|
||||
[node name="Main" type="Node2D"]
|
||||
script = ExtResource("1_h4cv2")
|
||||
|
||||
[node name="Chessboard" parent="." instance=ExtResource("2_bx85x")]
|
||||
position = Vector2(360, 660)
|
||||
scale = Vector2(2.5, 2.5)
|
||||
|
||||
[node name="Undo" type="Button" parent="."]
|
||||
offset_left = 200.0
|
||||
offset_top = 50.0
|
||||
offset_right = 300.0
|
||||
offset_bottom = 150.0
|
||||
theme_override_font_sizes/font_size = 32
|
||||
text = "撤回"
|
||||
|
||||
[node name="ReInit" type="Button" parent="."]
|
||||
offset_left = 450.0
|
||||
offset_top = 50.0
|
||||
offset_right = 550.0
|
||||
offset_bottom = 150.0
|
||||
theme_override_font_sizes/font_size = 32
|
||||
text = "重开"
|
||||
|
||||
[connection signal="pressed" from="Undo" to="Chessboard" method="undo"]
|
||||
[connection signal="pressed" from="ReInit" to="Chessboard" method="redo"]
|
Reference in New Issue
Block a user