diff --git a/app_win_2_back.cpp b/app_win_2_back.cpp index 6628d46..b51ea15 100644 --- a/app_win_2_back.cpp +++ b/app_win_2_back.cpp @@ -206,6 +206,10 @@ namespace gui_to_app { app_builder }; + damage_label = app_builder->get_widget("label_degat"); + armor_label = app_builder->get_widget("label_armure"); + critic_label = app_builder->get_widget("label_critique"); + debug_button->signal_clicked().connect(sigc::mem_fun(*this, &AppWin2Back::debug_button_clicked), false); } @@ -267,6 +271,11 @@ namespace gui_to_app { update_in_labels(sheet.get_endurance(), "endu", endu_labels); update_in_labels(sheet.get_adresse(), "adresse", addr_labels); update_in_labels(sheet.get_chance(), "chance", luck_labels); + + std::array convert{ '\0' }; + convert_to_label(convert, "damage", static_cast(sheet.get_damage()), damage_label); + convert_to_label(convert, "armor", static_cast(sheet.get_armor()), armor_label); + convert_to_label(convert, "critic", static_cast(sheet.get_critique()), critic_label); } bool AppWin2Back::insert_obj(const character::billyEnums &obj) noexcept { diff --git a/app_win_2_back.hpp b/app_win_2_back.hpp index 0475a9d..2865b72 100644 --- a/app_win_2_back.hpp +++ b/app_win_2_back.hpp @@ -108,6 +108,10 @@ namespace gui_to_app { CaracInterface luck_labels; + Gtk::Label *damage_label{ nullptr }; + Gtk::Label *armor_label{ nullptr }; + Gtk::Label *critic_label{ nullptr }; + Gtk::Button *debug_button{ nullptr }; std::array signal_handlers{