mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user