changed sg sprite to work better with palettes

This commit is contained in:
pennyrigate 2023-06-02 18:03:44 -04:00
parent 463b7952b1
commit a5f4c34236
34 changed files with 356 additions and 9 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=7 format=2]
[gd_scene load_steps=8 format=2]
[ext_resource path="res://ui/theme.tres" type="Theme" id=1]
[ext_resource path="res://graphics/hud/sg_menu.png" type="Texture" id=3]
@ -8,13 +8,22 @@
[sub_resource type="ShaderMaterial" id=2]
shader = ExtResource( 6 )
shader_param/color_1 = Color( 0.952941, 0.952941, 0.952941, 1 )
shader_param/color_2 = Color( 0.137255, 0.137255, 0.137255, 1 )
shader_param/color_1 = Color( 1, 0.835294, 0.619608, 1 )
shader_param/color_2 = Color( 1, 0.478431, 0.219608, 1 )
shader_param/checker_size = Vector2( 16, 16 )
shader_param/cycle_speed = Vector2( 12, 0 )
shader_param/pan_speed = Vector2( 0, 0 )
shader_param/uv_transform = Transform( 1, -2, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0 )
[sub_resource type="ShaderMaterial" id=3]
shader = ExtResource( 6 )
shader_param/color_1 = Color( 0.62, 0.797333, 1, 1 )
shader_param/color_2 = Color( 0.22, 0.428, 1, 1 )
shader_param/checker_size = Vector2( 16, 16 )
shader_param/cycle_speed = Vector2( 24, 0 )
shader_param/pan_speed = Vector2( 0, 0 )
shader_param/uv_transform = Transform( 1, 1, 0, 2, 1, 0, 0, 0, 1, 0, 0, 0 )
[node name="MainMenu" type="Node"]
script = ExtResource( 5 )
@ -22,6 +31,13 @@ script = ExtResource( 5 )
material = SubResource( 2 )
anchor_right = 1.0
anchor_bottom = 1.0
margin_top = 136.0
[node name="Background2" type="ColorRect" parent="."]
material = SubResource( 3 )
anchor_right = 1.0
anchor_bottom = 1.0
margin_bottom = -56.0
[node name="TextureRect2" type="TextureRect" parent="."]
margin_left = 176.0
@ -60,7 +76,7 @@ margin_left = 8.0
margin_top = 9.0
margin_right = 16.0
margin_bottom = 17.0
focus_neighbour_top = NodePath("../Augmentations")
focus_neighbour_top = NodePath("../Options")
focus_neighbour_bottom = NodePath("../FileSelect")
texture_focused = ExtResource( 4 )