projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3c81229
)
added highlighting color when navigating tree info nodes
author
Holger Schemel
<info@artsoft.org>
Sat, 6 Feb 2021 10:48:34 +0000
(11:48 +0100)
committer
Holger Schemel
<info@artsoft.org>
Sat, 6 Feb 2021 10:48:34 +0000
(11:48 +0100)
src/screens.c
patch
|
blob
|
history
diff --git
a/src/screens.c
b/src/screens.c
index 7e87e50dc7117cd912e91db620e12e2a2f26eb36..dbac21b31e47d8625abb9f940bf84b7d12139bdc 100644
(file)
--- a/
src/screens.c
+++ b/
src/screens.c
@@
-4503,6
+4503,12
@@
static void drawChooseTreeInfo(int entry_pos, TreeInfo *ti)
MarkTileDirty(x, 1);
}
MarkTileDirty(x, 1);
}
+static void drawChooseTreeCursorAndText(int y, boolean active, TreeInfo *ti)
+{
+ drawChooseTreeCursor(y, active);
+ drawChooseTreeText(y, active, ti);
+}
+
static void HandleChooseTree(int mx, int my, int dx, int dy, int button,
TreeInfo **ti_ptr)
{
static void HandleChooseTree(int mx, int my, int dx, int dy, int button,
TreeInfo **ti_ptr)
{
@@
-4550,7
+4556,7
@@
static void HandleChooseTree(int mx, int my, int dx, int dy, int button,
drawChooseTreeList(ti->cl_first, num_page_entries, ti);
drawChooseTreeInfo(ti->cl_first + ti->cl_cursor, ti);
drawChooseTreeList(ti->cl_first, num_page_entries, ti);
drawChooseTreeInfo(ti->cl_first + ti->cl_cursor, ti);
- drawChooseTreeCursor
(ti->cl_cursor, TRUE
);
+ drawChooseTreeCursor
AndText(ti->cl_cursor, TRUE, ti
);
return;
}
return;
}
@@
-4660,7
+4666,7
@@
static void HandleChooseTree(int mx, int my, int dx, int dy, int button,
{
drawChooseTreeList(ti->cl_first, num_page_entries, ti);
drawChooseTreeInfo(ti->cl_first + ti->cl_cursor, ti);
{
drawChooseTreeList(ti->cl_first, num_page_entries, ti);
drawChooseTreeInfo(ti->cl_first + ti->cl_cursor, ti);
- drawChooseTreeCursor
(ti->cl_cursor, TRUE
);
+ drawChooseTreeCursor
AndText(ti->cl_cursor, TRUE, ti
);
AdjustChooseTreeScrollbar(SCREEN_CTRL_ID_SCROLL_VERTICAL,
ti->cl_first, ti);
AdjustChooseTreeScrollbar(SCREEN_CTRL_ID_SCROLL_VERTICAL,
ti->cl_first, ti);
@@
-4724,8
+4730,8
@@
static void HandleChooseTree(int mx, int my, int dx, int dy, int button,
{
PlaySound(SND_MENU_ITEM_ACTIVATING);
{
PlaySound(SND_MENU_ITEM_ACTIVATING);
- drawChooseTreeCursor
(ti->cl_cursor, FALSE
);
- drawChooseTreeCursor
(y, TRUE
);
+ drawChooseTreeCursor
AndText(ti->cl_cursor, FALSE, ti
);
+ drawChooseTreeCursor
AndText(y, TRUE, ti
);
drawChooseTreeInfo(ti->cl_first + y, ti);
ti->cl_cursor = y;
drawChooseTreeInfo(ti->cl_first + y, ti);
ti->cl_cursor = y;