Adding debug button for objects in sheet

This commit is contained in:
Pcornat 2026-02-06 19:18:06 +01:00
commit 92db466083
Signed by: Pcornat
GPG key ID: E0326CC678A00BDD
3 changed files with 23 additions and 0 deletions

View file

@ -17,6 +17,7 @@ namespace learn_gtkmm4 {
namespace Gtk {
class Builder;
class Label;
class Button;
}
namespace gui_to_app {
@ -59,6 +60,8 @@ namespace gui_to_app {
bool switch_signal_handler(bool flag, const character::billyEnums &obj) noexcept;
void debug_button_clicked() const noexcept;
bool insert_obj(const character::billyEnums &obj) noexcept;
bool erase_obj(const character::billyEnums &obj) noexcept;
@ -85,6 +88,8 @@ namespace gui_to_app {
Gtk::Label *hab_mat{ nullptr };
Gtk::Label *hab_total{ nullptr };
Gtk::Button *debug_button{ nullptr };
std::array<SwitchSignalHelper, 12> signal_handlers{
SwitchSignalHelper{ .app = *this, .obj = character::weapons::Sword },
SwitchSignalHelper{ .app = *this, .obj = character::weapons::Lance },