Borer Stuff 2: Electric Boogaloo (#11423)

This commit is contained in:
Geeves
2021-04-10 18:30:31 +02:00
committed by GitHub
parent 6d2da2d893
commit 138a7a7a45
13 changed files with 214 additions and 36 deletions
+6
View File
@@ -3,6 +3,7 @@
/datum/progressbar
var/goal = 1
var/destroy_on_full = FALSE
var/last_progress = 0
var/image/bar
var/shown = 0
@@ -46,6 +47,8 @@
if (!shown)
user.client.images += bar
shown = TRUE
if(destroy_on_full && progress == goal)
QDEL_IN(src, 5)
/datum/progressbar/proc/shiftDown()
--listindex
@@ -76,5 +79,8 @@
client.images -= bar
client = null
/datum/progressbar/autocomplete
destroy_on_full = TRUE
#undef PROGRESSBAR_ANIMATION_TIME
#undef PROGRESSBAR_HEIGHT