@@ -28,6 +28,8 @@ void Port::onMouseDownOpaque(int button) { | |||||
} | } | ||||
void Port::onDragEnd() { | void Port::onDragEnd() { | ||||
// FIXME | |||||
// If the source Port is deleted, this will be called, removing the cable | |||||
gRackWidget->wireContainer->commitActiveWire(); | gRackWidget->wireContainer->commitActiveWire(); | ||||
} | } | ||||
@@ -432,6 +432,11 @@ AudioInterfaceWidget::AudioInterfaceWidget() { | |||||
addChild(panel); | addChild(panel); | ||||
} | } | ||||
// addChild(createScrew<ScrewSilver>(Vec(15, 0))); | |||||
// addChild(createScrew<ScrewSilver>(Vec(box.size.x-30, 0))); | |||||
// addChild(createScrew<ScrewSilver>(Vec(15, 365))); | |||||
// addChild(createScrew<ScrewSilver>(Vec(box.size.x-30, 365))); | |||||
float margin = 5; | float margin = 5; | ||||
float labelHeight = 15; | float labelHeight = 15; | ||||
float yPos = margin; | float yPos = margin; | ||||
@@ -0,0 +1,44 @@ | |||||
#include "core.hpp" | |||||
using namespace rack; | |||||
struct Bridge : Module { | |||||
enum ParamIds { | |||||
NUM_PARAMS | |||||
}; | |||||
enum InputIds { | |||||
NUM_INPUTS | |||||
}; | |||||
enum OutputIds { | |||||
NUM_OUTPUTS | |||||
}; | |||||
Bridge() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS) { | |||||
} | |||||
~Bridge() { | |||||
} | |||||
void step(); | |||||
}; | |||||
void Bridge::step() { | |||||
} | |||||
BridgeWidget::BridgeWidget() { | |||||
Bridge *module = new Bridge(); | |||||
setModule(module); | |||||
box.size = Vec(15*8, 380); | |||||
{ | |||||
Panel *panel = new LightPanel(); | |||||
panel->box.size = box.size; | |||||
addChild(panel); | |||||
} | |||||
addChild(createScrew<ScrewSilver>(Vec(15, 0))); | |||||
addChild(createScrew<ScrewSilver>(Vec(box.size.x-30, 0))); | |||||
addChild(createScrew<ScrewSilver>(Vec(15, 365))); | |||||
addChild(createScrew<ScrewSilver>(Vec(box.size.x-30, 365))); | |||||
} |
@@ -7,4 +7,5 @@ void init(rack::Plugin *plugin) { | |||||
plugin->homepageUrl = "https://vcvrack.com/"; | plugin->homepageUrl = "https://vcvrack.com/"; | ||||
createModel<AudioInterfaceWidget>(plugin, "AudioInterface", "Audio Interface"); | createModel<AudioInterfaceWidget>(plugin, "AudioInterface", "Audio Interface"); | ||||
createModel<MidiInterfaceWidget>(plugin, "MidiInterface", "MIDI Interface"); | createModel<MidiInterfaceWidget>(plugin, "MidiInterface", "MIDI Interface"); | ||||
// createModel<BridgeWidget>(plugin, "Bridge", "Bridge"); | |||||
} | } |
@@ -16,3 +16,7 @@ struct MidiInterfaceWidget : ModuleWidget { | |||||
MidiInterfaceWidget(); | MidiInterfaceWidget(); | ||||
void step(); | void step(); | ||||
}; | }; | ||||
struct BridgeWidget : ModuleWidget { | |||||
BridgeWidget(); | |||||
}; |