Changing characteristics to try to deal with gameplay.

It is not a definitive changes, a refactoring is going to be made in the future.
This commit is contained in:
Pcornat 2024-02-26 11:36:22 +01:00
parent 97960cffc6
commit cfd22179e9
Signed by: Pcornat
GPG key ID: E0326CC678A00BDD
6 changed files with 57 additions and 8 deletions

View file

@ -53,8 +53,6 @@ void gui::Gui::render_gui(const Controller &controller) {
ImGuiComboFlags_PopupAlignLeft)) {
for (std::size_t i = 0; i < GuiData::classes.size(); ++i) {
const bool is_selected = (data.billy.get_current_class() == static_cast<character::classe>(i));
if (ImGui::Selectable(GuiData::classes[i].data(), is_selected))
data.billy.current_class = static_cast<character::classe>(i);
if (is_selected)
ImGui::SetItemDefaultFocus();