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:
Zed A. Shaw 2025-04-16 00:02:27 -04:00
parent 5ffa3b0d1e
commit 1b4f55804c
6 changed files with 29 additions and 13 deletions

View file

@ -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});