* Assign an animation to the cursor. * @param table Array of animation states. * @see SetMouseCursor */
| 1717 | * @see SetMouseCursor |
| 1718 | */ |
| 1719 | void SetAnimatedMouseCursor(std::span<const AnimCursor> table) |
| 1720 | { |
| 1721 | assert(!_cursor.sprites.empty()); |
| 1722 | _cursor.animate_list = table; |
| 1723 | _cursor.animate_cur = std::end(table); |
| 1724 | _cursor.sprites[0].image.pal = PAL_NONE; |
| 1725 | SwitchAnimatedCursor(); |
| 1726 | } |
| 1727 | |
| 1728 | /** |
| 1729 | * Update cursor position based on a relative change. |
no test coverage detected