Pull more HUD functionality into scripting