added support for hyperlink cursor type
This commit is contained in:
parent
41dfa94636
commit
74adb52d80
4 changed files with 2 additions and 2 deletions
BIN
images/cursors-bw/select.png
Normal file
BIN
images/cursors-bw/select.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 240 B |
BIN
images/cursors/select.png
Normal file
BIN
images/cursors/select.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue