added support for hyperlink cursor type

This commit is contained in:
Dave White 2004-06-16 14:58:39 +00:00
parent 41dfa94636
commit 74adb52d80
4 changed files with 2 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 B

BIN
images/cursors/select.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -61,7 +61,7 @@ SDL_Cursor* create_cursor(SDL_Surface* surface)
SDL_Cursor* cache[cursor::NUM_CURSORS] = { NULL, NULL, NULL, NULL };
//this array must have members corresponding to cursor::CURSOR_TYPE enum members
const std::string images[cursor::NUM_CURSORS] = { "normal.png", "wait.png", "move.png", "attack.png" };
const std::string images[cursor::NUM_CURSORS] = { "normal.png", "wait.png", "move.png", "attack.png", "select.png" };
cursor::CURSOR_TYPE current_cursor = cursor::NUM_CURSORS;

View file

@ -12,7 +12,7 @@ struct manager
~manager();
};
enum CURSOR_TYPE { NORMAL, WAIT, MOVE, ATTACK, NUM_CURSORS };
enum CURSOR_TYPE { NORMAL, WAIT, MOVE, ATTACK, HYPERLINK, NUM_CURSORS };
void use_colour(bool value);