diff --git a/src/inventory_menu/InventoryDialogueSelectionStyle.tres b/src/inventory_menu/InventoryDialogueSelectionStyle.tres new file mode 100644 index 00000000..a61ce65e --- /dev/null +++ b/src/inventory_menu/InventoryDialogueSelectionStyle.tres @@ -0,0 +1,7 @@ +[gd_resource type="Theme" load_steps=2 format=3 uid="uid://daxuhpmyxwxck"] + +[ext_resource type="FontFile" uid="uid://cb41qqmxqurj8" path="res://src/ui/fonts/FT88-Bold.ttf" id="1_r1ugn"] + +[resource] +default_font = ExtResource("1_r1ugn") +default_font_size = 32 diff --git a/src/inventory_menu/InventoryMenu.tscn b/src/inventory_menu/InventoryMenu.tscn index ee971e65..5c5156cd 100644 --- a/src/inventory_menu/InventoryMenu.tscn +++ b/src/inventory_menu/InventoryMenu.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=21 format=3 uid="uid://dlj8qdg1c5048"] +[gd_scene load_steps=26 format=3 uid="uid://dlj8qdg1c5048"] [ext_resource type="Script" path="res://src/inventory_menu/InventoryMenu.cs" id="1_l64wl"] [ext_resource type="Shader" path="res://src/inventory_menu/InventoryMenu.gdshader" id="2_0fvsh"] @@ -7,6 +7,7 @@ [ext_resource type="FontFile" uid="uid://dit3vylt7hmmx" path="res://src/ui/fonts/FT88-Regular.ttf" id="5_2qnnx"] [ext_resource type="LabelSettings" uid="uid://c4wbba5mo7qcp" path="res://src/ui/label_settings/MainTextFontItalicized.tres" id="6_q3oua"] [ext_resource type="LabelSettings" uid="uid://ca1q6yu8blwxf" path="res://src/ui/label_settings/InventoryMainTextBold.tres" id="6_tmdno"] +[ext_resource type="Theme" uid="uid://daxuhpmyxwxck" path="res://src/inventory_menu/InventoryDialogueSelectionStyle.tres" id="8_khyvo"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_i55tv"] shader = ExtResource("2_0fvsh") @@ -70,6 +71,14 @@ font = ExtResource("5_2qnnx") font_size = 28 font_color = Color(0.737255, 0.705882, 0.690196, 1) +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_0kb6l"] + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_545ij"] + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_omlgh"] + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_ct6ql"] + [sub_resource type="LabelSettings" id="LabelSettings_x4aj3"] font = ExtResource("3_lm4o1") font_size = 80 @@ -334,12 +343,57 @@ autowrap_mode = 2 [node name="ItemEffectLabel" type="Label" parent="InventoryInfo/HBoxContainer/PlayerInfo/HBoxContainer/VBoxContainer"] unique_name_in_owner = true -custom_minimum_size = Vector2(800, 200) +custom_minimum_size = Vector2(800, 100) layout_mode = 2 size_flags_horizontal = 0 +text = "Use Item? +" label_settings = SubResource("LabelSettings_mundu") autowrap_mode = 2 +[node name="UseButton" type="Button" parent="InventoryInfo/HBoxContainer/PlayerInfo/HBoxContainer/VBoxContainer"] +unique_name_in_owner = true +visible = false +layout_mode = 2 +size_flags_horizontal = 0 +size_flags_vertical = 0 +theme = ExtResource("8_khyvo") +theme_override_colors/font_focus_color = Color(1, 0.94902, 0, 1) +theme_override_colors/font_color = Color(0.737255, 0.705882, 0.690196, 1) +theme_override_styles/focus = SubResource("StyleBoxEmpty_0kb6l") +theme_override_styles/normal = SubResource("StyleBoxEmpty_545ij") +button_mask = 0 +text = "Use" + +[node name="EquipButton" type="Button" parent="InventoryInfo/HBoxContainer/PlayerInfo/HBoxContainer/VBoxContainer"] +unique_name_in_owner = true +visible = false +layout_mode = 2 +size_flags_horizontal = 0 +size_flags_vertical = 0 +theme = ExtResource("8_khyvo") +theme_override_colors/font_disabled_color = Color(0.137255, 0.121569, 0.12549, 1) +theme_override_colors/font_focus_color = Color(1, 0.94902, 0, 1) +theme_override_colors/font_color = Color(0.737255, 0.705882, 0.690196, 1) +theme_override_styles/focus = SubResource("StyleBoxEmpty_0kb6l") +theme_override_styles/normal = SubResource("StyleBoxEmpty_545ij") +button_mask = 0 +text = "Equip" + +[node name="DropButton" type="Button" parent="InventoryInfo/HBoxContainer/PlayerInfo/HBoxContainer/VBoxContainer"] +unique_name_in_owner = true +visible = false +layout_mode = 2 +size_flags_horizontal = 0 +size_flags_vertical = 0 +theme = ExtResource("8_khyvo") +theme_override_colors/font_focus_color = Color(1, 0.94902, 0, 1) +theme_override_colors/font_color = Color(0.737255, 0.705882, 0.690196, 1) +theme_override_styles/focus = SubResource("StyleBoxEmpty_omlgh") +theme_override_styles/normal = SubResource("StyleBoxEmpty_ct6ql") +button_mask = 0 +text = "Drop" + [node name="ItemInfo" type="VBoxContainer" parent="InventoryInfo/HBoxContainer"] layout_mode = 2 theme_override_constants/separation = 20