mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Turbolift bugfix: Refresh inner panel dialog
* Refresh when we push buttons to see the effect of what we did. * Refresh when we remove floors from the queue to see the highlighting update.
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
queued_floors.Cut()
|
||||
target_floor = null
|
||||
open_doors()
|
||||
control_panel_interior.updateDialog()
|
||||
|
||||
/datum/turbolift/proc/doors_are_open(var/datum/turbolift_floor/use_floor = current_floor)
|
||||
for(var/obj/machinery/door/airlock/door in (use_floor ? (doors + use_floor.doors) : doors))
|
||||
@@ -51,6 +52,7 @@
|
||||
moving_upwards = 1
|
||||
else
|
||||
moving_upwards = 0
|
||||
control_panel_interior.updateDialog()
|
||||
|
||||
if(doors_are_open())
|
||||
if(!doors_closing)
|
||||
|
||||
@@ -123,6 +123,7 @@
|
||||
dat += "<a href='?src=\ref[src];emergency_stop=1'>Emergency Stop</a>"
|
||||
dat += "<hr></body></html>"
|
||||
|
||||
user.set_machine(src)
|
||||
var/datum/browser/popup = new(user, "turbolift_panel", "Lift Panel", 350, 320) //VOREStation Edit - Wider!
|
||||
popup.set_content(jointext(dat, null))
|
||||
popup.open()
|
||||
@@ -149,6 +150,7 @@
|
||||
|
||||
if(panel_interact)
|
||||
pressed(usr)
|
||||
updateDialog()
|
||||
|
||||
return 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user