From 04a497b979688104115789d461e735cfcabf06ae Mon Sep 17 00:00:00 2001 From: oldcrate Date: Fri, 20 Nov 2026 21:14:39 +0100 Subject: [PATCH] feat: add flashlight modifier --- scenes/game.tscn | 34 ++++++++++++-- scripts/Rhythia.cs | 1 + scripts/game/Runner.cs | 7 ++- scripts/game/modifiers/FlashlightModifier.cs | 44 ++++++++++++++++++ .../game/modifiers/FlashlightModifier.cs.uid | 1 + scripts/game/modifiers/IHudObjectModifier.cs | 5 ++ scripts/game/renderers/NoteRenderer.cs | 9 ++-- scripts/game/ui/Grid.cs | 12 +++++ scripts/map/Replay.cs | 3 ++ scripts/skinning/SkinManager.cs | 1 + scripts/skinning/SkinProfile.cs | 2 + scripts/util/Misc.cs | 15 +++--- user/skins/default/modifiers/flashlight.png | Bin 0 -> 1469 bytes .../default/modifiers/flashlight.png.import | 40 ++++++++++++++++ user/skins/default/ui/flashlight.png | Bin 0 -> 12449 bytes user/skins/default/ui/flashlight.png.import | 42 +++++++++++++++++ user/skins/legacy/game/cursor.png.import | 14 +++--- 17 files changed, 208 insertions(+), 22 deletions(-) create mode 100644 scripts/game/modifiers/FlashlightModifier.cs create mode 100644 scripts/game/modifiers/FlashlightModifier.cs.uid create mode 100644 user/skins/default/modifiers/flashlight.png create mode 100644 user/skins/default/modifiers/flashlight.png.import create mode 100644 user/skins/default/ui/flashlight.png create mode 100644 user/skins/default/ui/flashlight.png.import diff --git a/scenes/game.tscn b/scenes/game.tscn index 04f37758..03ae6e2b 100644 --- a/scenes/game.tscn +++ b/scenes/game.tscn @@ -17,6 +17,7 @@ [ext_resource type="Texture2D" uid="uid://dmc5f6ajp8xv1" path="res://user/skins/default/game/progress_background.png" id="8_eu3ux"] [ext_resource type="Script" uid="uid://dv0gni2j4t686" path="res://scripts/game/ui/PanelLeft.cs" id="8_qnb83"] [ext_resource type="Texture2D" uid="uid://d3s17ehomjscd" path="res://user/skins/default/game/progress.png" id="9_nde5v"] +[ext_resource type="Texture2D" uid="uid://2qqfj6l0n8c4" path="res://user/skins/default/ui/flashlight.png" id="11_0sl42"] [ext_resource type="Texture2D" uid="uid://80bitp5weqrb" path="res://user/skins/default/game/panel_left_background.png" id="11_sdncv"] [ext_resource type="FontFile" uid="uid://b6hgjef6s6oly" path="res://fonts/Comfortaa/Comfortaa-Bold.ttf" id="12_axsek"] [ext_resource type="Texture2D" uid="uid://ccdaf14yq65jf" path="res://user/skins/default/game/grid_guides.png" id="12_pr1ej"] @@ -46,6 +47,7 @@ [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_05nbr"] resource_name = "Material" +render_priority = 2 transparency = 1 shading_mode = 0 albedo_texture = ExtResource("2_q78ea") @@ -56,6 +58,7 @@ material = SubResource("StandardMaterial3D_05nbr") size = Vector2(4, 4) [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_0sl42"] +render_priority = 2 transparency = 1 shading_mode = 0 disable_ambient_light = true @@ -70,6 +73,7 @@ material = SubResource("StandardMaterial3D_0sl42") size = Vector2(0.263, 0.263) [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ssr8x"] +render_priority = 2 transparency = 1 cull_mode = 2 shading_mode = 0 @@ -87,6 +91,7 @@ mesh = SubResource("QuadMesh_458eo") [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_h3rex"] resource_name = "Material" +render_priority = 2 transparency = 1 shading_mode = 0 albedo_texture = ExtResource("12_pr1ej") @@ -97,6 +102,7 @@ material = SubResource("StandardMaterial3D_h3rex") size = Vector2(4, 4) [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_fedci"] +render_priority = 2 transparency = 1 shading_mode = 0 albedo_texture = ExtResource("36_05nbr") @@ -109,6 +115,7 @@ viewport_path = NodePath("Runner/HUD/Health/HealthViewport") [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_4p8vu"] resource_local_to_scene = true +render_priority = 2 transparency = 1 shading_mode = 0 disable_fog = true @@ -125,6 +132,7 @@ viewport_path = NodePath("Runner/HUD/PanelLeft/PanelLeftViewport") [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_nody0"] resource_local_to_scene = true +render_priority = 2 transparency = 1 shading_mode = 0 disable_fog = true @@ -163,6 +171,7 @@ viewport_path = NodePath("Runner/HUD/PanelRight/PanelRightViewport") [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ro5ir"] resource_local_to_scene = true +render_priority = 2 transparency = 1 shading_mode = 0 disable_fog = true @@ -194,6 +203,7 @@ viewport_path = NodePath("Runner/HUD/ProgressBar/ProgressBarViewport") [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_p1h21"] resource_local_to_scene = true +render_priority = 2 transparency = 1 shading_mode = 0 disable_fog = true @@ -210,6 +220,7 @@ viewport_path = NodePath("Runner/Video/VideoViewport") [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_rj3ky"] resource_local_to_scene = true +render_priority = 2 transparency = 1 no_depth_test = true shading_mode = 0 @@ -305,15 +316,12 @@ Runner = NodePath("../Runner") ReplayViewer = NodePath("../ReplayViewer") CursorManager = NodePath("../CursorManager") -[node name="Runner" type="Node3D" parent="." unique_id=580620214 node_paths=PackedStringArray("HudManager", "Camera", "Renderers", "Grid", "GridGuides", "PanelLeft", "PanelRight", "Cursor")] +[node name="Runner" type="Node3D" parent="." unique_id=580620214 node_paths=PackedStringArray("HudManager", "Camera", "Renderers", "Grid", "Cursor")] script = ExtResource("2_qnb83") HudManager = NodePath("HUD") Camera = NodePath("Camera3D") Renderers = [NodePath("Renderers/Notes")] Grid = NodePath("HUD/Grid") -GridGuides = NodePath("HUD/Grid/GridGuides") -PanelLeft = NodePath("HUD/PanelLeft") -PanelRight = NodePath("HUD/PanelRight") Cursor = NodePath("HUD/Grid/Cursor") [node name="HUD" type="Node3D" parent="Runner" unique_id=1234434255 node_paths=PackedStringArray("Runner")] @@ -329,6 +337,17 @@ script = ExtResource("27_js0lu") mesh = SubResource("QuadMesh_xij4d") skeleton = NodePath("../../../..") +[node name="Flashlight" type="Node3D" parent="Runner/HUD/Grid/Cursor" unique_id=1514079469] +transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.015, -0.01, 0) +visible = false + +[node name="FlashlightSprite" type="Sprite3D" parent="Runner/HUD/Grid/Cursor/Flashlight" unique_id=700151672] +pixel_size = 0.025 +billboard = 1 +no_depth_test = true +render_priority = 1 +texture = ExtResource("11_0sl42") + [node name="BufferCursor" type="MeshInstance3D" parent="Runner/HUD/Grid" unique_id=703771191] visible = false transparency = 1.0 @@ -646,6 +665,7 @@ script = ExtResource("21_twgab") [node name="Label" type="Label3D" parent="Runner/HUD/Progress" unique_id=496335082] transform = Transform3D(3.5, 0, 0, 0, 3.38074, -0.905867, 0, 0.905867, 3.38074, 0, 7, -10) pixel_size = 0.0025 +render_priority = 2 modulate = Color(1, 1, 1, 0.74509805) outline_modulate = Color(0, 0, 0, 0) text = "0:00 / 0:00" @@ -657,6 +677,7 @@ script = ExtResource("22_02fa5") [node name="Label" type="Label3D" parent="Runner/HUD/Title" unique_id=841289409] transform = Transform3D(2, 0, 0, 0, 1.93185, -0.517638, 0, 0.517638, 1.93185, 0, 8.25, -10) +render_priority = 2 outline_modulate = Color(0, 0, 0, 0) text = "N/A - N/A" font = ExtResource("20_pr1ej") @@ -670,6 +691,8 @@ script = ExtResource("20_suyxu") [node name="Label" type="Label3D" parent="Runner/HUD/Combo" unique_id=1330017059] transform = Transform3D(7, 0, 0, 0, 6.89365, -1.21554, 0, 1.21554, 6.89365, 0, 3.5, -10) pixel_size = 0.0025 +render_priority = 2 +outline_render_priority = 2 modulate = Color(1, 1, 1, 0) outline_modulate = Color(1, 1, 1, 0.39215687) text = "0" @@ -684,6 +707,7 @@ script = ExtResource("28_gxtfn") [node name="Label" type="Label3D" parent="Runner/HUD/Speed" unique_id=1294863906] transform = Transform3D(0.99999994, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994, 0, 0, 0) pixel_size = 0.0025 +render_priority = 2 modulate = Color(1, 1, 1, 0.39215687) outline_modulate = Color(0, 0, 0, 0) text = "1.00x" @@ -695,6 +719,7 @@ script = ExtResource("25_nepv3") [node name="Label" type="Label3D" parent="Runner/HUD/Skip" unique_id=1231864437] transform = Transform3D(7, 0, 0, 0, 6.76148, 1.81173, 0, -1.81173, 6.76148, 0, -5, -10) pixel_size = 0.0025 +render_priority = 2 modulate = Color(1, 1, 1, 0) outline_modulate = Color(0, 0, 0, 0) text = "Press Space to skip" @@ -706,6 +731,7 @@ visible = false modulate = Color(1, 1, 1, 0.376471) double_sided = false no_depth_test = true +render_priority = 2 texture = ExtResource("34_8ool0") [node name="Renderers" type="Node3D" parent="Runner" unique_id=561265512] diff --git a/scripts/Rhythia.cs b/scripts/Rhythia.cs index 21566a7c..95875e05 100644 --- a/scripts/Rhythia.cs +++ b/scripts/Rhythia.cs @@ -199,6 +199,7 @@ public static void RegisterModifiers() new GhostModifier(), new StrobeModifier(), new FlickerModifier(), + new FlashlightModifier(), new ChaosModifier(), new VortexModifier(), new EarthquakeModifier(), diff --git a/scripts/game/Runner.cs b/scripts/game/Runner.cs index 6bc7cec3..3f5fadb4 100644 --- a/scripts/game/Runner.cs +++ b/scripts/game/Runner.cs @@ -759,7 +759,7 @@ private void syncSongPosition() } /// - /// Resets grid size and panels positions + /// Resets previous hud items' states /// private void resetHudItems() { @@ -767,5 +767,10 @@ private void resetHudItems() PanelRight.Translate(new Vector3((float)panelOffset, 0, 0)); gridMesh.Size = gridOriginalSize; gridGuidesMesh.Size = gridOriginalSize; + + foreach (IHudObjectModifier mod in Attempt.Modifiers.Where(mod => mod is IHudObjectModifier)) + { + mod.ResetGrid(Grid); + } } } diff --git a/scripts/game/modifiers/FlashlightModifier.cs b/scripts/game/modifiers/FlashlightModifier.cs new file mode 100644 index 00000000..e2ab0374 --- /dev/null +++ b/scripts/game/modifiers/FlashlightModifier.cs @@ -0,0 +1,44 @@ +using System; +using Godot; + +public class FlashlightModifier : Modifier, IModifier, IHudObjectModifier +{ + public override string Name => "Flashlight"; + + public override Color Color => new(0xffffffff); + + public override bool Rankable => true; + + public override double ScoreMultiplier => 1.1; + + private float minFlashlightSize = 0.015f; + + private float maxFlashlightSize = 0.025f; + + private float minFlashlightSpinSize = 0.01875f; + + private float maxFlashlightSpinSize = 0.03125f; + + public float GetFlashlightSize(Attempt attempt) + { + bool cameraLock = attempt.CameraMode is CameraLock; + long minFlashlightCombo = attempt.Map.Notes.Length / 100 * 25; + + return cameraLock + ? maxFlashlightSize - ((maxFlashlightSize - minFlashlightSize) / minFlashlightCombo * Math.Min(attempt.Combo, minFlashlightCombo)) + : maxFlashlightSpinSize + - ((maxFlashlightSpinSize - minFlashlightSpinSize) / minFlashlightCombo * Math.Min(attempt.Combo, minFlashlightCombo)); + } + + public void ModifyGrid(MeshInstance3D grid) + { + Node3D flashlight = grid.GetNode("Cursor/Flashlight"); + flashlight.Visible = true; + } + + public void ResetGrid(MeshInstance3D grid) + { + Node3D flashlight = grid.GetNode("Cursor/Flashlight"); + flashlight.Visible = false; + } +} diff --git a/scripts/game/modifiers/FlashlightModifier.cs.uid b/scripts/game/modifiers/FlashlightModifier.cs.uid new file mode 100644 index 00000000..bc40a9db --- /dev/null +++ b/scripts/game/modifiers/FlashlightModifier.cs.uid @@ -0,0 +1 @@ +uid://bdjv4awfyrc1p diff --git a/scripts/game/modifiers/IHudObjectModifier.cs b/scripts/game/modifiers/IHudObjectModifier.cs index 8e72cf42..86ae5877 100644 --- a/scripts/game/modifiers/IHudObjectModifier.cs +++ b/scripts/game/modifiers/IHudObjectModifier.cs @@ -6,4 +6,9 @@ void ModifyGrid(MeshInstance3D grid) { return; } + + void ResetGrid(MeshInstance3D grid) + { + return; + } } diff --git a/scripts/game/renderers/NoteRenderer.cs b/scripts/game/renderers/NoteRenderer.cs index 658672e1..c26798a0 100644 --- a/scripts/game/renderers/NoteRenderer.cs +++ b/scripts/game/renderers/NoteRenderer.cs @@ -56,10 +56,9 @@ public override void Setup(SettingsProfile settings, SkinProfile skin) } } - private bool doRender(Note note, float time, float approachTime, float speed) + private bool doRender(Note note, float time, float approachTime, float speed, bool pushback) { - return note.Millisecond - time >= (Settings.Pushback ? -Constants.HIT_WINDOW * speed : 0) - && note.Millisecond - time <= approachTime * 1000 * speed; + return note.Millisecond - time >= (pushback ? -Constants.HIT_WINDOW * speed : 0) && note.Millisecond - time <= approachTime * 1000 * speed; } public void Render(double delta, double time, IList notes) @@ -73,7 +72,7 @@ public void Render(double delta, double time, IList notes) float fadeOut = (float)(double)Settings.FadeOut / 100; float noteOpacity = (float)(double)Settings.NoteOpacity; float noteOpacityExponent = Math.Max(Mathf.Epsilon, (float)(double)Settings.NoteOpacityExponent); - bool pushback = Settings.Pushback; + bool pushback = attempt.Modifiers.Any(mod => mod is FlashlightModifier) ? false : Settings.Pushback; float hitWindowDepth = pushback ? (float)Constants.HIT_WINDOW * ar / 1000 : 0; var transform = new Transform3D(new(noteSize / 2, 0, 0), new(0, noteSize / 2, 0), new(0, 0, noteSize / 2), Vector3.Zero); @@ -91,7 +90,7 @@ public void Render(double delta, double time, IList notes) { var note = notes[i]; - if (!doRender(note, (float)time, at, (float)attempt.Speed) || note.LastResult == HitResult.Hit) + if (!doRender(note, (float)time, at, (float)attempt.Speed, pushback) || note.LastResult == HitResult.Hit) { NoteMultiMesh.Multimesh.SetInstanceColor(i, transparent); continue; diff --git a/scripts/game/ui/Grid.cs b/scripts/game/ui/Grid.cs index 620eb038..b79367bf 100644 --- a/scripts/game/ui/Grid.cs +++ b/scripts/game/ui/Grid.cs @@ -1,5 +1,6 @@ using System; using System.Globalization; +using System.Linq; using Godot; public partial class Grid : MeshInstance3D, IUIComponent @@ -11,6 +12,7 @@ public partial class Grid : MeshInstance3D, IUIComponent public MultiMeshInstance3D CursorTrail { get; set; } public MeshInstance3D GridGuides { get; set; } public MeshInstance3D VisibilityAssist { get; set; } + public Sprite3D FlashlightSprite { get; set; } private static readonly PackedScene hit_feedback = GD.Load("res://prefabs/hit_popup.tscn"); private static readonly PackedScene miss_feedback = GD.Load("res://prefabs/miss_icon.tscn"); @@ -66,9 +68,19 @@ public void Init() (GetActiveMaterial(0) as StandardMaterial3D).AlbedoTexture = SkinManager.Instance.Skin.GridImage; + FlashlightSprite = GetNode("Cursor/Flashlight/FlashlightSprite"); + Runner.HitResultChanged += onHitResultChanged; } + public void Process(double delta, Attempt attempt) + { + foreach (FlashlightModifier mod in attempt.Modifiers.Where(mod => mod is FlashlightModifier)) + { + FlashlightSprite.PixelSize = (float)Mathf.Lerp(FlashlightSprite.PixelSize, mod.GetFlashlightSize(attempt), 0.0125); + } + } + private void onHitResultChanged(int noteIndex, HitResult result) { float lateness = Runner.Attempt.IsReplay diff --git a/scripts/map/Replay.cs b/scripts/map/Replay.cs index 0b4e4bbf..c14732fd 100644 --- a/scripts/map/Replay.cs +++ b/scripts/map/Replay.cs @@ -145,6 +145,9 @@ public Replay(string path) case "Flicker": Modifiers.Add(new FlickerModifier()); break; + case "Flashlight": + Modifiers.Add(new FlashlightModifier()); + break; case "Earthquake": Modifiers.Add(new EarthquakeModifier()); break; diff --git a/scripts/skinning/SkinManager.cs b/scripts/skinning/SkinManager.cs index 472502ee..96df4c89 100644 --- a/scripts/skinning/SkinManager.cs +++ b/scripts/skinning/SkinManager.cs @@ -124,6 +124,7 @@ public static void Load() skin.ModGhostImage = loadTexture("modifiers/ghost.png"); skin.ModStrobeImage = loadTexture("modifiers/strobe.png"); skin.ModFlickerImage = loadTexture("modifiers/flicker.png"); + skin.ModFlashlightImage = loadTexture("modifiers/flashlight.png"); skin.ModChaosImage = loadTexture("modifiers/chaos.png"); skin.ModVortexImage = loadTexture("modifiers/vortex.png"); skin.ModEarthquakeImage = loadTexture("modifiers/earthquake.png"); diff --git a/scripts/skinning/SkinProfile.cs b/scripts/skinning/SkinProfile.cs index f8d40fd3..129ecb1a 100644 --- a/scripts/skinning/SkinProfile.cs +++ b/scripts/skinning/SkinProfile.cs @@ -121,6 +121,8 @@ public partial class SkinProfile : RefCounted public ImageTexture ModFlickerImage { get; set; } = new(); + public ImageTexture ModFlashlightImage { get; set; } = new(); + public ImageTexture ModChaosImage { get; set; } = new(); public ImageTexture ModVortexImage { get; set; } = new(); diff --git a/scripts/util/Misc.cs b/scripts/util/Misc.cs index a408b58d..43b6c049 100644 --- a/scripts/util/Misc.cs +++ b/scripts/util/Misc.cs @@ -33,6 +33,9 @@ public static Texture2D GetModIcon(string mod) case "Flicker": tex = skin.ModFlickerImage; break; + case "Flashlight": + tex = skin.ModFlashlightImage; + break; case "Chaos": tex = skin.ModChaosImage; break; @@ -143,12 +146,12 @@ public static Image LoadImageFromBuffer(byte[] buffer) $""" Couldn't load image from buffer Type: {( - isPng ? "PNG" - : isJpeg ? "JPG" - : isBmp ? "BMP" - : isWebp ? "WEBP" - : "Unknown" - )}; + isPng ? "PNG" + : isJpeg ? "JPG" + : isBmp ? "BMP" + : isWebp ? "WEBP" + : "Unknown" + )}; Size: {buffer.Length} """ ); diff --git a/user/skins/default/modifiers/flashlight.png b/user/skins/default/modifiers/flashlight.png new file mode 100644 index 0000000000000000000000000000000000000000..635816043ef511bc7db1d6fa51fefcf388c158c7 GIT binary patch literal 1469 zcmV;u1w#6XP)kO;Q}{ST7iVb0T{7bc9>C5PZHadN6+x4l=OBd9d#sJQYq;qcH7TYugaAaMV2gC zvSi7UB}H#Hll0M8_^b%wdm^v=MK+Y$7ckHaBu)*;;G$I^i1?+(R%>E(qt{3Gj#m78%*qX z(WjzUxc;2zspvcCH(q}z`j_YhK-en))xdTZgZ)(WO{|&$C>18WpmVGKFF+rQeo6P^ z0*Y-Wl{Sv<9LE&Nq{BrF+25lij9)Pc~=O$p>1%XQs)H$koF9dg~G8GP?GOk4E9AF@2Nb%(2A}p zS-MtfZbg8$&!{WR!UfnoSLzOh7dNC9xepF#X>Tw#WI1wyKog8Be}-p{2rO=sz`I5y z2~%@`S7~rLV*Bc;Pn}-J>+yB@>*&8GZb(`q|M(f(>&tD&GBgYZTJf54|F$QU-8Kp| zq=rC#0Tm{%07!t;s6;)0Oa4eMad&&FKCmz&*}5hW(r?!h9k#K6hWcpeKR66}wFsf( z_p7R?GKmGWl<`>#TUWT&3;@6t|GiUOQon@?hYU_bzd0qJlmwGsuBo2aV!)4Zz3C&N zu5Wx$I==$be<%70f$DldU`>VAYj8llEg28}NXmkZUlV-~m7R0c`Qk=sz3ZoK(r^0i zD6;)qqOWvpqd7-ti8vDvoWqJ%*iY;q05#wvtXd+#8?3$?(dQ|Or~J;*cVwYn{az>j z*yaC6y=hS&NfyPh7oxh)lvLTC@dd>lOoo1nZwU`75##~y7_(%_k|j%)ELpN-d4~K0 XkN8Ge4B6(200000NkvXXu0mjf##EeY literal 0 HcmV?d00001 diff --git a/user/skins/default/modifiers/flashlight.png.import b/user/skins/default/modifiers/flashlight.png.import new file mode 100644 index 00000000..b8235f53 --- /dev/null +++ b/user/skins/default/modifiers/flashlight.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dfevnenw0cev5" +path="res://.godot/imported/flashlight.png-06a11b42f0929e0663277884895eb4bf.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://user/skins/default/modifiers/flashlight.png" +dest_files=["res://.godot/imported/flashlight.png-06a11b42f0929e0663277884895eb4bf.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/user/skins/default/ui/flashlight.png b/user/skins/default/ui/flashlight.png new file mode 100644 index 0000000000000000000000000000000000000000..cb31efd50daf959bb40996be0ecf1cf504a25399 GIT binary patch literal 12449 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2o>89?l3u1>hu64ri?L4F-+ogVoVH^C?5#EAlNYx10mF+d`uN%Oo1=~ z(})2Ja*WeS`GQ~v0>&7mh-|A==l;q3K?IqAfe_^?GZ{M&FeY*=*4$`) z6_?82TgTsDwgI>>)Oa66$iYczAE8zv)ECjZKQVtMhk;O|;5Ugi_fOKCxK#ew+%N`qK)6E*j8K}el@HSW3cSMW~h;68)B)IHW`{{<~V_5c6? literal 0 HcmV?d00001 diff --git a/user/skins/default/ui/flashlight.png.import b/user/skins/default/ui/flashlight.png.import new file mode 100644 index 00000000..dc47de78 --- /dev/null +++ b/user/skins/default/ui/flashlight.png.import @@ -0,0 +1,42 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://2qqfj6l0n8c4" +path.s3tc="res://.godot/imported/flashlight.png-07a32f135823c7d0f1fa61be3888a5c3.s3tc.ctex" +path.etc2="res://.godot/imported/flashlight.png-07a32f135823c7d0f1fa61be3888a5c3.etc2.ctex" +metadata={ +"imported_formats": ["s3tc_bptc", "etc2_astc"], +"vram_texture": true +} + +[deps] + +source_file="res://user/skins/default/ui/flashlight.png" +dest_files=["res://.godot/imported/flashlight.png-07a32f135823c7d0f1fa61be3888a5c3.s3tc.ctex", "res://.godot/imported/flashlight.png-07a32f135823c7d0f1fa61be3888a5c3.etc2.ctex"] + +[params] + +compress/mode=2 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=true +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=0 diff --git a/user/skins/legacy/game/cursor.png.import b/user/skins/legacy/game/cursor.png.import index b1f25d1d..8887c627 100644 --- a/user/skins/legacy/game/cursor.png.import +++ b/user/skins/legacy/game/cursor.png.import @@ -3,19 +3,21 @@ importer="texture" type="CompressedTexture2D" uid="uid://d2p1fyuw5sfr7" -path="res://.godot/imported/cursor.png-df521930aac39afe707cb8d545996882.ctex" +path.s3tc="res://.godot/imported/cursor.png-df521930aac39afe707cb8d545996882.s3tc.ctex" +path.etc2="res://.godot/imported/cursor.png-df521930aac39afe707cb8d545996882.etc2.ctex" metadata={ -"vram_texture": false +"imported_formats": ["s3tc_bptc", "etc2_astc"], +"vram_texture": true } [deps] source_file="res://user/skins/legacy/game/cursor.png" -dest_files=["res://.godot/imported/cursor.png-df521930aac39afe707cb8d545996882.ctex"] +dest_files=["res://.godot/imported/cursor.png-df521930aac39afe707cb8d545996882.s3tc.ctex", "res://.godot/imported/cursor.png-df521930aac39afe707cb8d545996882.etc2.ctex"] [params] -compress/mode=0 +compress/mode=2 compress/high_quality=false compress/lossy_quality=0.7 compress/uastc_level=0 @@ -23,7 +25,7 @@ compress/rdo_quality_loss=0.0 compress/hdr_compression=1 compress/normal_map=0 compress/channel_pack=0 -mipmaps/generate=false +mipmaps/generate=true mipmaps/limit=-1 roughness/mode=0 roughness/src_normal="" @@ -37,4 +39,4 @@ process/normal_map_invert_y=false process/hdr_as_srgb=false process/hdr_clamp_exposure=false process/size_limit=0 -detect_3d/compress_to=1 +detect_3d/compress_to=0