Getting more UI elements sorted out in the boss fight.
This commit is contained in:
parent
d4d8d8ca99
commit
a8863cf687
4 changed files with 28 additions and 44 deletions
11
boss/ui.cpp
11
boss/ui.cpp
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue