| 37 | } |
| 38 | |
| 39 | void LeftRightButton::paintButton(Graphics &g, bool p_highlight, bool /*p_pressed*/) { |
| 40 | auto asset = int(m_asset); |
| 41 | if (getToggleState()) |
| 42 | asset += 2; |
| 43 | if (p_highlight) |
| 44 | asset += 1; |
| 45 | |
| 46 | g.drawImageAt(UIAssetManager::getInstance()->getUIAsset(UIAssets::Indices(asset), ConfigFileManager::getInstance().getOptionGuiScale()), 0, 0); |
| 47 | } |
| 48 | |
| 49 | void LeftRightButton::mouseDown(const MouseEvent &p_event) { |
| 50 | juce::Point<int> mouse_position = getMouseXYRelative(); |
nothing calls this directly
no test coverage detected