diff options
author | neoraider <devnull@localhost> | 2007-06-26 21:30:01 +0200 |
---|---|---|
committer | neoraider <devnull@localhost> | 2007-06-26 21:30:01 +0200 |
commit | f10436d8168840417c000e08038350dd5de4fc15 (patch) | |
tree | 1149581315fae39c27c741b81c6e130ff5cd666c /edit.c | |
parent | b8549034bef0de090547f32af07df248e68c7064 (diff) | |
download | zoomedit-f10436d8168840417c000e08038350dd5de4fc15.tar zoomedit-f10436d8168840417c000e08038350dd5de4fc15.zip |
zoomedit: Added room selection and hover effect.
Diffstat (limited to 'edit.c')
-rw-r--r-- | edit.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -4,6 +4,7 @@ static int editMode = EDIT_MODE_VIEW; static ROOM *activeRoom = NULL; +static ROOM *hoveredRoom = NULL; int getEditMode() { return editMode; @@ -20,3 +21,11 @@ void setActiveRoom(ROOM *room) { if(editMode == EDIT_MODE_VIEW || editMode == EDIT_MODE_SELECTED) editMode = (room == NULL) ? EDIT_MODE_VIEW : EDIT_MODE_SELECTED; } + +ROOM *getHoveredRoom() { + return hoveredRoom; +} + +void setHoveredRoom(ROOM *room) { + hoveredRoom = room; +} |