diff --git a/root/mods-unpacked/otDan-ItemExplorer/extensions/ui/menus/pages/menu_choose_options.gd b/root/mods-unpacked/otDan-ItemExplorer/extensions/ui/menus/pages/menu_choose_options.gd index 48f4f27..583b033 100644 --- a/root/mods-unpacked/otDan-ItemExplorer/extensions/ui/menus/pages/menu_choose_options.gd +++ b/root/mods-unpacked/otDan-ItemExplorer/extensions/ui/menus/pages/menu_choose_options.gd @@ -1,5 +1,6 @@ extends "res://ui/menus/pages/menu_choose_options.gd" + signal item_explorer_button_pressed diff --git a/root/mods-unpacked/otDan-ItemExplorer/manifest.json b/root/mods-unpacked/otDan-ItemExplorer/manifest.json index 438b631..a68f470 100644 --- a/root/mods-unpacked/otDan-ItemExplorer/manifest.json +++ b/root/mods-unpacked/otDan-ItemExplorer/manifest.json @@ -1,7 +1,7 @@ { "name": "ItemExplorer", "namespace": "otDan", - "version_number": "1.1.1", + "version_number": "1.2.0", "description": "Adds a menu to show and manage items", "website_url": "https://github.com/otDan/Brotato-ItemExplorer", "dependencies": [ diff --git a/root/mods-unpacked/otDan-ItemExplorer/resources/fonts/actual/base/itemexplorer-font-small.tres b/root/mods-unpacked/otDan-ItemExplorer/resources/fonts/actual/base/itemexplorer-font-small.tres new file mode 100644 index 0000000..fe5c9d3 --- /dev/null +++ b/root/mods-unpacked/otDan-ItemExplorer/resources/fonts/actual/base/itemexplorer-font-small.tres @@ -0,0 +1,16 @@ +[gd_resource type="DynamicFont" load_steps=6 format=2] + +[ext_resource path="res://resources/fonts/raw/NotoSansKR-Medium.otf" type="DynamicFontData" id=1] +[ext_resource path="res://resources/fonts/raw/NotoSansJP-Medium.otf" type="DynamicFontData" id=2] +[ext_resource path="res://resources/fonts/raw/NotoSansSC-Medium.otf" type="DynamicFontData" id=3] +[ext_resource path="res://resources/fonts/raw/Anybody-Medium.ttf" type="DynamicFontData" id=4] +[ext_resource path="res://resources/fonts/raw/NotoSansTC-Medium.otf" type="DynamicFontData" id=5] + +[resource] +size = 21 +outline_color = Color( 0, 0, 0, 1 ) +font_data = ExtResource( 4 ) +fallback/0 = ExtResource( 2 ) +fallback/1 = ExtResource( 1 ) +fallback/2 = ExtResource( 3 ) +fallback/3 = ExtResource( 5 ) diff --git a/root/mods-unpacked/otDan-ItemExplorer/resources/themes/itemexplorer-mod_menu_theme.theme b/root/mods-unpacked/otDan-ItemExplorer/resources/themes/itemexplorer-mod_menu_theme.theme index 7f39d4f..1761395 100644 Binary files a/root/mods-unpacked/otDan-ItemExplorer/resources/themes/itemexplorer-mod_menu_theme.theme and b/root/mods-unpacked/otDan-ItemExplorer/resources/themes/itemexplorer-mod_menu_theme.theme differ diff --git a/root/mods-unpacked/otDan-ItemExplorer/ui/menus/items/item_explorer.gd b/root/mods-unpacked/otDan-ItemExplorer/ui/menus/items/item_explorer.gd index 9bca8a2..0eef275 100644 --- a/root/mods-unpacked/otDan-ItemExplorer/ui/menus/items/item_explorer.gd +++ b/root/mods-unpacked/otDan-ItemExplorer/ui/menus/items/item_explorer.gd @@ -168,7 +168,10 @@ func on_mod_toggled(mod, state): func _show_search_results(search: String): for child in item_container.get_children(): - visible_items[visible_keys.keys()[visible_keys.SEARCH]][child.item_data] = StringComparer._check_similarity(child.name.to_lower(), search.to_lower(), 1) + var result = StringComparer._check_similarity(child.name.to_lower(), search.to_lower(), 1) + if search == "": + result = true + visible_items[visible_keys.keys()[visible_keys.SEARCH]][child.item_data] = result handle_item_visiblity() @@ -195,8 +198,4 @@ func _on_StartRunButton_pressed(): func _on_Search_text_changed(search: String): - if search == "": - for child in item_container.get_children(): - child.visible = true - return _show_search_results(search) diff --git a/root/mods-unpacked/otDan-ItemExplorer/ui/menus/items/item_explorer.tscn b/root/mods-unpacked/otDan-ItemExplorer/ui/menus/items/item_explorer.tscn index fb31311..0d0b5ff 100644 --- a/root/mods-unpacked/otDan-ItemExplorer/ui/menus/items/item_explorer.tscn +++ b/root/mods-unpacked/otDan-ItemExplorer/ui/menus/items/item_explorer.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=13 format=2] +[gd_scene load_steps=14 format=2] [ext_resource path="res://mods-unpacked/otDan-ItemExplorer/ui/menus/items/parts/item_toggle.tscn" type="PackedScene" id=1] [ext_resource path="res://resources/themes/base_theme.tres" type="Theme" id=2] @@ -12,6 +12,7 @@ [ext_resource path="res://mods-unpacked/otDan-BetterModList/resources/themes/bettermodlist-mod_menu_theme.theme" type="Theme" id=10] [ext_resource path="res://mods-unpacked/otDan-ItemExplorer/ui/menus/items/parts/mod_toggle.tscn" type="PackedScene" id=11] [ext_resource path="res://ui/menus/global/my_menu_button.gd" type="Script" id=12] +[ext_resource path="res://mods-unpacked/otDan-ItemExplorer/resources/fonts/actual/base/itemexplorer-font-small.tres" type="DynamicFont" id=13] [node name="ItemExplorer" type="MarginContainer"] anchor_right = 1.0 @@ -48,17 +49,17 @@ custom_constants/separation = 16 [node name="SearchContainer" type="PanelContainer" parent="VBoxContainer/HBoxContainer/VBoxContainer2"] margin_right = 309.0 -margin_bottom = 51.0 +margin_bottom = 49.0 rect_min_size = Vector2( 260, 0 ) [node name="Search" type="LineEdit" parent="VBoxContainer/HBoxContainer/VBoxContainer2/SearchContainer"] margin_left = 5.0 margin_top = 5.0 margin_right = 304.0 -margin_bottom = 46.0 +margin_bottom = 44.0 size_flags_horizontal = 3 size_flags_vertical = 3 -custom_fonts/font = ExtResource( 5 ) +custom_fonts/font = ExtResource( 13 ) align = 1 clear_button_enabled = true placeholder_text = "Search" @@ -66,7 +67,7 @@ placeholder_alpha = 0.35 [node name="ModPanelContainer" type="PanelContainer" parent="VBoxContainer/HBoxContainer/VBoxContainer2"] self_modulate = Color( 1, 1, 1, 0.313726 ) -margin_top = 67.0 +margin_top = 65.0 margin_right = 309.0 margin_bottom = 909.0 rect_min_size = Vector2( 260, 0 ) @@ -78,7 +79,7 @@ size_flags_stretch_ratio = 0.1 margin_left = 5.0 margin_top = 5.0 margin_right = 304.0 -margin_bottom = 837.0 +margin_bottom = 839.0 custom_constants/margin_right = 8 custom_constants/margin_top = 8 custom_constants/margin_left = 8 @@ -88,12 +89,12 @@ custom_constants/margin_bottom = 8 margin_left = 8.0 margin_top = 8.0 margin_right = 291.0 -margin_bottom = 824.0 +margin_bottom = 826.0 [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/HBoxContainer/VBoxContainer2/ModPanelContainer/MarginContainer/VBoxContainer"] margin_right = 283.0 margin_bottom = 45.0 -hint_tooltip = "Show only the mods of the specific author in the mod list. (This does not disable mods)" +hint_tooltip = "Show only the items of the specific mods. (This does not disable the items)" theme = ExtResource( 10 ) custom_constants/separation = 8 alignment = 1 @@ -117,7 +118,7 @@ stretch_mode = 6 [node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer/HBoxContainer/VBoxContainer2/ModPanelContainer/MarginContainer/VBoxContainer"] margin_top = 49.0 margin_right = 283.0 -margin_bottom = 816.0 +margin_bottom = 818.0 size_flags_horizontal = 3 size_flags_vertical = 3 follow_focus = true @@ -126,7 +127,7 @@ scroll_horizontal_enabled = false [node name="ModContainer" type="VBoxContainer" parent="VBoxContainer/HBoxContainer/VBoxContainer2/ModPanelContainer/MarginContainer/VBoxContainer/ScrollContainer"] unique_name_in_owner = true margin_right = 283.0 -margin_bottom = 767.0 +margin_bottom = 769.0 size_flags_horizontal = 3 size_flags_vertical = 3