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:
@@ -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());
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user