Simlify and improve BT visualization

This commit is contained in:
2024-01-11 08:34:53 +01:00
parent 8043d56af9
commit 36d8bac7c4
5 changed files with 39 additions and 26 deletions

View File

@@ -624,7 +624,7 @@ static void renderMainMenu(Game *game, float dt) {
if (uiMainMenuButton("Play")) {
setScreen(game, SCREEN_GAME);
unloadMap(game);
loadMap(game, "assets/maps/pathing_test.tmj");
loadMap(game, "assets/maps/tree_test.tmj");
}
if (uiMainMenuButton("Settings")) {
setScreen(game, SCREEN_SETTINGS);
@@ -769,7 +769,7 @@ void igInspectWindow(ecs_entity_t entity, bool *open) {
igCollapsingHeader_TreeNodeFlags("BehaviourTree", 0)) {
const BzBTState *state = ecs_get(ECS, entity, BzBTState);
if (state->root)
igVisualizeBTState(state->root, state->_first, true, false, 0);
igVisualizeBTState(state->root, state->_first);
else
igTextColored((ImVec4) {1, 0, 0, 1}, "NONE");
}