Skip to content

Commit

Permalink
Finish up theme
Browse files Browse the repository at this point in the history
  • Loading branch information
otDan committed Mar 16, 2023
1 parent 0ed97f8 commit 98e0596
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
extends "res://ui/menus/pages/menu_choose_options.gd"


signal item_explorer_button_pressed


Expand Down
2 changes: 1 addition & 1 deletion root/mods-unpacked/otDan-ItemExplorer/manifest.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
Original file line number Diff line number Diff line change
@@ -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 )
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand All @@ -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)
Original file line number Diff line number Diff line change
@@ -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]
Expand All @@ -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
Expand Down Expand Up @@ -48,25 +49,25 @@ 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"
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 )
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 98e0596

Please sign in to comment.