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

83
menus/file_select.tscn Normal file
View file

@ -0,0 +1,83 @@
[gd_scene load_steps=7 format=2]
[ext_resource path="res://menus/file_select_panel.tscn" type="PackedScene" id=1]
[ext_resource path="res://graphics/borders/skaborder.png" type="Texture" id=8]
[ext_resource path="res://graphics/hud/file_select_arrow.png" type="Texture" id=9]
[ext_resource path="res://menus/file_select.gd" type="Script" id=10]
[ext_resource path="res://shaders/ska_plane.gdshader" type="Shader" id=11]
[sub_resource type="ShaderMaterial" id=2]
shader = ExtResource( 11 )
shader_param/color_1 = Color( 0.2, 0.294118, 1, 1 )
shader_param/color_2 = Color( 0, 0.0352941, 0.329412, 1 )
shader_param/checker_size = Vector2( 16, 16 )
shader_param/cycle_speed = Vector2( 0, 16 )
shader_param/pan_speed = Vector2( 0, 0 )
shader_param/uv_transform = Transform2D( 2, 0, 2, 1, 0, 0 )
[node name="FileSelect" type="Node"]
script = ExtResource( 10 )
[node name="TextureRect2" type="TextureRect" parent="."]
visible = false
modulate = Color( 0, 0.109804, 1, 1 )
anchor_right = 1.0
anchor_bottom = 1.0
texture = ExtResource( 8 )
expand = true
stretch_mode = 2
[node name="ColorRect" type="ColorRect" parent="."]
material = SubResource( 2 )
margin_right = 256.0
margin_bottom = 192.0
[node name="Panel" parent="." instance=ExtResource( 1 )]
margin_left = 12.0
margin_top = 64.0
margin_right = 84.0
margin_bottom = 128.0
[node name="Panel2" parent="." instance=ExtResource( 1 )]
margin_left = 92.0
margin_top = 64.0
margin_right = 164.0
margin_bottom = 128.0
number = 2
[node name="Panel3" parent="." instance=ExtResource( 1 )]
margin_left = 172.0
margin_top = 64.0
margin_right = 244.0
margin_bottom = 128.0
number = 3
[node name="SelectFile1" type="TextureButton" parent="."]
margin_left = 12.0
margin_top = 130.0
margin_right = 84.0
margin_bottom = 138.0
texture_normal = ExtResource( 9 )
texture_focused = ExtResource( 9 )
expand = true
stretch_mode = 3
[node name="SelectFile2" type="TextureButton" parent="."]
margin_left = 92.0
margin_top = 130.0
margin_right = 164.0
margin_bottom = 138.0
texture_normal = ExtResource( 9 )
texture_focused = ExtResource( 9 )
expand = true
stretch_mode = 3
[node name="SelectFile3" type="TextureButton" parent="."]
margin_left = 172.0
margin_top = 130.0
margin_right = 244.0
margin_bottom = 138.0
texture_normal = ExtResource( 9 )
texture_focused = ExtResource( 9 )
expand = true
stretch_mode = 3