I think this is the best I can do for a hover vs. click shader effect. Just do it in a shader based on a uniform setting.
This commit is contained in:
parent
84a5f06dac
commit
7186c2ecb0
16 changed files with 54 additions and 38 deletions
|
@ -139,12 +139,12 @@ namespace gui {
|
|||
$overlay.render(window);
|
||||
}
|
||||
|
||||
bool BossFightUI::mouse(float x, float y) {
|
||||
if($status.mouse(x, y)) {
|
||||
bool BossFightUI::mouse(float x, float y, bool hover) {
|
||||
if($status.mouse(x, y, hover)) {
|
||||
dbc::log("STATUS button pressed");
|
||||
}
|
||||
|
||||
if($overlay.mouse(x, y)) {
|
||||
if($overlay.mouse(x, y, hover)) {
|
||||
$animation.play();
|
||||
sound::play("Sword_Hit_1");
|
||||
$boss_hit = !$boss_hit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue