UI tweaks
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
#define VS_COLOR_BLACK (Color){20, 20, 20, 255}
|
#define VS_COLOR_BLACK (Color){20, 20, 20, 255}
|
||||||
#define VS_COLOR_DARKGREY (Color){46, 46, 46, 255}
|
#define VS_COLOR_DARKGREY (Color){46, 46, 46, 255}
|
||||||
|
#define VS_COLOR_GREY (Color){80, 80, 80, 255}
|
||||||
#define VS_COLOR_LIGHTGREY (Color){100, 100, 100, 255}
|
#define VS_COLOR_LIGHTGREY (Color){100, 100, 100, 255}
|
||||||
#define VS_COLOR_WHITE (Color){214, 214, 214, 255}
|
#define VS_COLOR_WHITE (Color){214, 214, 214, 255}
|
||||||
#define VS_COLOR_YELLOW (Color){229, 181, 103, 255}
|
#define VS_COLOR_YELLOW (Color){229, 181, 103, 255}
|
||||||
|
|||||||
+5
-4
@@ -131,17 +131,18 @@ namespace VISEQ::GRAPH::NODES{
|
|||||||
bool show = hovering() || picked_up;
|
bool show = hovering() || picked_up;
|
||||||
Color dcol = ColorBrightness(col, -0.5f);
|
Color dcol = ColorBrightness(col, -0.5f);
|
||||||
Color dyncol = show ? col : dcol;
|
Color dyncol = show ? col : dcol;
|
||||||
|
Color dGrey = ColorBrightness(VS_COLOR_GREY, -0.2f);
|
||||||
|
Color dynGrey = show ? VS_COLOR_GREY : dGrey;
|
||||||
|
|
||||||
if(steps > 0){
|
if(steps > 0){
|
||||||
for(int i = 0; i < steps; i++){
|
for(int i = 0; i < steps; i++){
|
||||||
Vec2Df pos = parentPosition.orbitAtAngle(orbit, DEG2RAD * i * (360.0f/steps));
|
Vec2Df pos = parentPosition.orbitAtAngle(orbit, DEG2RAD * i * (360.0f/steps));
|
||||||
Vec2Df pos1 = parentPosition.orbitAtAngle(orbit - 2.0f, DEG2RAD * i * (360.0f/steps));
|
Vec2Df pos1 = parentPosition.orbitAtAngle(orbit - 3.0f, DEG2RAD * i * (360.0f/steps));
|
||||||
//DrawCircleV(pos, 1.0f, dyncol);
|
DrawLineV(pos, pos1, dynGrey);
|
||||||
DrawLineV(pos, pos1, dyncol);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
DrawCircleLinesV(parentPosition, (parentPosition + position).dist(parentPosition), dynGrey);
|
||||||
DrawCircleV(position + parentPosition, radius, dyncol);
|
DrawCircleV(position + parentPosition, radius, dyncol);
|
||||||
DrawCircleLinesV(parentPosition, (parentPosition + position).dist(parentPosition), dyncol);
|
|
||||||
VISEQ::HELPER::DrawSuperText(std::format("{}", assignedValueRef), position + parentPosition, position + parentPosition + Vec2Df(50,0), 1, 0, 8, dyncol);
|
VISEQ::HELPER::DrawSuperText(std::format("{}", assignedValueRef), position + parentPosition, position + parentPosition + Vec2Df(50,0), 1, 0, 8, dyncol);
|
||||||
|
|
||||||
//if(show) VISEQ::HELPER::DrawSuperText(name, minP, maxP, 0.5f, 8.0f, 10.0f, dyncol);
|
//if(show) VISEQ::HELPER::DrawSuperText(name, minP, maxP, 0.5f, 8.0f, 10.0f, dyncol);
|
||||||
|
|||||||
Reference in New Issue
Block a user