The flame shader now only turns on when facing an enemy. Next is tagging enemies with specific shaders to apply at a specific time.
This commit is contained in:
parent
5ffa3b0d1e
commit
1b4f55804c
6 changed files with 29 additions and 13 deletions
|
@ -16,7 +16,7 @@ namespace gui {
|
|||
void CombatUI::make_button(std::string name, std::wstring label, Events::GUI event) {
|
||||
auto button = $gui.entity(name);
|
||||
$gui.set<Sprite>(button, {"leather_pouch-128"});
|
||||
// $gui.set<Rectangle>(button, {});
|
||||
$gui.set<Rectangle>(button, {});
|
||||
$gui.set<Sound>(button, {"ui_click"});
|
||||
$gui.set<Label>(button, {label});
|
||||
$gui.set<Effect>(button, {.duration=0.1f});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue