MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / UpdateLocation

Method UpdateLocation

Source/QuickSpawnMenu.cpp:570–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

568}
569
570void QuickSpawnFollower::UpdateLocation()
571{
572 float x, y;
573 TheQuickSpawnMenu->GetPosition(x, y);
574 float scaleFactor = UserPrefs.ui_scale.Get() / gDrawScale;
575 x *= scaleFactor;
576 y *= scaleFactor;
577 x -= TheSynth->GetDrawOffset().x;
578 y -= TheSynth->GetDrawOffset().y;
579 SetPosition(x, y);
580}

Callers 2

DrawModuleMethod · 0.80

Calls 3

GetMethod · 0.80
GetDrawOffsetMethod · 0.80
GetPositionMethod · 0.45

Tested by

no test coverage detected