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

Method DrawModule

Source/ModuleSaveDataPanel.cpp:242–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242void ModuleSaveDataPanel::DrawModule()
243{
244 if (Minimized() || mAppearAmount < 1)
245 return;
246
247 int x = mAlignmentX - 5;
248 int y = 5;
249
250 DrawTextRightJustify("type", x, y + 12);
251 DrawTextBold(mSaveModule->GetTypeName(), mAlignmentX, y + 12);
252 y += kItemSpacing;
253
254 DrawTextRightJustify("name", x, y + 12);
255 y += kItemSpacing;
256
257 DrawTextRightJustify("preset", x, y + 12);
258 y += kItemSpacing;
259
260 for (auto iter = mLabels.begin(); iter != mLabels.end(); ++iter)
261 {
262 DrawTextRightJustify(*iter, x, y + 12);
263 y += kItemSpacing;
264 }
265
266 for (auto iter = mSaveDataControls.begin(); iter != mSaveDataControls.end(); ++iter)
267 (*iter)->Draw();
268}
269
270void ModuleSaveDataPanel::UpdatePosition()
271{

Callers

nothing calls this directly

Calls 4

DrawTextRightJustifyFunction · 0.85
DrawTextBoldFunction · 0.85
GetTypeNameMethod · 0.80
DrawMethod · 0.45

Tested by

no test coverage detected