Displaying available objects in GUI.
This commit is contained in:
parent
60957902cb
commit
7d4981e02c
@ -7,6 +7,7 @@
|
||||
#include "gui/gui_data.hpp"
|
||||
#include "character_sheet.hpp"
|
||||
#include "controller.hpp"
|
||||
#include "billy_objects.hpp"
|
||||
|
||||
gui::Gui::Gui(Window &window, GuiData &data, menu::MenuData &menuData) :
|
||||
data(data), menu(menuData), font("font/DejaVuSans.ttf") {
|
||||
@ -222,6 +223,28 @@ void gui::Gui::materiel_menu() noexcept {
|
||||
ImVec2(ImGui::GetWindowWidth() / 3, 0),
|
||||
ImGuiChildFlags_Border | ImGuiChildFlags_AutoResizeY);
|
||||
ImGui::Text("Matériel");
|
||||
|
||||
ImGui::BeginChild("weapons", ImVec2(0, 0), ImGuiChildFlags_Border | ImGuiChildFlags_AutoResizeY);
|
||||
ImGui::Text(character::BillyObjects::sword.data());
|
||||
ImGui::Text(character::BillyObjects::lance.data());
|
||||
ImGui::Text(character::BillyObjects::morgenstern.data());
|
||||
ImGui::Text(character::BillyObjects::bow.data());
|
||||
ImGui::EndChild();
|
||||
|
||||
ImGui::BeginChild("equipments", ImVec2(0, 0), ImGuiChildFlags_Border | ImGuiChildFlags_AutoResizeY);
|
||||
ImGui::Text(character::BillyObjects::chainmail.data());
|
||||
ImGui::Text(character::BillyObjects::cooking_pot.data());
|
||||
ImGui::Text(character::BillyObjects::pamphlet_tourist.data());
|
||||
ImGui::Text(character::BillyObjects::medic_kit.data());
|
||||
ImGui::EndChild();
|
||||
|
||||
ImGui::BeginChild("tools", ImVec2(0, 0), ImGuiChildFlags_Border | ImGuiChildFlags_AutoResizeY);
|
||||
ImGui::Text(character::BillyObjects::fourche.data());
|
||||
ImGui::Text(character::BillyObjects::dagger.data());
|
||||
ImGui::Text(character::BillyObjects::rock_climbing_kit.data());
|
||||
ImGui::Text(character::BillyObjects::sack_of_grain.data());
|
||||
ImGui::EndChild();
|
||||
|
||||
ImGui::EndChild();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user