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 {
|
void draw(Vec2Df mouse, Camera2D cam) override {
|
||||||
Node::draw();
|
Node::draw();
|
||||||
if(hovering()) {
|
if(hovering()) {
|
||||||
radius += radius < 25 ? 2 : 0;
|
radius += radius < hover_radius ? 2 : 0;
|
||||||
} else {
|
} else {
|
||||||
radius -= radius > 15 ? 2 : 0;
|
radius -= radius > node_radius ? 2 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(hovering() || selected) interact();
|
if(hovering() || selected) interact();
|
||||||
@@ -262,7 +262,7 @@ namespace VISEQ::GRAPH::NODES {
|
|||||||
|
|
||||||
if(hovering()){
|
if(hovering()){
|
||||||
for(int i = 0; i < 16; ++i){
|
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;
|
Color col = VS_COLOR_YELLOW;
|
||||||
if(mode == 0 && midiNote.channel == i) col = VS_COLOR_PINK;
|
if(mode == 0 && midiNote.channel == i) col = VS_COLOR_PINK;
|
||||||
if(mode == 1 && midiCC.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;
|
Distribution distributionMode = Distribution::GEOMETRIC;
|
||||||
|
|
||||||
float radius = 15.0f;
|
float radius = 15.0f;
|
||||||
|
float node_radius = 15.0f;
|
||||||
|
float hover_radius = 32.0f;
|
||||||
bool config = false;
|
bool config = false;
|
||||||
|
|
||||||
bool triggered = false;
|
bool triggered = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user