Docs: Update Player/Actor Flags (#2765)

* Actor Flags update

* player state1 flags; cleanup; prep for state2 and state3

* Player state2

* player state3

* Rename flags in Player tab
This commit is contained in:
Ralphie Morell
2023-05-30 15:05:04 -04:00
committed by GitHub
parent f544aba647
commit 71662c56b5
382 changed files with 1767 additions and 1684 deletions

View File

@@ -1708,14 +1708,16 @@ void DrawPlayerTab() {
ImGui::Text("Player State");
uint8_t bit[32] = {};
uint32_t flags[3] = { player->stateFlags1, player->stateFlags2, player->stateFlags3 };
std::vector<std::vector<std::string>> flag_strs = { state1, state2, state3 };
for (int j = 0; j <= 2; j++) {
DrawGroupWithBorder([&]() {
ImGui::Text("State Flags %d", j + 1);
std::vector<std::string> state = flag_strs[j];
for (int i = 0; i <= 31; i++) {
bit[i] = ((flags[j] >> i) & 1);
if (bit[i] != 0) {
ImGui::Text("Flag %d", i);
ImGui::Text("%s", state[i].c_str());
}
}
});