Hey what do you know byond 509 is released and we have appearance flags now
This commit is contained in:
clusterfack
2016-01-25 14:06:19 -06:00
parent 8642824f4d
commit c4e0a971a2

View File

@@ -722,6 +722,7 @@ proc/GaussRandRound(var/sigma,var/roundto)
if(!progbar) if(!progbar)
progbar = image("icon" = 'icons/effects/doafter_icon.dmi', "loc" = target, "icon_state" = "prog_bar_0") progbar = image("icon" = 'icons/effects/doafter_icon.dmi', "loc" = target, "icon_state" = "prog_bar_0")
progbar.pixel_y = 32 progbar.pixel_y = 32
progbar.appearance_flags = RESET_COLOR
//if(!barbar) //if(!barbar)
//barbar = image("icon" = 'icons/effects/doafter_icon.dmi', "loc" = target, "icon_state" = "none") //barbar = image("icon" = 'icons/effects/doafter_icon.dmi', "loc" = target, "icon_state" = "none")
//barbar.pixel_y = 36 //barbar.pixel_y = 36
@@ -730,6 +731,7 @@ proc/GaussRandRound(var/sigma,var/roundto)
if(user && user.client && user.client.prefs.progress_bars && target) if(user && user.client && user.client.prefs.progress_bars && target)
if(!progbar) if(!progbar)
progbar = image("icon" = 'icons/effects/doafter_icon.dmi', "loc" = target, "icon_state" = "prog_bar_0") progbar = image("icon" = 'icons/effects/doafter_icon.dmi', "loc" = target, "icon_state" = "prog_bar_0")
progbar.appearance_flags = RESET_COLOR
//oldstate = progbar.icon_state //oldstate = progbar.icon_state
progbar.icon_state = "prog_bar_[round(((i / numticks) * 100), 10)]" progbar.icon_state = "prog_bar_[round(((i / numticks) * 100), 10)]"
user.client.images |= progbar user.client.images |= progbar