commit e0d23b53fe12e463d846d2f75025cd03934e8830
parent 3064e9950007892dc29dc9efb1bffe2d3291dffa
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Thu, 8 Aug 2024 20:29:29 +0200
add parameter tooltip
Diffstat:
3 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/source/nord/n2x/n2xJucePlugin/n2xEditor.cpp b/source/nord/n2x/n2xJucePlugin/n2xEditor.cpp
@@ -193,6 +193,11 @@ namespace n2xJucePlugin
m_lcd->updatePatchName();
}
+ void Editor::mouseEnter(const juce::MouseEvent& _ev)
+ {
+ m_focusedParameter->onMouseEnter(_ev);
+ }
+
void Editor::onBtSave() const
{
juce::PopupMenu menu;
diff --git a/source/nord/n2x/n2xJucePlugin/n2xEditor.h b/source/nord/n2x/n2xJucePlugin/n2xEditor.h
@@ -59,6 +59,7 @@ namespace n2xJucePlugin
}
private:
+ void mouseEnter(const juce::MouseEvent& _ev) override;
void onBtSave() const;
void onBtPrev() const;
void onBtNext() const;
diff --git a/source/nord/n2x/n2xJucePlugin/skins/n2xTrancy/n2xTrancy.json b/source/nord/n2x/n2xJucePlugin/skins/n2xTrancy/n2xTrancy.json
@@ -190,6 +190,15 @@
{ "name" : "DeviceModel", "label" : { "text" : "NL2x", "textHeight" : "28", "color" : "FFFFFFFF", "alignH" : "L", "alignV" : "C", "x" : "175", "y" : "1155", "width" : "100", "height" : "32" }},
{ "name" : "RomSelector", "combobox" : { "text" : "rom.bin", "textHeight" : "28", "color" : "FFFFFFFF", "alignH" : "L", "alignV" : "C", "x" : "730", "y" : "1154", "width" : "400", "height" : "32", "offsetR" : "-60", "tooltip" : "Copy a valid ROM file with file extension .bin next to this plugin" }},
-
+ {
+ "name" : "FocusedParameterTooltip",
+ "label" : {
+ "text" : "", "textHeight" : "30", "fontFile":"DSEG7Classic-BoldItalic","fontName":"Register",
+ "color" : "FF0000FF", "backgroundColor" : "220303ff",
+ "alignH" : "C", "alignV" : "C",
+ "x" : "1385", "y" : "1225", "width" : "80", "height" : "45"
+ },
+ "componentProperties" : {"offsetY" : "25"}
+ }
]
}