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

Method Poll

Source/HelpDisplay.cpp:145–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145void HelpDisplay::Poll()
146{
147 if (mScreenshotState == ScreenshotState::WaitingForSpawn)
148 {
149 if (mScreenshotModule != nullptr)
150 mScreenshotModule->GetOwningContainer()->DeleteModule(mScreenshotModule);
151 mScreenshotModule = TheSynth->SpawnModuleOnTheFly(mScreenshotsToProcess.front(), 100, 300);
152
153 if (mScreenshotsToProcess.front().mLabel == "drumplayer")
154 mScreenshotModule->FindUIControl("edit")->SetValue(1, gTime);
155
156 mScreenshotState = ScreenshotState::WaitingForScreenshot;
157 mScreenshotCountdown = 10;
158 }
159}
160
161bool HelpDisplay::MouseScrolled(float x, float y, float scrollX, float scrollY, bool isSmoothScroll, bool isInvertedScroll)
162{

Callers

nothing calls this directly

Calls 5

DeleteModuleMethod · 0.80
GetOwningContainerMethod · 0.80
SpawnModuleOnTheFlyMethod · 0.80
SetValueMethod · 0.45
FindUIControlMethod · 0.45

Tested by

no test coverage detected