[MODULAR] Adds a search function to the loadout menu, and improves readability (#25767)

* Adds a search function to the loadout menu, and improves readability

* Removes the tutorial button that never did anything

* Trims a lot of the fat, deprecated code

Data was being passed to the ui that isn't even being used any more.

* Update preferences.dm
This commit is contained in:
Bloop
2023-12-22 23:29:27 -05:00
committed by GitHub
parent 99bcc0b489
commit e89b51bff9
3 changed files with 57 additions and 70 deletions
+4 -2
View File
@@ -325,9 +325,11 @@ GLOBAL_LIST_EMPTY(preferences_datums)
return TRUE
if ("open_loadout")
if(parent.open_loadout_ui)
parent.open_loadout_ui.ui_interact(usr)
var/datum/loadout_manager/open_loadout_ui = parent.open_loadout_ui?.resolve()
if(open_loadout_ui)
open_loadout_ui.ui_interact(usr)
else
parent.open_loadout_ui = null
var/datum/loadout_manager/tgui = new(usr)
tgui.ui_interact(usr)
return TRUE