CMM-22 / a3

0 stars 0 forks source link

How to define new MethodTypes #9

Closed joshuaoreilly closed 2 years ago

joshuaoreilly commented 2 years ago

I've added a new item to the MethodTypes enum, but it doesn't show in the simulation. If I change the currentMethod in main.cpp to my new type, it just shows up as blank. Is the list content hard-coded somewhere?

joshuaoreilly commented 2 years ago

I just noticed that in method drawImGui of main.cpp, the list is indeed hardcoded. Adding a new name to names[] and modifying the last argument of Combo("Boids Behavior", (int*)&currentMethod, names, 5) from 5 to 6 added my new type.