MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / zEntButton_SceneUpdate

Function zEntButton_SceneUpdate

src/SB/Game/zEntButton.cpp:373–393  ·  view source on GitHub ↗

Equivalent(?): sda loads, regalloc

Source from the content-addressed store, hash-verified

371
372// Equivalent(?): sda loads, regalloc
373void zEntButton_SceneUpdate(F32 dt)
374{
375 sColorMultiplier += dt * sColorMultiplierSign * 2.5f;
376
377 if (sColorMultiplier > 1.0f)
378 {
379 sColorMultiplierSign *= -1;
380 sColorMultiplier = 1.0f;
381 }
382
383 if (sColorMultiplier < 0.0f)
384 {
385 sColorMultiplierSign *= -1;
386 sColorMultiplier = 0.0f;
387 }
388
389 F32 mul = 0.39999999f * sColorMultiplier + 0.6f;
390 sRedMultiplier = mul;
391 sGreenMultiplier = mul;
392 sBlueMultiplier = mul;
393}
394
395static S32 zEntButtonEventCB(xBase* from, xBase* to, U32 toEvent, const F32* toParam, xBase* b3)
396{

Callers 1

zSceneUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected