obj/crhud
text_window
icon = HUD_ICON
layer = HUD_LAYER
maptext_width = 384
maptext_height = 288
top
icon_state = "Top"
screen_loc = "CENTER-6,CENTER+4 to CENTER+6,CENTER+4"
bottom
icon_state = "Bottom"
screen_loc = "CENTER-6,CENTER-4 to CENTER+6,CENTER-4"
right
icon_state = "Right"
screen_loc = "CENTER+7,CENTER-3 to CENTER+7,CENTER+3"
left
icon_state = "Left"
screen_loc = "CENTER-7,CENTER+3 to CENTER-7,CENTER-3"
top_right
icon_state = "Top Right"
screen_loc = "CENTER+7,CENTER+4"
bottom_right
icon_state = "Bottom Right"
screen_loc = "CENTER+7,CENTER-4"
top_left
icon_state = "Top Left"
screen_loc = "CENTER-7,CENTER+4"
bottom_left
icon_state = "Bottom Left"
screen_loc = "CENTER-7,CENTER+-4"
middle
icon_state = "BG"
screen_loc = "CENTER-6,CENTER-3 to CENTER+6,CENTER+3"
mob/proc/Demo()
Freeze()
src.client.crhud_add(/obj/crhud/text_window)
Problem description: I'm attempting to use Crispy's HeadsUp library to make my own HUDS, and I'm having trouble. I've gone through all of the libraries I could find and this one was the easiest for me to understand, but I'm aware it may not be the most efficient.
If I keep the libraries addatstart variable on, then it populates my text window just fine upon startup. But after toggling that off and then trying to call on the crhud_add() proc in the first step of my demo, it does nothing. Is there a better way to go about this? Any help would be appreciated.
For reference, here is the meat of the library.