been adding a bunch of items and recipies, issue with ssd crafting

This commit is contained in:
Tabby 2026-01-13 12:53:54 +11:00
parent 9588dfe559
commit dc03f4d353
45 changed files with 669 additions and 9 deletions

View file

@ -0,0 +1,19 @@
[gd_resource type="StyleBoxFlat" format=3 uid="uid://b66jb7n1t8xeg"]
[resource]
content_margin_left = 0.0
content_margin_top = 0.0
content_margin_right = 0.0
content_margin_bottom = 0.0
bg_color = Color(0.76537657, 0.76537657, 0.76537657, 0.6)
border_width_left = 5
border_width_top = 5
border_width_right = 5
border_width_bottom = 5
border_color = Color(0.8, 0, 0, 1)
border_blend = true
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
corner_detail = 5

View file

@ -5,7 +5,7 @@ content_margin_left = 0.0
content_margin_top = 0.0
content_margin_right = 0.0
content_margin_bottom = 0.0
bg_color = Color(0.1, 0.1, 0.1, 0.6)
bg_color = Color(0.76537657, 0.76537657, 0.76537657, 0.6)
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3

View file

@ -0,0 +1,14 @@
[gd_resource type="StyleBoxFlat" format=3 uid="uid://coy6kyoackibc"]
[resource]
bg_color = Color(0.1, 0.1, 0.1, 0.6)
border_width_bottom = 176
border_color = Color(0.8784314, 0.6431373, 0, 1)
border_blend = true
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
corner_detail = 5
shadow_color = Color(0.91759837, 0.6238727, 7.70092e-07, 0.6)
shadow_size = 6

View file

@ -0,0 +1,14 @@
[gd_resource type="StyleBoxFlat" format=3 uid="uid://dcnrpkhjhp4tk"]
[resource]
bg_color = Color(0.1, 0.1, 0.1, 0.6)
border_width_bottom = 176
border_color = Color(4.813075e-06, 0.6511897, 0.8311696, 1)
border_blend = true
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
corner_detail = 5
shadow_color = Color(1.4439225e-06, 0.704971, 0.731948, 0.6)
shadow_size = 6

View file

@ -0,0 +1,14 @@
[gd_resource type="StyleBoxFlat" format=3 uid="uid://ctni70631ksq7"]
[resource]
bg_color = Color(0.1, 0.1, 0.1, 0.6)
border_width_bottom = 176
border_color = Color(1.2513996e-06, 0.7175694, 0.083496176, 1)
border_blend = true
corner_radius_top_left = 3
corner_radius_top_right = 3
corner_radius_bottom_right = 3
corner_radius_bottom_left = 3
corner_detail = 5
shadow_color = Color(0.13444874, 0.748399, 0, 0.6)
shadow_size = 6

View file

@ -6,6 +6,8 @@ class_name ItemSlot
@export var label : Label
var type : String
var block_taking : bool = false
const DEFAULT = preload("uid://hgjmkwj0dbqr")
func _ready() -> void:
update_ui()
@ -14,13 +16,14 @@ func update_ui():
if not item:
icon.texture = null
label.text = ""
remove_theme_stylebox_override("panel")
add_theme_stylebox_override("panel",DEFAULT)
return
if item.custom_panel_style:
add_theme_stylebox_override("panel",item.custom_panel_style)
else:
remove_theme_stylebox_override("panel")
#remove_theme_stylebox_override("panel")
add_theme_stylebox_override("panel",DEFAULT)
icon.texture = item.icon
#tooltip_text = item.item_name
label.text = item.value

View file

@ -27,7 +27,6 @@ grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("3_0tnt0")
expand_mode = 3
stretch_mode = 4
[node name="Label" type="Label" parent="Icon"]
visible = false

View file

@ -219,6 +219,7 @@ horizontal_scroll_mode = 0
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_constants/separation = 10
[node name="Scavenge" type="PanelContainer" parent="TabContainer" node_paths=PackedStringArray("grid")]
visible = false