kopia lustrzana https://github.com/jameshball/osci-render
Always show 3D settings and rename settings titles to be more clear
rodzic
f748fa66d6
commit
0ab4b8cc84
|
@ -2,7 +2,7 @@
|
|||
#include "PluginEditor.h"
|
||||
|
||||
LuaComponent::LuaComponent(OscirenderAudioProcessor& p, OscirenderAudioProcessorEditor& editor) : audioProcessor(p), pluginEditor(editor), slidersModel(sliders, p) {
|
||||
setText(".lua File Settings");
|
||||
setText("Lua Settings");
|
||||
|
||||
sliders.setModel(&slidersModel);
|
||||
sliders.setRowHeight(30);
|
||||
|
|
|
@ -80,7 +80,7 @@ OscirenderAudioProcessor::OscirenderAudioProcessor()
|
|||
));
|
||||
toggleableEffects.push_back(std::make_shared<Effect>(
|
||||
customEffect,
|
||||
new EffectParameter("Effect Strength", "Controls the strength of the custom effect applied.", "customEffectStrength", VERSION_HINT, 1.0, 0.0, 1.0)
|
||||
new EffectParameter("Lua Effect", "Controls the strength of the custom Lua effect applied. You can write your own custom effect using Lua by pressing the edit button on the right.", "customEffectStrength", VERSION_HINT, 1.0, 0.0, 1.0)
|
||||
));
|
||||
toggleableEffects.push_back(traceMax);
|
||||
toggleableEffects.push_back(traceMin);
|
||||
|
|
|
@ -133,11 +133,10 @@ void SettingsComponent::paint(juce::Graphics& g) {
|
|||
dc.drawForRectangle(g, main.getBounds());
|
||||
dc.drawForRectangle(g, effects.getBounds());
|
||||
dc.drawForRectangle(g, midi.getBounds());
|
||||
dc.drawForRectangle(g, perspective.getBounds());
|
||||
|
||||
if (lua.isVisible()) {
|
||||
dc.drawForRectangle(g, lua.getBounds());
|
||||
} else if (perspective.isVisible()) {
|
||||
dc.drawForRectangle(g, perspective.getBounds());
|
||||
} else if (txt.isVisible()) {
|
||||
dc.drawForRectangle(g, txt.getBounds());
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "PluginEditor.h"
|
||||
|
||||
TxtComponent::TxtComponent(OscirenderAudioProcessor& p, OscirenderAudioProcessorEditor& editor) : audioProcessor(p), pluginEditor(editor) {
|
||||
setText(".txt File Settings");
|
||||
setText("Text Settings");
|
||||
|
||||
addAndMakeVisible(font);
|
||||
addAndMakeVisible(bold);
|
||||
|
|
|
@ -108,7 +108,7 @@ std::shared_ptr<juce::Component> EffectsListComponent::createComponent(EffectPar
|
|||
std::weak_ptr<SvgButton> weakButton = button;
|
||||
button->setEdgeIndent(5);
|
||||
button->setToggleState(editor.editingCustomFunction, juce::dontSendNotification);
|
||||
button->setTooltip("Toggles whether the text editor is editing the currently open file, or the Lua 3D perspective function.");
|
||||
button->setTooltip("Toggles whether the text editor is editing the currently open file, or the custom Lua effect.");
|
||||
button->onClick = [this, weakButton] {
|
||||
if (auto button = weakButton.lock()) {
|
||||
editor.editCustomFunction(button->getToggleState());
|
||||
|
|
Ładowanie…
Reference in New Issue