mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-24 06:21:18 +00:00
Additional Goner BG polish
- Helper functions for eased X/Y - Don't jump Metal's camera around when doing things rapidly - Don't have ctrl alt del open mouths when not on the main Goner menu itself
This commit is contained in:
parent
f955c639e8
commit
c93e02af4a
1 changed files with 16 additions and 13 deletions
|
|
@ -221,11 +221,22 @@ public:
|
|||
|
||||
bool NeutralMouthCheck()
|
||||
{
|
||||
return (LinesOutput.empty()
|
||||
return (currentMenu != &MAIN_GonerDef
|
||||
|| LinesOutput.empty()
|
||||
|| goner_typewriter.textDone
|
||||
|| goner_typewriter.text.empty());
|
||||
}
|
||||
|
||||
fixed_t GetX()
|
||||
{
|
||||
return Easing_InOutCubic(focusdelta, focusx, x);
|
||||
}
|
||||
|
||||
fixed_t GetY()
|
||||
{
|
||||
return Easing_InOutCubic(focusdelta, focusy, y);
|
||||
}
|
||||
|
||||
void Tick()
|
||||
{
|
||||
// This is the visual feed sputtering in and out.
|
||||
|
|
@ -243,9 +254,9 @@ public:
|
|||
|
||||
if (focuslast != focuscurrent)
|
||||
{
|
||||
x = GetX();
|
||||
y = GetY();
|
||||
focusdelta = FRACUNIT;
|
||||
x = focusx;
|
||||
y = focusy;
|
||||
|
||||
switch (focuscurrent)
|
||||
{
|
||||
|
|
@ -919,16 +930,8 @@ void M_DrawGonerBack(void)
|
|||
return;
|
||||
|
||||
drawer = drawer.xy(
|
||||
FixedToFloat(Easing_InOutCubic(
|
||||
goner_background.focusdelta,
|
||||
goner_background.focusx,
|
||||
goner_background.x
|
||||
)),
|
||||
FixedToFloat(Easing_InOutCubic(
|
||||
goner_background.focusdelta,
|
||||
goner_background.focusy,
|
||||
goner_background.y
|
||||
))
|
||||
FixedToFloat(goner_background.GetX()),
|
||||
FixedToFloat(goner_background.GetY())
|
||||
);
|
||||
|
||||
if (goner_background.focusdelta && renderdeltatics <= 2*FRACUNIT)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue