slight rebalance

This commit is contained in:
2025-11-07 19:30:23 +11:00
parent 3cb37faf4b
commit 1a261dd0aa
29 changed files with 115 additions and 37 deletions

View File

@@ -62,7 +62,7 @@ func press_check_button(value: bool) -> void:
switch_button.text = tr(SIDE_B_STR)
else:
switch_button.text = tr(SIDE_A_STR)
card_desc.set_card(temp_card, check_button_pressed)
card_desc.set_card(temp_card, !check_button_pressed)
func _process(_delta: float) -> void:

View File

@@ -1,6 +1,7 @@
class_name GameplayOptionsMenu
extends VBoxContainer
@export var resolution_drop_down: OptionButton
@export var look_sens_slider: HSlider
@export var look_sens_input: SpinBox
@export var toggle_sprint_checkbox: CheckButton
@@ -14,6 +15,10 @@ extends VBoxContainer
func _ready() -> void:
resolution_drop_down.add_item("320x240")
resolution_drop_down.add_item("1920x1080")
$MouseSens2/HBoxContainer/SpinBox.value = get_window().content_scale_factor
$MouseSens2/HBoxContainer/HSlider.value = get_window().content_scale_factor
look_sens_slider.value = Data.preferences.mouse_sens
look_sens_input.value = Data.preferences.mouse_sens
toggle_sprint_checkbox.button_pressed = Data.preferences.toggle_sprint
@@ -44,3 +49,23 @@ func _on_mouse_sens_spin_box_value_changed(value: float) -> void:
func _on_mouse_sens_h_slider_value_changed(value: float) -> void:
look_sens_input.value = value
func _on_option_button_item_selected(index: int) -> void:
print(index)
if index == 0:
get_tree().root.size = Vector2i(320, 240)
#DisplayServer.window_set_size(Vector2i(320, 240))
print(get_tree().root.size)
if index == 1:
get_tree().root.size = Vector2i(1920, 1080)
#DisplayServer.window_set_size(Vector2i(1920, 1080))
print(get_tree().root.size)
func _on_spin_box_value_changed(value: float) -> void:
get_window().content_scale_factor = value
func _on_h_slider_value_changed(value: float) -> void:
get_window().content_scale_factor = value

View File

