Fun with config nodes that modifiy other config nodes. Circular connections lead to a crash.

This commit is contained in:
Sebastian
2024-12-11 01:16:06 +01:00
parent 456528f230
commit bc8c433e47
7 changed files with 162 additions and 41 deletions
+9
View File
@@ -96,6 +96,15 @@ namespace VISEQ::APP::UI{
}
DrawText(std::format("{}", gm->getNodesSize()).c_str(), 20, state->settings.height - 70, 15, VS_COLOR_WHITE);
DrawFPS(20, state->settings.height - 30);
std::string shorts[6] = {"NT","CC","PC","PB","AT","PP"};
for(int i = 0; i < 6; ++i){
Color col = VS_COLOR_GREEN;
if(state->node_mode == i) col = VS_COLOR_SUN;
Vec2Df pos = {state->settings.width - (6.0f*75.0f) + i*75.0f, state->settings.height - 75.0f};
DrawCircleV(pos, 30.0f, col);
DrawCenteredText(shorts[i], pos, 20, VS_COLOR_BLACK);
}
}
void DrawCenteredText(std::string text, Vec2Df position, int size, Color color){