Skip to content

Commit ee41081

Browse files
author
hai.lin
committed
add timer
1 parent 587312c commit ee41081

22 files changed

+472
-40
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[folding]
2+
3+
node_unfolds=[NodePath("C"), PackedStringArray("Layout"), NodePath("C/Line"), PackedStringArray("Layout", "Patch Margin"), NodePath("LC"), PackedStringArray("Layout"), NodePath("LC/Label"), PackedStringArray("Layout", "Theme Overrides")]
4+
resource_unfolds=[]
5+
nodes_folded=[]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[folding]
2+
3+
node_unfolds=[NodePath("BG"), PackedStringArray("Layout", "Theme Overrides"), NodePath("BG/H"), PackedStringArray("Layout"), NodePath("BG/H/LabelName"), PackedStringArray("Layout", "Theme Overrides", "BiDi"), NodePath("BG/H/Space"), PackedStringArray("Layout", "Theme Overrides", "BiDi"), NodePath("BG/H/C"), PackedStringArray("Layout", "Theme Overrides"), NodePath("BG/H/C/H"), PackedStringArray("Layout"), NodePath("BG/H/C/H/LabelValue"), PackedStringArray("Layout", "Theme", "Theme Overrides"), NodePath("BG/H/C/H/Space"), PackedStringArray("Layout", "Theme Overrides", "BiDi"), NodePath("ValueOnly"), PackedStringArray("Visibility", "Layout", "Theme Overrides"), NodePath("ValueOnly/H"), PackedStringArray("Visibility", "Layout"), NodePath("ValueOnly/LabelValue"), PackedStringArray("Layout", "Theme Overrides")]
4+
resource_unfolds=["res://engine/ui/UiMonitor.tscn::StyleBoxTexture_5mp4r", PackedStringArray("Resource", "Texture Margins"), "res://engine/ui/UiMonitor.tscn::StyleBoxTexture_c560o", PackedStringArray("Resource", "Texture Margins", "Expand Margins", "Modulate"), "res://engine/ui/UiMonitor.tscn::Theme_gvmbf", PackedStringArray("Resource"), "res://engine/ui/UiMonitor.tscn::StyleBoxEmpty_sbh8w", PackedStringArray("Resource"), "res://engine/ui/UiMonitor.tscn::StyleBoxTexture_h4u5r", PackedStringArray("Resource", "Texture Margins")]
5+
nodes_folded=[]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[folding]
2+
3+
node_unfolds=[NodePath("."), PackedStringArray("Layout"), NodePath("C"), PackedStringArray("Layout"), NodePath("C/LabelDes"), PackedStringArray("Layout", "Theme Overrides", "BiDi"), NodePath("C/LabelMsg"), PackedStringArray("Layout", "Theme Overrides", "BiDi"), NodePath("C/ImageL"), PackedStringArray("Layout", "Patch Margin"), NodePath("C/ImageR"), PackedStringArray("Layout", "Patch Margin")]
4+
resource_unfolds=[]
5+
nodes_folded=[]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[folding]
2+
3+
node_unfolds=[NodePath("VL"), PackedStringArray("Layout"), NodePath("VL/BG"), PackedStringArray("Layout", "Theme"), NodePath("VL/BG/Label"), PackedStringArray("Layout", "BiDi"), NodePath("VL/H"), PackedStringArray("Layout"), NodePath("VL/H/ImageDot"), PackedStringArray("Layout"), NodePath("VR"), PackedStringArray("Layout"), NodePath("VR/BG"), PackedStringArray("Layout", "Theme"), NodePath("VR/BG/Label"), PackedStringArray("Layout", "BiDi"), NodePath("VR/H"), PackedStringArray("Layout"), NodePath("VR/H/ImageDot"), PackedStringArray("Layout")]
4+
resource_unfolds=[]
5+
nodes_folded=[NodePath("VL"), NodePath("VR")]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
[editor_states]
2+
3+
Anim={
4+
"visible": false
5+
}
6+
2D={
7+
"grid_offset": Vector2(0, 0),
8+
"grid_snap_active": false,
9+
"grid_step": Vector2(8, 8),
10+
"grid_visibility": 1,
11+
"ofs": Vector2(-22.4128, -84.6108),
12+
"primary_grid_step": Vector2i(8, 8),
13+
"show_edit_locks": true,
14+
"show_guides": true,
15+
"show_helpers": false,
16+
"show_origin": true,
17+
"show_rulers": true,
18+
"show_transformation_gizmos": true,
19+
"show_viewport": true,
20+
"show_zoom_control": true,
21+
"smart_snap_active": false,
22+
"snap_guides": true,
23+
"snap_node_anchors": true,
24+
"snap_node_center": true,
25+
"snap_node_parent": true,
26+
"snap_node_sides": true,
27+
"snap_other_nodes": true,
28+
"snap_pixel": true,
29+
"snap_relative": false,
30+
"snap_rotation": false,
31+
"snap_rotation_offset": 0.0,
32+
"snap_rotation_step": 0.261799,
33+
"snap_scale": false,
34+
"snap_scale_step": 0.1,
35+
"zoom": 3.19131
36+
}
37+
3D={
38+
"fov": 70.01,
39+
"gizmos_status": {
40+
"AudioListener3D": 0,
41+
"AudioStreamPlayer3D": 0,
42+
"CPUParticles3D": 0,
43+
"CSGShape3D": 0,
44+
"Camera3D": 0,
45+
"CollisionObject3D": 0,
46+
"CollisionPolygon3D": 0,
47+
"CollisionShape3D": 0,
48+
"Decal": 0,
49+
"FogVolume": 0,
50+
"GPUParticles3D": 0,
51+
"GPUParticlesCollision3D": 0,
52+
"Joint3D": 0,
53+
"Light3D": 0,
54+
"LightmapGI": 0,
55+
"LightmapProbe": 0,
56+
"Marker3D": 0,
57+
"NavigationLink3D": 0,
58+
"NavigationRegion3D": 0,
59+
"OccluderInstance3D": 0,
60+
"Path3D": 0,
61+
"PhysicalBone3D": 0,
62+
"RayCast3D": 0,
63+
"ReflectionProbe": 0,
64+
"ShapeCast3D": 0,
65+
"Skeleton3D": 0,
66+
"SoftBody3D": 0,
67+
"SpringArm3D": 0,
68+
"VehicleWheel3D": 0,
69+
"VisibleOnScreenNotifier3D": 0,
70+
"VoxelGI": 0
71+
},
72+
"local_coords": false,
73+
"preview_sun_env": {
74+
"environ_ao_enabled": false,
75+
"environ_enabled": true,
76+
"environ_energy": 1.0,
77+
"environ_gi_enabled": false,
78+
"environ_glow_enabled": false,
79+
"environ_ground_color": Color(0.2, 0.169, 0.133, 1),
80+
"environ_sky_color": Color(0.385, 0.454, 0.55, 1),
81+
"environ_tonemap_enabled": true,
82+
"sun_color": Color(1, 1, 1, 1),
83+
"sun_enabled": true,
84+
"sun_energy": 1.0,
85+
"sun_max_distance": 100.0,
86+
"sun_rotation": Vector2(-1.0472, 2.61799)
87+
},
88+
"rotate_snap": 15.0,
89+
"scale_snap": 10.0,
90+
"show_grid": true,
91+
"show_origin": true,
92+
"snap_enabled": false,
93+
"translate_snap": 1.0,
94+
"viewport_mode": 1,
95+
"viewports": [{
96+
"auto_orthogonal": false,
97+
"auto_orthogonal_enabled": true,
98+
"cinematic_preview": false,
99+
"display_mode": 20,
100+
"distance": 4.0,
101+
"doppler": false,
102+
"frame_time": false,
103+
"gizmos": true,
104+
"half_res": false,
105+
"information": false,
106+
"listener": true,
107+
"lock_rotation": false,
108+
"orthogonal": false,
109+
"position": Vector3(0, 0, 0),
110+
"use_environment": false,
111+
"view_type": 0,
112+
"x_rotation": 0.5,
113+
"y_rotation": -0.5
114+
}, {
115+
"auto_orthogonal": false,
116+
"auto_orthogonal_enabled": true,
117+
"cinematic_preview": false,
118+
"display_mode": 20,
119+
"distance": 4.0,
120+
"doppler": false,
121+
"frame_time": false,
122+
"gizmos": true,
123+
"half_res": false,
124+
"information": false,
125+
"listener": false,
126+
"lock_rotation": false,
127+
"orthogonal": false,
128+
"position": Vector3(0, 0, 0),
129+
"use_environment": false,
130+
"view_type": 0,
131+
"x_rotation": 0.5,
132+
"y_rotation": -0.5
133+
}, {
134+
"auto_orthogonal": false,
135+
"auto_orthogonal_enabled": true,
136+
"cinematic_preview": false,
137+
"display_mode": 20,
138+
"distance": 4.0,
139+
"doppler": false,
140+
"frame_time": false,
141+
"gizmos": true,
142+
"half_res": false,
143+
"information": false,
144+
"listener": false,
145+
"lock_rotation": false,
146+
"orthogonal": false,
147+
"position": Vector3(0, 0, 0),
148+
"use_environment": false,
149+
"view_type": 0,
150+
"x_rotation": 0.5,
151+
"y_rotation": -0.5
152+
}, {
153+
"auto_orthogonal": false,
154+
"auto_orthogonal_enabled": true,
155+
"cinematic_preview": false,
156+
"display_mode": 20,
157+
"distance": 4.0,
158+
"doppler": false,
159+
"frame_time": false,
160+
"gizmos": true,
161+
"half_res": false,
162+
"information": false,
163+
"listener": false,
164+
"lock_rotation": false,
165+
"orthogonal": false,
166+
"position": Vector3(0, 0, 0),
167+
"use_environment": false,
168+
"view_type": 0,
169+
"x_rotation": 0.5,
170+
"y_rotation": -0.5
171+
}],
172+
"zfar": 4000.01,
173+
"znear": 0.05
174+
}
175+
selected_nodes=Array[NodePath]([NodePath("/root/@EditorNode@17150/@Panel@13/@VBoxContainer@14/@HSplitContainer@17/@HSplitContainer@25/@HSplitContainer@33/@VBoxContainer@34/@VSplitContainer@36/@VSplitContainer@62/@VBoxContainer@63/@PanelContainer@110/MainScreen/@CanvasItemEditor@9465/@VSplitContainer@9284/@HSplitContainer@9286/@HSplitContainer@9288/@Control@9289/@SubViewportContainer@9290/@SubViewport@9291/Say/BG")])
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[folding]
2+
3+
node_unfolds=[NodePath("."), PackedStringArray("Layout"), NodePath("BG"), PackedStringArray("Layout", "Layout/Transform"), NodePath("BG/Label"), PackedStringArray("Layout", "Layout/Transform")]
4+
resource_unfolds=[]
5+
nodes_folded=[]

cmd/gox/template/project/.godot/editor/editor_layout.cfg

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ dock_floating={}
1212
dock_split_2=0
1313
dock_split_3=0
1414
dock_hsplit_1=0
15-
dock_hsplit_2=270
16-
dock_hsplit_3=-270
15+
dock_hsplit_2=905
16+
dock_hsplit_3=-940
1717
dock_hsplit_4=0
1818
dock_filesystem_split=0
1919
dock_filesystem_display_mode=0
2020
dock_filesystem_file_sort=0
2121
dock_filesystem_file_list_display_mode=1
22-
dock_filesystem_selected_paths=PackedStringArray("res://gdspx.gdextension")
23-
dock_filesystem_uncollapsed_paths=PackedStringArray("Favorites", "res://")
22+
dock_filesystem_selected_paths=PackedStringArray("res://engine/ui/UiTimer.tscn")
23+
dock_filesystem_uncollapsed_paths=PackedStringArray("Favorites", "res://", "res://engine/", "res://engine/ui/")
2424
dock_3="Scene,Import"
2525
dock_4="FileSystem"
2626
dock_5="Inspector,Node,History"
2727

2828
[EditorNode]
2929

30-
open_scenes=PackedStringArray("res://main.tscn")
31-
current_scene="res://main.tscn"
30+
open_scenes=PackedStringArray("res://main.tscn", "res://engine/ui/UiMeasure.tscn", "res://engine/ui/UiMonitor.tscn", "res://engine/ui/UiSay.tscn", "res://engine/ui/UiQuote.tscn", "res://engine/ui/UiTimer.tscn")
31+
current_scene="res://engine/ui/UiTimer.tscn"
3232
center_split_offset=0
3333
selected_default_debugger_tab_idx=0
3434
selected_main_editor_idx=0
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,36 @@
1-
ea4bc82a6ad023ab7ee23ee620429895
2-
::res://::1737642051
3-
.gitignore.txt::TextFile::-1::1735262672::0::1::::<><>::
4-
gdspx.gdextension::GDExtension::-1::1737335821::0::1::::<><>::
5-
go.mod.txt::TextFile::-1::1737336345::0::1::::<><>::
6-
main.tscn::PackedScene::6787114117689904641::1733990668::0::1::::<><>::
7-
::res://engine/::1733990668
8-
::res://engine/textures/::1737638827
9-
::res://engine/textures/measure/::1733990668
10-
Line.png::CompressedTexture2D::72195066198421830::1733990668::1733990668::1::::<><>::
11-
::res://engine/textures/monitor/::1737638503
12-
frame_name.png::CompressedTexture2D::5671557123434281583::1733990668::1733990668::1::::<><>::
13-
frame_value.png::CompressedTexture2D::4949145575456655435::1733990668::1733990668::1::::<><>::
14-
::res://engine/textures/quote/::1733990668
15-
quote.png::CompressedTexture2D::8801965585543483211::1733990668::1733990668::1::::<><>::
16-
::res://engine/textures/robot/::1737638827
17-
semantic_object.png::CompressedTexture2D::5007228785467172241::1737638827::1737642052::1::::<><>::
18-
::res://engine/textures/say/::1733990668
19-
dot_say.png::CompressedTexture2D::7995496957962182592::1733990668::1733990668::1::::<><>::
20-
frame_say.png::CompressedTexture2D::74715039462851498::1733990668::1733990668::1::::<><>::
21-
::res://engine/theme/::1733990668
22-
ui_say.tres::Theme::3803005688195695468::1733990668::0::1::::<><>::uid://bcgss6q0fbi5::::res://engine/textures/say/frame_say.png
23-
::res://engine/ui/::1733990668
24-
UiMeasure.tscn::PackedScene::876215261502039545::1733990668::0::1::::<><>::uid://ba8bo1lkfvri::::res://engine/textures/measure/Line.png
25-
UiMonitor.tscn::PackedScene::3650811620556224789::1733990668::0::1::::<><>::uid://cm2lync0vu3ot::::res://engine/textures/monitor/frame_name.png<>uid://ccrnx7ptuijh0::::res://engine/textures/monitor/frame_value.png
26-
UiQuote.tscn::PackedScene::6471941878163067134::1733990668::0::1::::<><>::uid://dxn0c72yygef8::::res://engine/textures/quote/quote.png
27-
UiSay.tscn::PackedScene::899015386338223426::1733990668::0::1::::<><>::uid://bugg7h7qx37im::::res://engine/theme/ui_say.tres<>uid://dl6cww0t5blw7::::res://engine/textures/say/dot_say.png
28-
::res://lib/::1737335821
1+
fc8a56933c4b1c8d796fdb8f7a9f9475
2+
::res://::1742797180
3+
export_presets.cfg::TextFile::-1::1741943903::0::1::::<><>::
4+
gdspx.gdextension::GDExtension::-1::1741943903::0::1::::<><>::
5+
go.mod.txt::TextFile::-1::1742784978::0::1::::<><>::
6+
main.tscn::PackedScene::6787114117689904641::1741748791::0::1::::<><>::
7+
::res://engine/::1742373064
8+
::res://engine/icons/::1741943903
9+
logo.png::CompressedTexture2D::5223531597288739491::1741943903::1741943903::1::::<><>::
10+
::res://engine/shader/::1742373064
11+
spx_sprite_shader.gdshader::Shader::-1::1742373064::0::1::::<><>::
12+
::res://engine/textures/::1741943903
13+
::res://engine/textures/measure/::1741748791
14+
Line.png::CompressedTexture2D::72195066198421830::1741748791::1741748791::1::::<><>::
15+
::res://engine/textures/monitor/::1741748791
16+
frame_name.png::CompressedTexture2D::5671557123434281583::1741748791::1741748791::1::::<><>::
17+
frame_value.png::CompressedTexture2D::4949145575456655435::1741748791::1741748791::1::::<><>::
18+
::res://engine/textures/quote/::1741748791
19+
quote.png::CompressedTexture2D::8801965585543483211::1741748791::1741748791::1::::<><>::
20+
::res://engine/textures/robot/::1741943903
21+
semantic_object.png::CompressedTexture2D::5007228785467172241::1741943903::1741943903::1::::<><>::
22+
::res://engine/textures/say/::1741748791
23+
dot_say.png::CompressedTexture2D::7995496957962182592::1741748791::1741748791::1::::<><>::
24+
frame_say.png::CompressedTexture2D::74715039462851498::1741748791::1741748791::1::::<><>::
25+
::res://engine/theme/::1741748791
26+
ui_say.tres::Theme::3803005688195695468::1741748791::0::1::::<><>::uid://bcgss6q0fbi5::::res://engine/textures/say/frame_say.png
27+
::res://engine/ui/::1741748791
28+
UiTimer.tscn::PackedScene::6590177281513037449::1742798711::0::1::::<><>::uid://bugg7h7qx37im::::res://engine/theme/ui_say.tres<>uid://dl6cww0t5blw7::::res://engine/textures/say/dot_say.png
29+
UiMeasure.tscn::PackedScene::876215261502039545::1741748791::0::1::::<><>::uid://ba8bo1lkfvri::::res://engine/textures/measure/Line.png
30+
UiMonitor.tscn::PackedScene::3650811620556224789::1741748791::0::1::::<><>::uid://cm2lync0vu3ot::::res://engine/textures/monitor/frame_name.png<>uid://ccrnx7ptuijh0::::res://engine/textures/monitor/frame_value.png
31+
UiQuote.tscn::PackedScene::6471941878163067134::1741748791::0::1::::<><>::uid://dxn0c72yygef8::::res://engine/textures/quote/quote.png
32+
UiSay.tscn::PackedScene::899015386338223426::1741748791::0::1::::<><>::uid://bugg7h7qx37im::::res://engine/theme/ui_say.tres<>uid://dl6cww0t5blw7::::res://engine/textures/say/dot_say.png
33+
::res://go/::1741943903
34+
ios_adapter.go.txt::TextFile::-1::1741943903::0::1::::<><>::
35+
ios_adapter_complete.c.txt::TextFile::-1::1741943903::0::1::::<><>::
36+
ios_adapter_complete.h.txt::TextFile::-1::1741943903::0::1::::<><>::
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
res://main.tscn
1+
res://engine/ui/UiTimer.tscn
2+
res://engine/theme/ui_say.tres
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[editor_metadata]
22

3-
executable_path="C:/Users/ASUS/go/bin/gdspx2.0.1_win.exe"
3+
executable_path="/Users/linhai/go/bin/gdspx2.0.1_darwin"
44

55
[debug_options]
66

@@ -9,8 +9,14 @@ run_reload_scripts=true
99

1010
[recent_files]
1111

12-
scenes=["res://main.tscn"]
12+
scenes=["res://engine/ui/UiTimer.tscn", "res://engine/ui/UiMonitor.tscn", "res://engine/ui/UiQuote.tscn", "res://engine/ui/UiSay.tscn", "res://engine/ui/UiMeasure.tscn", "res://main.tscn"]
1313

1414
[linked_properties]
1515

1616
Node2D:scale=true
17+
Control:scale=true
18+
Label:scale=true
19+
VBoxContainer:scale=true
20+
TextureRect:scale=true
21+
PanelContainer:scale=true
22+
HBoxContainer:scale=true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[folding]
2+
3+
sections_unfolded=PackedStringArray()
79 Bytes
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[gd_scene load_steps=2 format=3 uid="uid://c05li0cyobbmf"]
2+
3+
[ext_resource type="Theme" uid="uid://bugg7h7qx37im" path="res://engine/theme/ui_say.tres" id="1_ani7e"]
4+
5+
[node name="Say" type="Control"]
6+
layout_mode = 3
7+
anchors_preset = 0
8+
9+
[node name="BG" type="PanelContainer" parent="."]
10+
layout_mode = 2
11+
offset_left = 5.0
12+
offset_top = 5.0
13+
offset_right = 45.0
14+
offset_bottom = 40.0
15+
theme = ExtResource("1_ani7e")
16+
17+
[node name="Label" type="Label" parent="BG"]
18+
custom_minimum_size = Vector2(1, 0)
19+
layout_mode = 2
20+
text = "15"
21+
text_direction = 1

cmd/gox/template/project/project.godot

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ window/size/viewport_height=360
2121

2222
[rendering]
2323

24-
textures/vram_compression/import_etc2_astc=true
24+
textures/vram_compression/import_etc2_astc=true

0 commit comments

Comments
 (0)