| 29 | } |
| 30 | |
| 31 | void button_t::set_hover(bool is_hovered) |
| 32 | { |
| 33 | this->is_hovered = is_hovered; |
| 34 | if (!this->is_pressed) |
| 35 | { |
| 36 | if (is_hovered) |
| 37 | { |
| 38 | this->hover.animate(HOVERED); |
| 39 | } else |
| 40 | { |
| 41 | this->hover.animate(NORMAL); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | add_idle_damage(); |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Set whether the button is pressed or not. |
no outgoing calls
no test coverage detected