Adding damage, armor and critic labels.

This commit is contained in:
Pcornat 2026-03-18 14:47:02 +01:00
commit 5cadda6b97
Signed by: Pcornat
GPG key ID: E0326CC678A00BDD
2 changed files with 13 additions and 0 deletions

View file

@ -206,6 +206,10 @@ namespace gui_to_app {
app_builder
};
damage_label = app_builder->get_widget<Gtk::Label>("label_degat");
armor_label = app_builder->get_widget<Gtk::Label>("label_armure");
critic_label = app_builder->get_widget<Gtk::Label>("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<char, 10> convert{ '\0' };
convert_to_label(convert, "damage", static_cast<std::int32_t>(sheet.get_damage()), damage_label);
convert_to_label(convert, "armor", static_cast<std::int32_t>(sheet.get_armor()), armor_label);
convert_to_label(convert, "critic", static_cast<std::int32_t>(sheet.get_critique()), critic_label);
}
bool AppWin2Back::insert_obj(const character::billyEnums &obj) noexcept {