-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: reduce export size and fix mobile/windows (#129)
* chore: remove lib/ windows export fix: spinner was looping forever bump gdext crate * disable glow on mobile enable experimental-threads feature disable lazy-function-tables * fix format/lint
- Loading branch information
1 parent
11867fd
commit b51c1db
Showing
10 changed files
with
79 additions
and
29 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[gd_scene load_steps=5 format=3 uid="uid://cj4u0wghcfjsi"] | ||
|
||
[ext_resource type="Script" path="res://assets/sky/sky_basic.gd" id="1_vmmd2"] | ||
|
||
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_bfvnp"] | ||
sky_top_color = Color(0.85098, 0.913725, 1, 1) | ||
|
||
[sub_resource type="Sky" id="Sky_0guyp"] | ||
sky_material = SubResource("ProceduralSkyMaterial_bfvnp") | ||
|
||
[sub_resource type="Environment" id="Environment_mvu0t"] | ||
background_mode = 2 | ||
sky = SubResource("Sky_0guyp") | ||
glow_levels/1 = 16.0 | ||
glow_levels/2 = 16.0 | ||
glow_levels/3 = 16.0 | ||
glow_levels/4 = 16.0 | ||
glow_levels/5 = 16.0 | ||
glow_levels/6 = 16.0 | ||
glow_levels/7 = 2.95 | ||
glow_blend_mode = 0 | ||
fog_density = 0.001 | ||
|
||
[node name="SkyBasic" type="WorldEnvironment"] | ||
environment = SubResource("Environment_mvu0t") | ||
script = ExtResource("1_vmmd2") |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,13 @@ | ||
extends TextureProgressBar | ||
|
||
var tween: Tween = null | ||
|
||
|
||
func _ready() -> void: | ||
tween = get_tree().create_tween().set_loops() | ||
tween.tween_property(self, "radial_initial_angle", 360.0, 1.5).as_relative() | ||
@onready var animation_player = $AnimationPlayer | ||
|
||
|
||
func _on_visibility_changed(): | ||
if tween == null: | ||
if animation_player == null: | ||
return | ||
|
||
if self.visible: | ||
tween.play() | ||
animation_player.play("spin") | ||
else: | ||
tween.pause() | ||
animation_player.pause() |
31 changes: 30 additions & 1 deletion
31
godot/src/ui/components/loading_spinner/loading_spinner.tscn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,44 @@ | ||
[gd_scene load_steps=3 format=3 uid="uid://buu3ox7iefpgx"] | ||
[gd_scene load_steps=5 format=3 uid="uid://buu3ox7iefpgx"] | ||
|
||
[ext_resource type="Texture2D" uid="uid://dx7vyin0sc2ne" path="res://assets/ui/loading_spinner_progress.png" id="1_roup2"] | ||
[ext_resource type="Script" path="res://src/ui/components/loading_spinner/loading_spinner.gd" id="2_rds4p"] | ||
|
||
[sub_resource type="Animation" id="Animation_h8jfn"] | ||
resource_name = "spin" | ||
length = 1.5 | ||
loop_mode = 1 | ||
tracks/0/type = "value" | ||
tracks/0/imported = false | ||
tracks/0/enabled = true | ||
tracks/0/path = NodePath(".:radial_initial_angle") | ||
tracks/0/interp = 1 | ||
tracks/0/loop_wrap = true | ||
tracks/0/keys = { | ||
"times": PackedFloat32Array(0, 1.5), | ||
"transitions": PackedFloat32Array(1, 1), | ||
"update": 0, | ||
"values": [0.0, 360.0] | ||
} | ||
|
||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_rrpsh"] | ||
_data = { | ||
"spin": SubResource("Animation_h8jfn") | ||
} | ||
|
||
[node name="TextureProgressBar" type="TextureProgressBar"] | ||
offset_right = 40.0 | ||
offset_bottom = 40.0 | ||
value = 100.0 | ||
fill_mode = 4 | ||
texture_progress = ExtResource("1_roup2") | ||
radial_initial_angle = 343.23 | ||
radial_fill_degrees = 60.0 | ||
script = ExtResource("2_rds4p") | ||
|
||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."] | ||
libraries = { | ||
"": SubResource("AnimationLibrary_rrpsh") | ||
} | ||
autoplay = "spin" | ||
|
||
[connection signal="visibility_changed" from="." to="." method="_on_visibility_changed"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters