Exported RefreshBackground

This commit is contained in:
DyNaM1Kk 2025-04-27 13:12:25 +04:00
parent a4cc434148
commit 740bb4f1fc
2 changed files with 13 additions and 0 deletions

View file

@ -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

View file

@ -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();