mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 07:08:00 +01:00
Makes curator inventory update when buttons are pressed. (#87841)
## About The Pull Request Adds two calls for `update_static_data_for_all_viewers()` so the UI will update when a player switches pages or removes an item in the inventory screen. ## Why It's Good For The Game Responsive UI good. When I click button UI should respond accordingly. fix #82733 ## Changelog 🆑 Goat qol: Curator console's inventory screen will now update when you change pages or remove items. /🆑
This commit is contained in:
@@ -441,10 +441,12 @@ GLOBAL_VAR_INIT(library_table_modified, 0)
|
||||
var/id = params["book_id"]
|
||||
inventory -= id
|
||||
inventory_update()
|
||||
update_static_data_for_all_viewers()
|
||||
return TRUE
|
||||
if("switch_inventory_page")
|
||||
inventory_page = sanitize_page_input(params["page"], inventory_page, inventory_page_count)
|
||||
inventory_update()
|
||||
update_static_data_for_all_viewers()
|
||||
return TRUE
|
||||
if("checkout")
|
||||
var/list/available = list()
|
||||
|
||||
Reference in New Issue
Block a user