kopia lustrzana https://github.com/jameshball/osci-render
Ignore port on sosci
rodzic
7dc3f938f2
commit
445f56b520
|
@ -3,7 +3,6 @@
|
||||||
AboutComponent::AboutComponent(const void *image, size_t imageSize, juce::String sectionText, int port) {
|
AboutComponent::AboutComponent(const void *image, size_t imageSize, juce::String sectionText, int port) {
|
||||||
addAndMakeVisible(logoComponent);
|
addAndMakeVisible(logoComponent);
|
||||||
addAndMakeVisible(text);
|
addAndMakeVisible(text);
|
||||||
addAndMakeVisible(portText);
|
|
||||||
|
|
||||||
logo = juce::ImageFileFormat::loadFrom(image, imageSize);
|
logo = juce::ImageFileFormat::loadFrom(image, imageSize);
|
||||||
|
|
||||||
|
@ -18,15 +17,19 @@ AboutComponent::AboutComponent(const void *image, size_t imageSize, juce::String
|
||||||
text.setJustification(juce::Justification(juce::Justification::centred));
|
text.setJustification(juce::Justification(juce::Justification::centred));
|
||||||
text.setText(sectionText);
|
text.setText(sectionText);
|
||||||
|
|
||||||
// TODO: Integrate this better
|
if (port > 0) {
|
||||||
portText.setMultiLine(false);
|
addAndMakeVisible(portText);
|
||||||
portText.setReadOnly(true);
|
|
||||||
portText.setInterceptsMouseClicks(false, false);
|
// TODO: Integrate this better
|
||||||
portText.setOpaque(false);
|
portText.setMultiLine(false);
|
||||||
portText.setColour(juce::TextEditor::backgroundColourId, juce::Colours::transparentBlack);
|
portText.setReadOnly(true);
|
||||||
portText.setColour(juce::TextEditor::outlineColourId, juce::Colours::transparentBlack);
|
portText.setInterceptsMouseClicks(false, false);
|
||||||
portText.setJustification(juce::Justification(juce::Justification::centred));
|
portText.setOpaque(false);
|
||||||
portText.setText(juce::String("Blender Port: ") + juce::String(port));
|
portText.setColour(juce::TextEditor::backgroundColourId, juce::Colours::transparentBlack);
|
||||||
|
portText.setColour(juce::TextEditor::outlineColourId, juce::Colours::transparentBlack);
|
||||||
|
portText.setJustification(juce::Justification(juce::Justification::centred));
|
||||||
|
portText.setText(juce::String("Blender Port: ") + juce::String(port));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AboutComponent::resized() {
|
void AboutComponent::resized() {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
class AboutComponent : public juce::Component {
|
class AboutComponent : public juce::Component {
|
||||||
public:
|
public:
|
||||||
AboutComponent(const void *image, size_t imageSize, juce::String sectionText, int port);
|
AboutComponent(const void *image, size_t imageSize, juce::String sectionText, int port = -1);
|
||||||
|
|
||||||
void resized() override;
|
void resized() override;
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue