feat(hud): Add force show HUD component and replaced some hard-coded values. (#628)

This commit is contained in:
SpaghettDev
2022-11-26 20:42:58 +01:00
committed by GitHub
parent 2364bc5688
commit cab25b12f7
5 changed files with 44 additions and 17 deletions

View File

@ -75,11 +75,8 @@ namespace big
if (g->self.invisibility) {
ImGui::Checkbox("Locally Visible", &g->self.local_visibility);
}
ImGui::Checkbox("Keep Player Clean", &g->self.clean_player);
ImGui::Checkbox("No Collision", &g->self.no_collision);
ImGui::Checkbox("Mobile Radio", &g->self.mobile_radio);
ImGui::EndGroup();
@ -173,6 +170,10 @@ namespace big
ImGui::Checkbox("Hide Ammo", &g->self.hide_ammo);
ImGui::SameLine();
ImGui::Checkbox("Force show HUD", &g->self.force_show_hud);
ImGui::Combo("##hud_comp_combo", &g->self.selected_hud_component, hud_component_names, (int)HudComponents::HUD_WEAPONS);
ImGui::SameLine();
components::button("Hide", [] {
@ -200,6 +201,10 @@ namespace big
g->self.hud_components_states[i] = false;
}
});
ImGui::SameLine();
ImGui::Checkbox("Force show HUD element", &g->self.force_show_hud_element);
if (ImGui::IsItemHovered())
ImGui::SetTooltip("To force show a HUD specific element, click Hide all then click Show on the desired element.");
ImGui::EndGroup();