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:
Goat
2024-11-12 17:22:23 +01:00
committed by GitHub
parent 0394e2ff48
commit 7ac524151d
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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()