| 37 | } |
| 38 | |
| 39 | void DrawableSlider::paint(Graphics &g) { |
| 40 | SET_INTERPOLATION_QUALITY(g) |
| 41 | |
| 42 | const auto handle = UIAssetManager::getInstance()->getUIAsset(UIAssets::Indices::fader_cap, ConfigFileManager::getInstance().getOptionGuiScale()); |
| 43 | const auto y = (1.f - valueToProportionOfLength(getValue())) * (getHeight() - juce::roundToInt(float(handle.getHeight()) * 0.9f)); |
| 44 | g.drawImageAt(handle, 0, y); |
| 45 | } |
| 46 | |
| 47 | String DrawableSlider::getTextFromValue(double value) { |
| 48 | //apparently there's a better solution: |
nothing calls this directly
no test coverage detected