diff --git a/src/g_statusbar/shared_sbar.cpp b/src/g_statusbar/shared_sbar.cpp index 77d2152c74..e3486a4e10 100644 --- a/src/g_statusbar/shared_sbar.cpp +++ b/src/g_statusbar/shared_sbar.cpp @@ -984,6 +984,18 @@ void DBaseStatusBar::RefreshBackground () const } } +static void RefreshBackground(DBaseStatusBar* self) +{ + self->RefreshBackground(); +} + +DEFINE_ACTION_FUNCTION_NATIVE(DBaseStatusBar, RefreshBackground, RefreshBackground) +{ + PARAM_SELF_PROLOGUE(DBaseStatusBar); + self->RefreshBackground(); + return 0; +} + //--------------------------------------------------------------------------- // // DrawCrosshair diff --git a/wadsrc/static/zscript/ui/statusbar/statusbar.zs b/wadsrc/static/zscript/ui/statusbar/statusbar.zs index f0b502ba67..8d42b22309 100644 --- a/wadsrc/static/zscript/ui/statusbar/statusbar.zs +++ b/wadsrc/static/zscript/ui/statusbar/statusbar.zs @@ -238,6 +238,7 @@ class BaseStatusBar : StatusBarCore native // [MK] let the HUD handle drawing the pause graphics virtual bool DrawPaused(int player) { return false; } + protected native void RefreshBackground(); protected native void DrawCrosshair(double TicFrac); native TextureID GetMugshot(int accuracy, int stateflags=MugShot.STANDARD, String default_face = "STF"); native int GetTopOfStatusBar();