Some tweaks, not much progress.
This commit is contained in:
+3
-3
@@ -216,9 +216,9 @@ namespace VISEQ::GRAPH::NODES {
|
||||
void draw(Vec2Df mouse, Camera2D cam) override {
|
||||
Node::draw();
|
||||
if(hovering()) {
|
||||
radius += radius < 25 ? 2 : 0;
|
||||
radius += radius < hover_radius ? 2 : 0;
|
||||
} else {
|
||||
radius -= radius > 15 ? 2 : 0;
|
||||
radius -= radius > node_radius ? 2 : 0;
|
||||
}
|
||||
|
||||
if(hovering() || selected) interact();
|
||||
@@ -262,7 +262,7 @@ namespace VISEQ::GRAPH::NODES {
|
||||
|
||||
if(hovering()){
|
||||
for(int i = 0; i < 16; ++i){
|
||||
channelButtons.at(i).position = position.orbitAtAngle(21.0, DEG2RAD * (360.0f/16.0f)*i);
|
||||
channelButtons.at(i).position = position.orbitAtAngle(radius - 6.0f, DEG2RAD * (360.0f/16.0f)*i);
|
||||
Color col = VS_COLOR_YELLOW;
|
||||
if(mode == 0 && midiNote.channel == i) col = VS_COLOR_PINK;
|
||||
if(mode == 1 && midiCC.channel == i) col = VS_COLOR_PINK;
|
||||
|
||||
@@ -35,6 +35,8 @@ namespace VISEQ::GRAPH::NODES {
|
||||
Distribution distributionMode = Distribution::GEOMETRIC;
|
||||
|
||||
float radius = 15.0f;
|
||||
float node_radius = 15.0f;
|
||||
float hover_radius = 32.0f;
|
||||
bool config = false;
|
||||
|
||||
bool triggered = false;
|
||||
|
||||
Reference in New Issue
Block a user