@@ -4,13 +4,14 @@
[sub_resource type="ImageTexture" id="ImageTexture_03x6q"]
[node name="Gameplay" type="VBoxContainer" node_paths=PackedStringArray("look_sens_slider", "look_sens_input", "toggle_sprint_checkbox", "invert_lookY", "invert_lookX", "fixed_minimap", "tower_damage", "self_damage", "party_damage", "status_damage")]
[node name="Gameplay" type="VBoxContainer" node_paths=PackedStringArray("resolution_drop_down", "look_sens_slider", "look_sens_input", "toggle_sprint_checkbox", "invert_lookY", "invert_lookX", "fixed_minimap", "tower_damage", "self_damage", "party_damage", "status_damage")]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_sy26f")
resolution_drop_down = NodePath("Resolution/HBoxContainer/OptionButton")
look_sens_slider = NodePath("MouseSens/HBoxContainer/HSlider")
look_sens_input = NodePath("MouseSens/HBoxContainer/SpinBox")
toggle_sprint_checkbox = NodePath("ToggleSprint/CenterContainer/CheckButton")
@@ -22,6 +23,24 @@ self_damage = NodePath("FloatingDamageIndicators/CenterContainer/HBoxContainer/S
party_damage = NodePath("FloatingDamageIndicators/CenterContainer/HBoxContainer/PartyDamage")
status_damage = NodePath("FloatingDamageIndicators/CenterContainer/HBoxContainer/StatusDamage")
[node name="Resolution" type="HBoxContainer" parent="."]
layout_mode = 2
[node name="Label" type="Label" parent="Resolution"]
layout_mode = 2
size_flags_horizontal = 3
text = "OPTION_RESOLUTION"
horizontal_alignment = 1
vertical_alignment = 1
[node name="HBoxContainer" type="HBoxContainer" parent="Resolution"]
layout_mode = 2
size_flags_horizontal = 3
[node name="OptionButton" type="OptionButton" parent="Resolution/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 6
[node name="MouseSens" type="HBoxContainer" parent="."]
layout_mode = 2
alignment = 1
@@ -51,6 +70,35 @@ size_flags_vertical = 1
step = 0.01
scrollable = false
[node name="MouseSens2" type="HBoxContainer" parent="."]
layout_mode = 2
alignment = 1
[node name="Label" type="Label" parent="MouseSens2"]
layout_mode = 2
size_flags_horizontal = 3
text = "OPTION_MOUSE_SENSITIVITY"
horizontal_alignment = 1
vertical_alignment = 1
[node name="HBoxContainer" type="HBoxContainer" parent="MouseSens2"]
layout_mode = 2
size_flags_horizontal = 3
[node name="SpinBox" type="SpinBox" parent="MouseSens2/HBoxContainer"]
layout_mode = 2
theme_override_icons/updown = SubResource("ImageTexture_03x6q")
step = 0.01
alignment = 1
update_on_text_changed = true
[node name="HSlider" type="HSlider" parent="MouseSens2/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 1
step = 0.01
scrollable = false
[node name="ToggleSprint" type="HBoxContainer" parent="."]
layout_mode = 2
@@ -167,5 +215,8 @@ toggle_mode = true
button_pressed = true
text = "OPTION_STATUS_DAMAGE"
[connection signal="item_selected" from="Resolution/HBoxContainer/OptionButton" to="." method="_on_option_button_item_selected"]
[connection signal="value_changed" from="MouseSens/HBoxContainer/SpinBox" to="." method="_on_mouse_sens_spin_box_value_changed"]
[connection signal="value_changed" from="MouseSens/HBoxContainer/HSlider" to="." method="_on_mouse_sens_h_slider_value_changed"]
[connection signal="value_changed" from="MouseSens2/HBoxContainer/SpinBox" to="." method="_on_spin_box_value_changed"]
[connection signal="value_changed" from="MouseSens2/HBoxContainer/HSlider" to="." method="_on_h_slider_value_changed"]

View File

@@ -1,6 +1,6 @@
[gd_resource type="StyleBoxTexture" load_steps=3 format=3 uid="uid://doxcjij1w2ot7"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://ui_atlas.png" id="1_ychim"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://UI/Themes/Scale1/ui_atlas.png" id="1_ychim"]
[sub_resource type="AtlasTexture" id="AtlasTexture_amp6b"]
atlas = ExtResource("1_ychim")

View File

@@ -1,6 +1,6 @@
[gd_resource type="StyleBoxTexture" load_steps=3 format=3 uid="uid://buu2yn08s4wc7"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://ui_atlas.png" id="1_axkac"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://UI/Themes/Scale1/ui_atlas.png" id="1_axkac"]
[sub_resource type="AtlasTexture" id="AtlasTexture_xobyj"]
atlas = ExtResource("1_axkac")

View File

@@ -1,6 +1,6 @@
[gd_resource type="StyleBoxTexture" load_steps=3 format=3 uid="uid://srk2hghxkb70"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://ui_atlas.png" id="1_x020y"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://UI/Themes/Scale1/ui_atlas.png" id="1_x020y"]
[sub_resource type="AtlasTexture" id="AtlasTexture_kt4jn"]
atlas = ExtResource("1_x020y")

View File

@@ -1,6 +1,6 @@
[gd_resource type="StyleBoxTexture" load_steps=3 format=3 uid="uid://esvjdvqih123"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://ui_atlas.png" id="1_rwyhh"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://UI/Themes/Scale1/ui_atlas.png" id="1_rwyhh"]
[sub_resource type="AtlasTexture" id="AtlasTexture_s7nl3"]
atlas = ExtResource("1_rwyhh")

View File

@@ -1,6 +1,6 @@
[gd_resource type="StyleBoxTexture" load_steps=3 format=3 uid="uid://bfqarik7bi544"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://ui_atlas.png" id="1_u0q6f"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://UI/Themes/Scale1/ui_atlas.png" id="1_u0q6f"]
[sub_resource type="AtlasTexture" id="AtlasTexture_a57sn"]
atlas = ExtResource("1_u0q6f")

View File

@@ -1,6 +1,6 @@
[gd_resource type="StyleBoxTexture" load_steps=3 format=3 uid="uid://bss3dp7k18rx0"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://ui_atlas.png" id="1_ug2go"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://UI/Themes/Scale1/ui_atlas.png" id="1_ug2go"]
[sub_resource type="AtlasTexture" id="AtlasTexture_h3qir"]
atlas = ExtResource("1_ug2go")

View File

@@ -1,6 +1,6 @@
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://c1xm8bkvho3vl"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://ui_atlas.png" id="1_466t2"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://UI/Themes/Scale1/ui_atlas.png" id="1_466t2"]
[resource]
atlas = ExtResource("1_466t2")

View File

@@ -1,6 +1,6 @@
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://cuwhoitu6ybba"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://ui_atlas.png" id="1_74qo4"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://UI/Themes/Scale1/ui_atlas.png" id="1_74qo4"]
[resource]
atlas = ExtResource("1_74qo4")

View File

@@ -1,6 +1,6 @@
[gd_resource type="StyleBoxTexture" load_steps=3 format=3 uid="uid://duopp63rij323"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://ui_atlas.png" id="1_73g4w"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://UI/Themes/Scale1/ui_atlas.png" id="1_73g4w"]
[sub_resource type="AtlasTexture" id="AtlasTexture_okcqu"]
atlas = ExtResource("1_73g4w")

View File

@@ -1,6 +1,6 @@
[gd_resource type="StyleBoxTexture" load_steps=3 format=3 uid="uid://dlnw55uearhrg"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://ui_atlas.png" id="1_xum1s"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://UI/Themes/Scale1/ui_atlas.png" id="1_xum1s"]
[sub_resource type="AtlasTexture" id="AtlasTexture_noue1"]
atlas = ExtResource("1_xum1s")

View File

@@ -1,6 +1,6 @@
[gd_resource type="StyleBoxTexture" load_steps=3 format=3 uid="uid://co6ouoi7ieawj"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://ui_atlas.png" id="1_slo62"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://UI/Themes/Scale1/ui_atlas.png" id="1_slo62"]
[sub_resource type="AtlasTexture" id="AtlasTexture_xobyj"]
atlas = ExtResource("1_slo62")

View File

@@ -6,7 +6,7 @@
[ext_resource type="StyleBox" uid="uid://esvjdvqih123" path="res://UI/Themes/Scale1/button_normal.tres" id="3_43i8g"]
[ext_resource type="StyleBox" uid="uid://bfqarik7bi544" path="res://UI/Themes/Scale1/button_pressed.tres" id="4_845oj"]
[ext_resource type="FontFile" uid="uid://bqy8dm2o3piqm" path="res://Assets/Fonts/Quaver v1.0/quaver.ttf" id="5_o6p3e"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://ui_atlas.png" id="6_43i8g"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://UI/Themes/Scale1/ui_atlas.png" id="6_43i8g"]
[ext_resource type="StyleBox" uid="uid://bfuea1sjymo8g" path="res://UI/Themes/Scale1/pane_style_box.tres" id="6_w151p"]
[ext_resource type="StyleBox" uid="uid://jnnnhb3i2265" path="res://UI/Themes/Scale1/switch_side_b_style_box.tres" id="7_w8nmj"]
[ext_resource type="StyleBox" uid="uid://cm3wsvk3woory" path="res://UI/Themes/Scale1/switch_side_a_style_box.tres" id="8_8j1wx"]

View File

@@ -1,6 +1,6 @@
[gd_resource type="StyleBoxTexture" load_steps=3 format=3 uid="uid://bpowvv8e13flg"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://ui_atlas.png" id="1_85syk"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://UI/Themes/Scale1/ui_atlas.png" id="1_85syk"]
[sub_resource type="AtlasTexture" id="AtlasTexture_uj2su"]
atlas = ExtResource("1_85syk")

View File

@@ -1,6 +1,6 @@
[gd_resource type="AtlasTexture" load_steps=2 format=3 uid="uid://d3bbst30pgfgy"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://ui_atlas.png" id="1_gfpkm"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://UI/Themes/Scale1/ui_atlas.png" id="1_gfpkm"]
[resource]
atlas = ExtResource("1_gfpkm")

Binary file not shown.

After

Width:  |  Height:  |  Size: 923 B

View File

@@ -0,0 +1,40 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b5h32okh8yu6f"
path="res://.godot/imported/ui_atlas.png-6cf68f4a43ca4f789830e8d3dc7c3f50.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://UI/Themes/Scale1/ui_atlas.png"
dest_files=["res://.godot/imported/ui_atlas.png-6cf68f4a43ca4f789830e8d3dc7c3f50.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

View File

@@ -1,6 +1,6 @@
[gd_resource type="StyleBoxTexture" load_steps=3 format=3 uid="uid://c4cljq7yl78eg"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://ui_atlas.png" id="1_qpij5"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://UI/Themes/Scale1/ui_atlas.png" id="1_qpij5"]
[sub_resource type="AtlasTexture" id="AtlasTexture_okcqu"]
atlas = ExtResource("1_qpij5")

View File

@@ -1,6 +1,6 @@
[gd_resource type="StyleBoxTexture" load_steps=3 format=3 uid="uid://8s0fgx46n145"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://ui_atlas.png" id="1_6syfe"]
[ext_resource type="Texture2D" uid="uid://b5h32okh8yu6f" path="res://UI/Themes/Scale1/ui_atlas.png" id="1_6syfe"]
[sub_resource type="AtlasTexture" id="AtlasTexture_noue1"]
atlas = ExtResource("1_6syfe")