按向下方向键,当下方有图片时,会切换到下方的那一张图片,当下方没有图片时,返回到第一行,原始设计是这样,要改成
可以看到最后一行的图片,可以修改如下:
将gui_asyncdynamic_matrix_menu_goto_next_row()中
/* to support that a row is not full of items */
if (m->highlighted_item > (m->n_items - 1)) /* revert */
{
locate_highlight = 1;
m->highlighted_row = 0;
m->highlighted_item = m->highlighted_column;
m->first_displayed_row = 0;
}
修改为:
/* to support that a row is not full of items */
if (m->highlighted_item > (m->n_items - 1)) /* revert */
{
m->highlighted_item = m->n_items - 1;
}
可以看到最后一行的图片,可以修改如下:
将gui_asyncdynamic_matrix_menu_goto_next_row()中
/* to support that a row is not full of items */
if (m->highlighted_item > (m->n_items - 1)) /* revert */
{
locate_highlight = 1;
m->highlighted_row = 0;
m->highlighted_item = m->highlighted_column;
m->first_displayed_row = 0;
}
修改为:
/* to support that a row is not full of items */
if (m->highlighted_item > (m->n_items - 1)) /* revert */
{
m->highlighted_item = m->n_items - 1;
}
本文介绍了一种修改GUI中图片导航的方法,当按下方向键时,若当前行已无更多图片,则不会返回第一行而是停留在该行的最后一张图片上。
432

被折叠的 条评论
为什么被折叠?



