From 805640a1f04bd30356caa0b515ea78397fb9aa8b Mon Sep 17 00:00:00 2001 From: Al Justin Date: Fri, 21 Feb 2025 09:28:49 +0800 Subject: [PATCH] feat: added shop --- .../13/scenes/shop/flicker_box_lights.gd | 15 + .../gamejam/brackeys/13/scenes/shop/shop.tscn | 380 ++++++++++++++++++ .../13/scripts/flicker_progress_bar.gd | 11 + apps/gamejam/brackeys/13/scripts/shop.gd | 43 ++ apps/gamejam/brackeys/13/theme/Theme.tres | 52 ++- apps/gamejam/brackeys/13/theme/empty.stylebox | Bin 0 -> 215 bytes 6 files changed, 500 insertions(+), 1 deletion(-) create mode 100644 apps/gamejam/brackeys/13/scenes/shop/flicker_box_lights.gd create mode 100644 apps/gamejam/brackeys/13/scenes/shop/shop.tscn create mode 100644 apps/gamejam/brackeys/13/scripts/flicker_progress_bar.gd create mode 100644 apps/gamejam/brackeys/13/scripts/shop.gd create mode 100644 apps/gamejam/brackeys/13/theme/empty.stylebox diff --git a/apps/gamejam/brackeys/13/scenes/shop/flicker_box_lights.gd b/apps/gamejam/brackeys/13/scenes/shop/flicker_box_lights.gd new file mode 100644 index 000000000..95f89512e --- /dev/null +++ b/apps/gamejam/brackeys/13/scenes/shop/flicker_box_lights.gd @@ -0,0 +1,15 @@ +extends TextureRect + +@export var lights_on : CompressedTexture2D +@export var lights_off : CompressedTexture2D + +@onready var light : Array[CompressedTexture2D] = [lights_on, lights_off] + +var flicker := 0.5 + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + if flicker <= 0: + flicker = randf_range(0.3,0.8) + texture = light[randi_range(0,1)] + flicker -= 1 * delta diff --git a/apps/gamejam/brackeys/13/scenes/shop/shop.tscn b/apps/gamejam/brackeys/13/scenes/shop/shop.tscn new file mode 100644 index 000000000..a024bcb69 --- /dev/null +++ b/apps/gamejam/brackeys/13/scenes/shop/shop.tscn @@ -0,0 +1,380 @@ +[gd_scene load_steps=20 format=3 uid="uid://dafbmqoy3qcy3"] + +[ext_resource type="Script" path="res://scripts/shop.gd" id="1_3omsn"] +[ext_resource type="Texture2D" uid="uid://d07qbaay5wanp" path="res://assets/audioknobs-ui/audioknobs/panel2.png" id="1_x5466"] +[ext_resource type="Texture2D" uid="uid://sgs4hcughaca" path="res://assets/audioknobs-ui/audioknobs/metaltile1.png" id="2_3j53l"] +[ext_resource type="Texture2D" uid="uid://b0owywtbixr6b" path="res://assets/audioknobs-ui/audioknobs/screen-panel.png" id="3_pd5pr"] +[ext_resource type="Texture2D" uid="uid://pnucsbsdbg23" path="res://assets/audioknobs-ui/audioknobs/panel.png" id="4_atpsb"] +[ext_resource type="Theme" uid="uid://bkt3waoihtb6j" path="res://theme/Theme.tres" id="5_lsrhg"] +[ext_resource type="Texture2D" uid="uid://dcrqllgsdaexs" path="res://assets/audioknobs-ui/audioknobs/green-light-off.png" id="6_75t5l"] +[ext_resource type="Script" path="res://scripts/flicker_progress_bar.gd" id="6_lok5i"] +[ext_resource type="Texture2D" uid="uid://bc8nwvte2yhis" path="res://assets/audioknobs-ui/audioknobs/yellow-light-off.png" id="7_xbhgy"] +[ext_resource type="Texture2D" uid="uid://biq68ip5epeqt" path="res://assets/audioknobs-ui/audioknobs/red-light-on.png" id="8_dlq7y"] +[ext_resource type="Texture2D" uid="uid://2liukuvfgr4v" path="res://assets/audioknobs-ui/audioknobs/red-light-off.png" id="9_f5tfu"] +[ext_resource type="Texture2D" uid="uid://kfwtoid8jdk5" path="res://assets/audioknobs-ui/audioknobs/yellow-light-on.png" id="10_c5p2i"] +[ext_resource type="Texture2D" uid="uid://fs6ow7sk8icp" path="res://assets/audioknobs-ui/audioknobs/green-light-on.png" id="11_jcbtr"] +[ext_resource type="Texture2D" uid="uid://c3v31w8acyyn0" path="res://assets/audioknobs-ui/audioknobs/box-green-light-off.png" id="12_2lry1"] +[ext_resource type="Texture2D" uid="uid://chemwe16wbpdg" path="res://assets/audioknobs-ui/audioknobs/box-yellow-light-off.png" id="13_swidh"] +[ext_resource type="Script" path="res://scenes/shop/flicker_box_lights.gd" id="14_mhgll"] +[ext_resource type="Texture2D" uid="uid://c1pcq6r81csym" path="res://assets/audioknobs-ui/audioknobs/box-green-light-on.png" id="15_dyc2a"] +[ext_resource type="Texture2D" uid="uid://ccyvse33p3bm1" path="res://assets/audioknobs-ui/audioknobs/box-yellow-light-on.png" id="17_2kql4"] + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_mr6sy"] +texture = ExtResource("1_x5466") +expand_margin_left = 20.0 +expand_margin_top = 10.0 +expand_margin_right = 20.0 +expand_margin_bottom = 10.0 + +[node name="Shop" type="ColorRect"] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +color = Color(0.201527, 0.201527, 0.201527, 1) +script = ExtResource("1_3omsn") + +[node name="HBoxContainer" type="HBoxContainer" parent="."] +layout_mode = 0 +offset_left = 81.0 +offset_top = 27.0 +offset_right = 1071.0 +offset_bottom = 104.0 +theme_override_constants/separation = 105 + +[node name="Label" type="Label" parent="HBoxContainer"] +layout_mode = 2 +size_flags_horizontal = 3 +theme_override_font_sizes/font_size = 56 +theme_override_styles/normal = SubResource("StyleBoxTexture_mr6sy") +horizontal_alignment = 1 + +[node name="ShopTitle" type="Label" parent="HBoxContainer"] +layout_mode = 2 +size_flags_vertical = 1 +theme_override_font_sizes/font_size = 56 +theme_override_styles/normal = SubResource("StyleBoxTexture_mr6sy") +text = "Shop" +horizontal_alignment = 1 + +[node name="Label3" type="Label" parent="HBoxContainer"] +layout_mode = 2 +size_flags_horizontal = 3 +theme_override_font_sizes/font_size = 56 +theme_override_styles/normal = SubResource("StyleBoxTexture_mr6sy") +horizontal_alignment = 1 + +[node name="Button" type="Button" parent="HBoxContainer/Label3"] +layout_mode = 0 +offset_left = 7.0 +offset_top = 4.0 +offset_right = 322.0 +offset_bottom = 70.0 +theme = ExtResource("5_lsrhg") +theme_type_variation = &"SpaceBar" + +[node name="MainBG" type="TextureRect" parent="."] +layout_mode = 0 +offset_left = 37.0 +offset_top = 148.0 +offset_right = 1114.0 +offset_bottom = 613.0 +theme = ExtResource("5_lsrhg") +texture = ExtResource("2_3j53l") + +[node name="CenterScreen" type="TextureRect" parent="MainBG"] +layout_mode = 0 +offset_left = 436.0 +offset_top = 10.0 +offset_right = 798.0 +offset_bottom = 324.0 +texture = ExtResource("3_pd5pr") + +[node name="HBoxContainer" type="HBoxContainer" parent="MainBG/CenterScreen"] +layout_mode = 0 +offset_left = 31.0 +offset_top = 55.0 +offset_right = 335.0 +offset_bottom = 150.0 + +[node name="Left" type="Label" parent="MainBG/CenterScreen/HBoxContainer"] +layout_mode = 2 +size_flags_horizontal = 3 +size_flags_vertical = 1 +text = "dada +dada" +vertical_alignment = 3 + +[node name="Right" type="Label" parent="MainBG/CenterScreen/HBoxContainer"] +layout_mode = 2 +size_flags_horizontal = 3 +size_flags_vertical = 1 +text = "dad +sdsd" +horizontal_alignment = 2 +vertical_alignment = 3 + +[node name="Label" type="Label" parent="MainBG/CenterScreen"] +layout_mode = 0 +offset_left = 30.0 +offset_top = 201.0 +offset_right = 332.0 +offset_bottom = 224.0 +text = "Left Right" +horizontal_alignment = 3 + +[node name="LeftPanel" type="TextureRect" parent="MainBG"] +layout_mode = 0 +offset_left = 20.0 +offset_top = 15.0 +offset_right = 323.0 +offset_bottom = 351.0 +texture = ExtResource("1_x5466") + +[node name="ScreenPanel" type="TextureRect" parent="MainBG/LeftPanel"] +offset_left = 32.0 +offset_top = 34.0 +offset_right = 264.0 +offset_bottom = 177.0 +texture = ExtResource("3_pd5pr") + +[node name="Title" type="Label" parent="MainBG/LeftPanel/ScreenPanel"] +layout_mode = 0 +offset_left = 77.0 +offset_top = 21.0 +offset_right = 160.0 +offset_bottom = 44.0 +text = "Categories" +horizontal_alignment = 1 + +[node name="Label" type="Label" parent="MainBG/LeftPanel/ScreenPanel"] +layout_mode = 0 +offset_left = 51.0 +offset_top = 73.0 +offset_right = 183.0 +offset_bottom = 96.0 +text = "Weapons" +horizontal_alignment = 1 + +[node name="HBoxContainer" type="HBoxContainer" parent="MainBG/LeftPanel"] +layout_mode = 0 +offset_left = 32.0 +offset_top = 206.0 +offset_right = 267.0 +offset_bottom = 269.0 +theme = ExtResource("5_lsrhg") +metadata/_edit_group_ = true + +[node name="LeftButton" type="Button" parent="MainBG/LeftPanel/HBoxContainer"] +layout_mode = 2 +size_flags_horizontal = 3 +theme = ExtResource("5_lsrhg") +theme_type_variation = &"LeftButton" + +[node name="EnterButton" type="Button" parent="MainBG/LeftPanel/HBoxContainer"] +custom_minimum_size = Vector2(120, 0) +layout_mode = 2 +size_flags_horizontal = 3 +theme = ExtResource("5_lsrhg") +theme_type_variation = &"SpaceBar" + +[node name="RightButton" type="Button" parent="MainBG/LeftPanel/HBoxContainer"] +layout_mode = 2 +size_flags_horizontal = 3 +theme = ExtResource("5_lsrhg") +theme_type_variation = &"RightButton" + +[node name="LeftButtons" type="TextureRect" parent="MainBG"] +layout_mode = 0 +offset_left = 339.0 +offset_top = 33.0 +offset_right = 424.0 +offset_bottom = 284.0 +texture = ExtResource("4_atpsb") +metadata/_edit_group_ = true + +[node name="VBoxContainer" type="VBoxContainer" parent="MainBG/LeftButtons"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = 12.0 +offset_top = 23.0 +offset_right = -13.0 +offset_bottom = -25.0 +grow_horizontal = 2 +grow_vertical = 2 +theme = ExtResource("5_lsrhg") + +[node name="Button" type="Button" parent="MainBG/LeftButtons/VBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 +theme_type_variation = &"RightButton" + +[node name="Button2" type="Button" parent="MainBG/LeftButtons/VBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 +theme_type_variation = &"RightButton" + +[node name="Button3" type="Button" parent="MainBG/LeftButtons/VBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 +theme_type_variation = &"RightButton" + +[node name="RightButtons" type="TextureRect" parent="MainBG"] +layout_mode = 0 +offset_left = 816.0 +offset_top = 33.0 +offset_right = 901.0 +offset_bottom = 284.0 +texture = ExtResource("4_atpsb") +metadata/_edit_group_ = true + +[node name="VBoxContainer" type="VBoxContainer" parent="MainBG/RightButtons"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = 12.0 +offset_top = 23.0 +offset_right = -13.0 +offset_bottom = -25.0 +grow_horizontal = 2 +grow_vertical = 2 +theme = ExtResource("5_lsrhg") +metadata/_edit_group_ = true + +[node name="Button" type="Button" parent="MainBG/RightButtons/VBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 +theme_type_variation = &"LeftButton" + +[node name="Button2" type="Button" parent="MainBG/RightButtons/VBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 +theme_type_variation = &"LeftButton" + +[node name="Button3" type="Button" parent="MainBG/RightButtons/VBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 +theme_type_variation = &"LeftButton" + +[node name="NonInteractable" type="Control" parent="MainBG"] +anchors_preset = 0 +offset_right = 40.0 +offset_bottom = 40.0 + +[node name="BottomScreen" type="TextureRect" parent="MainBG/NonInteractable"] +layout_mode = 0 +offset_left = 44.0 +offset_top = 366.0 +offset_right = 1034.0 +offset_bottom = 449.0 +texture = ExtResource("3_pd5pr") + +[node name="VSlider" type="VSlider" parent="MainBG/NonInteractable"] +layout_mode = 0 +offset_left = 901.0 +offset_top = 35.0 +offset_right = 991.0 +offset_bottom = 166.0 +value = 24.0 +editable = false +scrollable = false + +[node name="VSlider2" type="VSlider" parent="MainBG/NonInteractable"] +layout_mode = 0 +offset_left = 947.0 +offset_top = 35.0 +offset_right = 1037.0 +offset_bottom = 166.0 +value = 79.0 +editable = false +scrollable = false + +[node name="ProgressBar" type="ProgressBar" parent="MainBG/NonInteractable"] +layout_mode = 0 +offset_left = 937.0 +offset_top = 179.0 +offset_right = 962.0 +offset_bottom = 271.0 +fill_mode = 3 +show_percentage = false +script = ExtResource("6_lok5i") + +[node name="ProgressBar2" type="ProgressBar" parent="MainBG/NonInteractable"] +layout_mode = 0 +offset_left = 980.0 +offset_top = 178.0 +offset_right = 1005.0 +offset_bottom = 270.0 +fill_mode = 3 +show_percentage = false +script = ExtResource("6_lok5i") + +[node name="GridContainer" type="GridContainer" parent="MainBG/NonInteractable"] +layout_mode = 0 +offset_left = 351.0 +offset_top = 299.0 +offset_right = 415.0 +offset_bottom = 340.0 +columns = 4 + +[node name="TextureRect" type="TextureRect" parent="MainBG/NonInteractable/GridContainer"] +layout_mode = 2 +texture = ExtResource("6_75t5l") + +[node name="TextureRect5" type="TextureRect" parent="MainBG/NonInteractable/GridContainer"] +layout_mode = 2 +texture = ExtResource("7_xbhgy") + +[node name="TextureRect6" type="TextureRect" parent="MainBG/NonInteractable/GridContainer"] +layout_mode = 2 +texture = ExtResource("8_dlq7y") + +[node name="TextureRect7" type="TextureRect" parent="MainBG/NonInteractable/GridContainer"] +layout_mode = 2 +texture = ExtResource("9_f5tfu") + +[node name="TextureRect8" type="TextureRect" parent="MainBG/NonInteractable/GridContainer"] +layout_mode = 2 +texture = ExtResource("10_c5p2i") + +[node name="TextureRect2" type="TextureRect" parent="MainBG/NonInteractable/GridContainer"] +layout_mode = 2 +texture = ExtResource("11_jcbtr") + +[node name="TextureRect3" type="TextureRect" parent="MainBG/NonInteractable/GridContainer"] +layout_mode = 2 +texture = ExtResource("6_75t5l") + +[node name="TextureRect4" type="TextureRect" parent="MainBG/NonInteractable/GridContainer"] +layout_mode = 2 +texture = ExtResource("8_dlq7y") + +[node name="TextureRect" type="TextureRect" parent="MainBG/NonInteractable"] +layout_mode = 0 +offset_left = 812.0 +offset_top = 300.0 +offset_right = 852.0 +offset_bottom = 340.0 +texture = ExtResource("12_2lry1") +script = ExtResource("14_mhgll") +lights_on = ExtResource("15_dyc2a") +lights_off = ExtResource("12_2lry1") + +[node name="TextureRect2" type="TextureRect" parent="MainBG/NonInteractable"] +layout_mode = 0 +offset_left = 860.0 +offset_top = 300.0 +offset_right = 900.0 +offset_bottom = 340.0 +texture = ExtResource("13_swidh") +script = ExtResource("14_mhgll") +lights_on = ExtResource("17_2kql4") +lights_off = ExtResource("13_swidh") + +[connection signal="pressed" from="MainBG/LeftPanel/HBoxContainer/LeftButton" to="." method="_on_left_button_pressed_left_panel"] +[connection signal="pressed" from="MainBG/LeftPanel/HBoxContainer/EnterButton" to="." method="_on_enter_button_pressed_left_panel"] +[connection signal="pressed" from="MainBG/LeftPanel/HBoxContainer/RightButton" to="." method="_on_right_button_pressed_left_panel"] diff --git a/apps/gamejam/brackeys/13/scripts/flicker_progress_bar.gd b/apps/gamejam/brackeys/13/scripts/flicker_progress_bar.gd new file mode 100644 index 000000000..895a4b6c7 --- /dev/null +++ b/apps/gamejam/brackeys/13/scripts/flicker_progress_bar.gd @@ -0,0 +1,11 @@ +extends ProgressBar + +var flicker := 0.3 + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta) -> void: + if flicker <= 0: + flicker = randf_range(0.1,0.5) + value = randi_range(0,100) + flicker -= 1 * delta diff --git a/apps/gamejam/brackeys/13/scripts/shop.gd b/apps/gamejam/brackeys/13/scripts/shop.gd new file mode 100644 index 000000000..32371b2bc --- /dev/null +++ b/apps/gamejam/brackeys/13/scripts/shop.gd @@ -0,0 +1,43 @@ +extends ColorRect + +@onready var categories_label := $MainBG/LeftPanel/ScreenPanel/Label + +var categories : Array[StringName]= ["Weapons", "Shield", "Power", "Thrusters"] +var n = 0 +@onready var cate_selected:= categories[n] + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass + + +#region LeftPanelRegion + +func _on_left_button_pressed_left_panel() -> void: + if cate_selected == categories[0]: + pass + else: + n -= 1 + update_categories() + +func _on_right_button_pressed_left_panel() -> void: + if cate_selected == categories[3]: + pass + else: + n += 1 + update_categories() + +func _on_enter_button_pressed_left_panel() -> void: + pass + +func update_categories() -> void: + cate_selected = categories[n] + categories_label.text = cate_selected + +#endregion diff --git a/apps/gamejam/brackeys/13/theme/Theme.tres b/apps/gamejam/brackeys/13/theme/Theme.tres index 2bec68d76..69e620b2e 100644 --- a/apps/gamejam/brackeys/13/theme/Theme.tres +++ b/apps/gamejam/brackeys/13/theme/Theme.tres @@ -1,14 +1,21 @@ -[gd_resource type="Theme" load_steps=18 format=3 uid="uid://bkt3waoihtb6j"] +[gd_resource type="Theme" load_steps=34 format=3 uid="uid://bkt3waoihtb6j"] [ext_resource type="Texture2D" uid="uid://c73g314v1aohm" path="res://assets/audioknobs-ui/audioknobs/slider.png" id="1_4ho6j"] [ext_resource type="Texture2D" uid="uid://wwlxthw1p5px" path="res://assets/audioknobs-ui/audioknobs/button-toggle-off.png" id="1_467wl"] [ext_resource type="Texture2D" uid="uid://bwhtv183g5vma" path="res://assets/audioknobs-ui/audioknobs/button-toggle-on.png" id="2_dcdwy"] +[ext_resource type="StyleBox" uid="uid://i2i5a12n6yo3" path="res://theme/empty.stylebox" id="2_ma0tk"] [ext_resource type="Texture2D" uid="uid://7h4qiorvtq3q" path="res://assets/audioknobs-ui/audioknobs/metalbackground1.png" id="2_wr8kl"] [ext_resource type="Texture2D" uid="uid://byxtqi4hn1crh" path="res://assets/audioknobs-ui/audioknobs/v-slider-small.png" id="3_j3fil"] [ext_resource type="Texture2D" uid="uid://bt4me1jtt6j6a" path="res://assets/audioknobs-ui/audioknobs/slider-bg.png" id="4_4s0nj"] +[ext_resource type="Texture2D" uid="uid://dubr2ajqrqvy2" path="res://assets/audioknobs-ui/audioknobs/left-button-normal.png" id="6_oemoe"] [ext_resource type="Texture2D" uid="uid://cn2g0hmq78i57" path="res://assets/audioknobs-ui/audioknobs/progress-bar-bg.png" id="6_v1is8"] [ext_resource type="Texture2D" uid="uid://b5ctfdi4s4nsl" path="res://assets/audioknobs-ui/audioknobs/progress-bar-fill.png" id="7_f3kbi"] [ext_resource type="Texture2D" uid="uid://dlhr1icsocw1m" path="res://assets/audioknobs-ui/audioknobs/v-slider-bg.png" id="7_r6trc"] +[ext_resource type="Texture2D" uid="uid://bvo7ee608kv83" path="res://assets/audioknobs-ui/audioknobs/left-button-pressed.png" id="7_s6l0y"] +[ext_resource type="Texture2D" uid="uid://ep2c61uet76y" path="res://assets/audioknobs-ui/audioknobs/right-button-normal.png" id="9_0vmdh"] +[ext_resource type="Texture2D" uid="uid://dp35x2t2w2sfg" path="res://assets/audioknobs-ui/audioknobs/right-button-pressed.png" id="12_0ebru"] +[ext_resource type="Texture2D" uid="uid://dy6dpwidpm373" path="res://assets/audioknobs-ui/audioknobs/space-bar-normal.png" id="12_r2h7j"] +[ext_resource type="Texture2D" uid="uid://dvp04700ktun" path="res://assets/audioknobs-ui/audioknobs/space-bar-pressed.png" id="13_1unmg"] [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_0jei3"] texture = ExtResource("1_467wl") @@ -23,6 +30,14 @@ bg_color = Color(0.6, 0.6, 0.6, 0) texture = ExtResource("4_4s0nj") texture_margin_top = 20.0 +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_2n2so"] + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_nfv2t"] +texture = ExtResource("6_oemoe") + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_bnh2f"] +texture = ExtResource("7_s6l0y") + [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_umxe3"] texture = ExtResource("6_v1is8") axis_stretch_vertical = 1 @@ -31,6 +46,22 @@ axis_stretch_vertical = 1 texture = ExtResource("7_f3kbi") axis_stretch_vertical = 1 +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_xiin7"] + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_0f342"] +texture = ExtResource("9_0vmdh") + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_4rt04"] +texture = ExtResource("12_0ebru") + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_306ml"] + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_qsi1w"] +texture = ExtResource("12_r2h7j") + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_6risy"] +texture = ExtResource("13_1unmg") + [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_xdt0a"] bg_color = Color(0.6, 0.6, 0.6, 0) @@ -40,6 +71,7 @@ texture_margin_left = 20.0 [resource] Button/styles/disabled = SubResource("StyleBoxTexture_0jei3") +Button/styles/focus = ExtResource("2_ma0tk") Button/styles/hover = SubResource("StyleBoxTexture_0jei3") Button/styles/hover_pressed = SubResource("StyleBoxTexture_60gn8") Button/styles/normal = SubResource("StyleBoxTexture_0jei3") @@ -50,9 +82,27 @@ HSlider/icons/grabber_highlight = ExtResource("1_4ho6j") HSlider/styles/grabber_area = SubResource("StyleBoxFlat_64pwo") HSlider/styles/grabber_area_highlight = SubResource("StyleBoxFlat_64pwo") HSlider/styles/slider = SubResource("StyleBoxTexture_upa0w") +LeftButton/base_type = &"Button" +LeftButton/styles/focus = SubResource("StyleBoxEmpty_2n2so") +LeftButton/styles/hover = SubResource("StyleBoxTexture_nfv2t") +LeftButton/styles/hover_pressed = SubResource("StyleBoxTexture_bnh2f") +LeftButton/styles/normal = SubResource("StyleBoxTexture_nfv2t") +LeftButton/styles/pressed = SubResource("StyleBoxTexture_bnh2f") MarginContainer/icons/texture = ExtResource("2_wr8kl") ProgressBar/styles/background = SubResource("StyleBoxTexture_umxe3") ProgressBar/styles/fill = SubResource("StyleBoxTexture_es6xy") +RightButton/base_type = &"Button" +RightButton/styles/focus = SubResource("StyleBoxEmpty_xiin7") +RightButton/styles/hover = SubResource("StyleBoxTexture_0f342") +RightButton/styles/hover_pressed = SubResource("StyleBoxTexture_4rt04") +RightButton/styles/normal = SubResource("StyleBoxTexture_0f342") +RightButton/styles/pressed = SubResource("StyleBoxTexture_4rt04") +SpaceBar/base_type = &"Button" +SpaceBar/styles/focus = SubResource("StyleBoxEmpty_306ml") +SpaceBar/styles/hover = SubResource("StyleBoxTexture_qsi1w") +SpaceBar/styles/hover_pressed = SubResource("StyleBoxTexture_6risy") +SpaceBar/styles/normal = SubResource("StyleBoxTexture_qsi1w") +SpaceBar/styles/pressed = SubResource("StyleBoxTexture_6risy") VSlider/icons/grabber = ExtResource("3_j3fil") VSlider/icons/grabber_disabled = ExtResource("3_j3fil") VSlider/icons/grabber_highlight = ExtResource("3_j3fil") diff --git a/apps/gamejam/brackeys/13/theme/empty.stylebox b/apps/gamejam/brackeys/13/theme/empty.stylebox new file mode 100644 index 0000000000000000000000000000000000000000..fd187beb8c8efa2352d0f2c725dfafd1eb680d27 GIT binary patch literal 215 zcmV;|04V=bQ$s@n000005C8yI0RRBM0000ewJ-f(R{*UA0CEW-DS*Xk3^OnTb4Jb- z^dV&1*yR2WMN($9V&FS8h6feZD1sgtrD4vOmI4(hf*K}rd;}f{a~#S4_?fq&VzZv^ z>ZS1pOjKlC=_+1;bPQ5clpb4{3$^`=^GPsaHjC*pCpC2}TO3d;