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:
parent
97960cffc6
commit
cfd22179e9
6 changed files with 57 additions and 8 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue