From a2bd12c9939bc89016eb185227c01ddeca20e26d Mon Sep 17 00:00:00 2001 From: Pcornat Date: Wed, 18 Mar 2026 13:10:05 +0100 Subject: [PATCH] Adding luck --- app_win_2_back.cpp | 10 ++++++++++ app_win_2_back.hpp | 2 ++ 2 files changed, 12 insertions(+) diff --git a/app_win_2_back.cpp b/app_win_2_back.cpp index 968380e..cc65a5d 100644 --- a/app_win_2_back.cpp +++ b/app_win_2_back.cpp @@ -196,6 +196,15 @@ namespace gui_to_app { }, app_builder }; + luck_labels = CaracInterface{ + { + "chance_label_base", + "chance_label_carac", + "chance_label_materiel", + "chance_label_total" + }, + app_builder + }; debug_button->signal_clicked().connect(sigc::mem_fun(*this, &AppWin2Back::debug_button_clicked), false); } @@ -254,6 +263,7 @@ namespace gui_to_app { update_in_labels(sheet.get_habilete(), "hab", hab_labels); 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); } bool AppWin2Back::insert_obj(const character::billyEnums &obj) noexcept { diff --git a/app_win_2_back.hpp b/app_win_2_back.hpp index 0240923..0475a9d 100644 --- a/app_win_2_back.hpp +++ b/app_win_2_back.hpp @@ -106,6 +106,8 @@ namespace gui_to_app { CaracInterface addr_labels; + CaracInterface luck_labels; + Gtk::Button *debug_button{ nullptr }; std::array signal_handlers{