MCPcopy Create free account
hub / github.com/TurningWheel/Barony / init

Method init

src/interface/interface.cpp:29427–29455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29425}
29426
29427void CalloutRadialMenu::CalloutParticle_t::init(const int player)
29428{
29429 creationTick = ::ticks;
29430 messageSentTick = ::ticks;
29431 lifetime = kParticleLifetime;
29432 for ( int i = 0; i < MAXPLAYERS; ++i )
29433 {
29434 if ( i == player && uidMatchesPlayer(player, entityUid) && players[i]->isLocalPlayer() )
29435 {
29436 lockOnScreen[i] = true;
29437 }
29438 else
29439 {
29440 lockOnScreen[i] = true;
29441 }
29442 big[i] = true;
29443 animateScaleForPlayerView[i] = 0.0;
29444 }
29445 Entity* parent = uidToEntity(entityUid);
29446
29447 if ( !parent )
29448 {
29449 return;
29450 }
29451
29452 z = parent->z - 4;
29453
29454 type = CalloutRadialMenu::getCalloutTypeForEntity(player, parent);
29455}
29456
29457void CalloutRadialMenu::closeCalloutMenuGUI()
29458{

Callers 6

consolecommand.cppFile · 0.45
drawMinimapFunction · 0.45
baseCreateLoadingScreenFunction · 0.45
setupGLMethod · 0.45
fboInitMethod · 0.45
guiInitMethod · 0.45

Calls 2

isLocalPlayerMethod · 0.80
uidToEntityFunction · 0.50

Tested by

no test coverage detected