Simlify and improve BT visualization
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user