Always show 3D settings and rename settings titles to be more clear

pull/218/head
James Ball 2024-01-21 17:56:47 +00:00
rodzic f748fa66d6
commit 0ab4b8cc84
5 zmienionych plików z 5 dodań i 6 usunięć

Wyświetl plik

@ -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);

Wyświetl plik

@ -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);

Wyświetl plik

@ -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());
}

Wyświetl plik

@ -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);

Wyświetl plik

@ -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());