MCPcopy Create free account
hub / github.com/TheWaveWarden/odin2 / paint

Method paint

Source/gui/FXComponent.cpp:121–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void FXComponent::paint(Graphics &g) {
122 auto asset = m_type == Type::chorus ? UIAssets::Indices::FX_Chorus : UIAssets::Indices::FX_Flanger;
123
124 g.drawImageAt(UIAssetManager::getInstance()->getUIAsset(asset, ConfigFileManager::getInstance().getOptionGuiScale()), 0, 0);
125}
126
127void FXComponent::setSyncEnabled(bool p_sync) {
128 if (m_sync_enabled != p_sync) {

Callers

nothing calls this directly

Calls 2

getUIAssetMethod · 0.80
getOptionGuiScaleMethod · 0.80

Tested by

no test coverage detected