创建新工程
This commit is contained in:
56
scenes/LoadingIndicator.tscn
Normal file
56
scenes/LoadingIndicator.tscn
Normal file
@@ -0,0 +1,56 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://loading_indicator"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/LoadingIndicator.gd" id="1"]
|
||||
|
||||
[node name="LoadingIndicator" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
script = ExtResource("1")
|
||||
|
||||
[node name="LoadingPanel" type="Panel" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -150.0
|
||||
offset_top = -100.0
|
||||
offset_right = 150.0
|
||||
offset_bottom = 100.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="LoadingPanel"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 20.0
|
||||
offset_top = 20.0
|
||||
offset_right = -20.0
|
||||
offset_bottom = -20.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Spinner" type="ColorRect" parent="LoadingPanel/VBoxContainer"]
|
||||
custom_minimum_size = Vector2(50, 50)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 4
|
||||
color = Color(0.4, 0.6, 1, 1)
|
||||
|
||||
[node name="LoadingLabel" type="Label" parent="LoadingPanel/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "加载中..."
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="ProgressBar" type="ProgressBar" parent="LoadingPanel/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
max_value = 100.0
|
||||
show_percentage = false
|
||||
Reference in New Issue
Block a user