Adding damage, armor and critic labels.
This commit is contained in:
parent
97d57bae7a
commit
5cadda6b97
2 changed files with 13 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -108,6 +108,10 @@ namespace gui_to_app {
|
|||
|
||||
CaracInterface<Gtk::Label> luck_labels;
|
||||
|
||||
Gtk::Label *damage_label{ nullptr };
|
||||
Gtk::Label *armor_label{ nullptr };
|
||||
Gtk::Label *critic_label{ nullptr };
|
||||
|
||||
Gtk::Button *debug_button{ nullptr };
|
||||
|
||||
std::array<SwitchSignalHelper, 12> signal_handlers{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue