progressbar ![code/datums/progressbar.dm 4](git.png)
Vars | |
bar | The progress bar visual element. |
---|---|
bar_loc | The target where this progress bar is applied and where it is shown. |
goal | Effectively the number of steps the progress bar will need to do before reaching completion. |
last_progress | Control check to see if the progress was interrupted before reaching its goal. |
listindex | Variable to ensure smooth visual stacking on multiple progress bars. |
location_type | The type of our last value for bar_loc, for debugging |
offset_y | Where to draw the progress bar above the icon |
user | The mob whose client sees the progress bar. |
user_client | The client seeing the progress bar. |
Procs | |
add_prog_bar_image_to_client | Adds a smoothly-appearing progress bar image to the player's screen. |
clean_user_client | Removes the progress bar image from the user_client and nulls the variable, if it exists. |
dump_harddel_info | Progress bars are very generic, and what hangs a ref to them depends heavily on the context in which they're used So let's make hunting harddels easier yeah? |
end_progress | Called on progress end, be it successful or a failure. Wraps up things to delete the datum and bar. |
on_user_delete | Called right before the user's Destroy() |
on_user_login | Called by user's Login(), it transfers the progress bar image to the new client. |
update | Updates the progress bar image visually. |
Var Details
bar ![code/datums/progressbar.dm 6](git.png)
The progress bar visual element.
bar_loc ![code/datums/progressbar.dm 8](git.png)
The target where this progress bar is applied and where it is shown.
goal ![code/datums/progressbar.dm 14](git.png)
Effectively the number of steps the progress bar will need to do before reaching completion.
last_progress ![code/datums/progressbar.dm 16](git.png)
Control check to see if the progress was interrupted before reaching its goal.
listindex ![code/datums/progressbar.dm 18](git.png)
Variable to ensure smooth visual stacking on multiple progress bars.
location_type ![code/datums/progressbar.dm 20](git.png)
The type of our last value for bar_loc, for debugging
offset_y ![code/datums/progressbar.dm 24](git.png)
Where to draw the progress bar above the icon
user ![code/datums/progressbar.dm 10](git.png)
The mob whose client sees the progress bar.
user_client ![code/datums/progressbar.dm 12](git.png)
The client seeing the progress bar.
Proc Details
add_prog_bar_image_to_client
Adds a smoothly-appearing progress bar image to the player's screen.
clean_user_client
Removes the progress bar image from the user_client and nulls the variable, if it exists.
dump_harddel_info
Progress bars are very generic, and what hangs a ref to them depends heavily on the context in which they're used So let's make hunting harddels easier yeah?
end_progress
Called on progress end, be it successful or a failure. Wraps up things to delete the datum and bar.
on_user_delete
Called right before the user's Destroy()
on_user_login
Called by user's Login(), it transfers the progress bar image to the new client.
update
Updates the progress bar image visually.