mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 12:30:40 +00:00
- removed obsolete scripting exports.
This commit is contained in:
parent
4dedda91c5
commit
7a9f89b95d
8 changed files with 7 additions and 38 deletions
|
@ -1519,35 +1519,6 @@ DEFINE_ACTION_FUNCTION(_Raze, PlayerName)
|
|||
ACTION_RETURN_STRING(unsigned(index) >= MAXPLAYERS ? "" : PlayerName(index));
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION_NATIVE(_Raze, bsin, bsin)
|
||||
{
|
||||
PARAM_PROLOGUE;
|
||||
PARAM_INT(v);
|
||||
PARAM_INT(shift);
|
||||
ACTION_RETURN_INT(bsin(v, shift));
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION_NATIVE(_Raze, bcos, bcos)
|
||||
{
|
||||
PARAM_PROLOGUE;
|
||||
PARAM_INT(v);
|
||||
PARAM_INT(shift);
|
||||
ACTION_RETURN_INT(bcos(v, shift));
|
||||
}
|
||||
|
||||
int raze_getangle(double x, double y)
|
||||
{
|
||||
return VecToAngle(x, y).Buildang();
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION_NATIVE(_Raze, getangle, raze_getangle)
|
||||
{
|
||||
PARAM_PROLOGUE;
|
||||
PARAM_FLOAT(x);
|
||||
PARAM_FLOAT(y);
|
||||
ACTION_RETURN_INT(raze_getangle(x, y));
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION_NATIVE(_Raze, GetBuildTime, I_GetBuildTime)
|
||||
{
|
||||
ACTION_RETURN_INT(I_GetBuildTime());
|
||||
|
|
|
@ -137,7 +137,7 @@ class ListMenuItemDukeLogo : ListMenuItem
|
|||
if (gameinfo.gametype & GAMEFLAG_PLUTOPAK)
|
||||
{
|
||||
let mclock = MSTimeF() * 120 / 1000;
|
||||
int light = 223 + Raze.bsin(mclock * 16, -9);
|
||||
int light = 223 + Raze.bsin(mclock * 16) >> 9;
|
||||
let pe = Color(255, light, light, light);
|
||||
Screen.DrawTexture(TexMan.CheckForTexture("MENUPLUTOPAKSPRITE"), false, x + 100, 36, DTA_FullscreenScale, FSMode_Fit320x200Top, DTA_Color, pe, DTA_CenterOffsetRel, true);
|
||||
}
|
||||
|
|
|
@ -147,7 +147,7 @@ class DukeStatusBar : DukeCommonStatusBar
|
|||
{
|
||||
int s = -8;
|
||||
if (hud_flashing && p.last_extra > Duke.MaxPlayerHealth())
|
||||
s += Raze.bsin(Raze.GetBuildTime() << 5, -10);
|
||||
s += Raze.bsin(Raze.GetBuildTime() << 5) >> 10;
|
||||
int intens = clamp(255 - 6 * s, 0, 255);
|
||||
format = String.Format("%d", p.last_extra);
|
||||
DrawString(numberFont, format, (25, texty), DI_TEXT_ALIGN_LEFT, Font.CR_UNTRANSLATED, intens / 255., 0, 0);
|
||||
|
|
|
@ -94,7 +94,7 @@ class RedneckStatusBar : DukeCommonStatusBar
|
|||
{
|
||||
int s = -8;
|
||||
if (hud_flashing && p.last_extra > Duke.MaxPlayerHealth())
|
||||
s += Raze.bsin(Raze.GetBuildTime() << 5, -10);
|
||||
s += Raze.bsin(Raze.GetBuildTime() << 5) >> 10;
|
||||
int intens = clamp(255 - 6 * s, 0, 255);
|
||||
format = String.Format("%d", p.last_extra);
|
||||
DrawString(numberFont, format, (26.5, -numberFont.mFont.GetHeight() * scale + 4), DI_TEXT_ALIGN_LEFT, Font.CR_UNTRANSLATED, intens / 255., 0, 0, (scale, scale));
|
||||
|
|
|
@ -110,7 +110,7 @@ class ListMenuItemExhumedTextItem : ListMenuItemTextItem
|
|||
double y = mYpos + v.y / 2;
|
||||
|
||||
int shade;
|
||||
if (selected) shade = Raze.bsin(now * 16 * 120 / 1000, -9);
|
||||
if (selected) shade = Raze.bsin(now * 16 * 120 / 1000) >> 9;
|
||||
else if (Selectable()) shade = 0;
|
||||
else shade = 25;
|
||||
let color = Raze.shadeToLight(shade);
|
||||
|
|
|
@ -259,7 +259,7 @@ class ExhumedStatusBar : RazeStatusBar
|
|||
{
|
||||
int s = -8;
|
||||
if (hud_flashing && pp.nHealth > 800)
|
||||
s += Raze.bsin(PlayClock << 5, -10);
|
||||
s += Raze.bsin(PlayClock << 5) >> 10;
|
||||
int intens = clamp(255 - 4 * s, 0, 255);
|
||||
format = String.Format("%d", pp.nHealth >> 3);
|
||||
DrawString(numberFont, format, (13, -numberFont.mFont.GetHeight() + 3), DI_TEXT_ALIGN_LEFT, Font.CR_UNTRANSLATED, intens / 255.);
|
||||
|
|
|
@ -751,7 +751,7 @@ class SWStatusBar : RazeStatusBar
|
|||
{
|
||||
int s = -8;
|
||||
if (hud_flashing && Health > MaxHealth)
|
||||
s += Raze.bsin(PlayClock << 5, -10);
|
||||
s += Raze.bsin(PlayClock << 5) >> 10;
|
||||
int intens = clamp(255 - 4 * s, 0, 255);
|
||||
let pe = Color(255, intens, intens, intens);
|
||||
format = String.Format("%d", Health);
|
||||
|
|
|
@ -142,9 +142,7 @@ struct Raze
|
|||
|
||||
native static Color shadeToLight(int shade);
|
||||
native static String PlayerName(int i);
|
||||
native static int bsin(int angle, int shift = 0);
|
||||
native static int bcos(int angle, int shift = 0);
|
||||
native static int getangle(double x, double y);
|
||||
static int bsin(int angle) { return int(sin(angle * (360. / 2048)) * 16384); }
|
||||
native static TextureID PickTexture(TextureID texid);
|
||||
native static int GetBuildTime();
|
||||
native static Font PickBigFont(String cmptext = "");
|
||||
|
|
Loading…
Reference in a new issue