Mercurial > public > hwos_code
diff src/menu_tree.asm @ 50:ec4d8503ec45
NEW: user-selectable color schemes
author | heinrichsweikamp |
---|---|
date | Fri, 27 Sep 2013 23:45:57 +0200 |
parents | e4e91fe8b09d |
children | e7c7c7eeea58 5c4d4a42e7a0 |
line wrap: on
line diff
--- a/src/menu_tree.asm Fri Sep 27 14:17:21 2013 +0200 +++ b/src/menu_tree.asm Fri Sep 27 23:45:57 2013 +0200 @@ -350,7 +350,7 @@ bsf settime_setdate MENU_BEGIN tSetDate, .4 MENU_OPTION tSetDay, oSetDay, 0 - MENU_OPTION tSetMonth, oSetMonth, 0 + MENU_OPTION tSetMonth, oSetMonth, 0 MENU_OPTION tSetYear, oSetYear, 0 MENU_CALL tExit, do_continue_menu_3stack MENU_END @@ -449,19 +449,31 @@ goto do_logoffset_common_write ; Store and return do_dispsets_menu_3stack: + bcf in_color_menu call menu_processor_pop call menu_processor_pop do_dispsets_menu: - MENU_BEGIN tDispSets, .6 + MENU_BEGIN tDispSets, .7 MENU_OPTION tBright, oBrightness, 0 MENU_OPTION tUnits, oUnits, 0 MENU_CALL tLogOffset, do_log_offset_menu MENU_OPTION tSamplingrate,oSamplingRate,0 MENU_OPTION tDvSalinity,oDiveSalinity, 0 + MENU_CALL tColorScheme, do_color_scheme MENU_CALL tExit, do_return_settings MENU_END + + extern oColorSetDive +do_color_scheme: + bsf in_color_menu + MENU_BEGIN tColorScheme, .2 + MENU_OPTION tColorSetDive,oColorSetDive, 0 + MENU_CALL tExit, do_dispsets_menu_3stack + MENU_END + + ;============================================================================= global new_battery_menu