Some tweaks, not much progress.

This commit is contained in:
Sebastian
2024-12-10 00:00:53 +01:00
parent ddf9e640b1
commit 456528f230
2 changed files with 5 additions and 3 deletions
+3 -3
View File
@@ -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;