mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
Added A_LogFloat
This commit is contained in:
parent
1011e26eb9
commit
0cc2705b99
2 changed files with 17 additions and 0 deletions
|
@ -2761,6 +2761,22 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_LogInt)
|
|||
return 0;
|
||||
}
|
||||
|
||||
//=========================================================================
|
||||
//
|
||||
// A_LogFloat
|
||||
//
|
||||
//===========================================================================
|
||||
|
||||
DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_LogFloat)
|
||||
{
|
||||
PARAM_ACTION_PROLOGUE;
|
||||
PARAM_FLOAT(num);
|
||||
IGNORE_FORMAT_PRE
|
||||
Printf("%H\n", num);
|
||||
IGNORE_FORMAT_POST
|
||||
return 0;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
//
|
||||
// A_SetTranslucent
|
||||
|
|
|
@ -203,6 +203,7 @@ ACTOR Actor native //: Thinker
|
|||
action native A_PrintBold(string whattoprint, float time = 0, name fontname = "");
|
||||
action native A_Log(string whattoprint);
|
||||
action native A_LogInt(int whattoprint);
|
||||
action native A_LogFloat(float whattoprint);
|
||||
action native A_SetTranslucent(float alpha, int style = 0);
|
||||
action native A_FadeIn(float reduce = 0.1, int flags = 0);
|
||||
action native A_FadeOut(float reduce = 0.1, int flags = 1); //bool remove == true
|
||||
|
|
Loading…
Reference in a new issue