Getting more UI elements sorted out in the boss fight.

This commit is contained in:
Zed A. Shaw 2025-12-20 14:07:52 -05:00
parent d4d8d8ca99
commit a8863cf687
4 changed files with 28 additions and 44 deletions

View file

@ -87,8 +87,9 @@ namespace boss {
|| $actions.mouse(x, y, mods) || $arena.mouse(x, y, mods);
}
void UI::status(const std::wstring& msg) {
void UI::status(const std::wstring& msg, const std::wstring &button_msg) {
$arena.$ui.show_text("status", msg);
$actions.show_text("commit", button_msg);
}
void UI::move_actor(const std::string& actor, const std::string& cell_name) {
@ -103,6 +104,14 @@ namespace boss {
$arena.play_animations();
}
void UI::damage(const std::string& actor, int amount) {
if(amount == 0) {
$arena.$ui.show_text("boss7", fmt::format(L"{} MISSED!", guecs::to_wstring(actor)));
} else {
$arena.$ui.show_text("boss7", fmt::format(L"{} HIT {}!", guecs::to_wstring(actor), amount));
}
}
void UI::zoom(const std::string &cell_name, double ratio) {
if(cell_name == "") {
dbc::log("!!!!!!!!! you should add this to guecs");