EcoModder.com

EcoModder.com (https://ecomodder.com/forum/)
-   OpenGauge / MPGuino FE computer (https://ecomodder.com/forum/opengauge-mpguino-fe-computer.html)
-   -   Can I change the order of the menus? (https://ecomodder.com/forum/showthread.php/can-i-change-order-menus-6854.html)

Wingmn 01-22-2009 02:24 PM

Can I change the order of the menus?
 
I was wondering how to change the order in which the display information is set up.

I'd like to move the EOC screen between the Big Instant and the Instant/Current screen.

I use those 3 all the time, I'd like them back to back to cut down on my button pushing while I'm driving :)

Is this all I have to change, or is it more involved?

#define displayFuncSize (sizeof(displayFuncs)/sizeof(pFunc)) //array size
prog_char * displayFuncNames[displayFuncSize];
byte newRun = 0;
void setup (void){
init2();
newRun = load();//load the default parameters
byte x = 0;
displayFuncNames[x++]= PSTR("Custom ");
displayFuncNames[x++]= PSTR("Instant/Current ");
displayFuncNames[x++]= PSTR("Instant/Tank ");
displayFuncNames[x++]= PSTR("BIG Instant ");
displayFuncNames[x++]= PSTR("BIG Current ");
displayFuncNames[x++]= PSTR("BIG Tank ");
displayFuncNames[x++]= PSTR("Current ");
displayFuncNames[x++]= PSTR("Tank ");
displayFuncNames[x++]= PSTR("EOC mi/Idle gal ");
displayFuncNames[x++]= PSTR("CPU Monitor ");

fx57 01-23-2009 03:13 AM

You got the right place, but change the screen order in here also to match:

pFunc displayFuncs[] ={
doDisplayCustom,
doDisplayInstantCurrent,
doDisplayInstantTank,
doDisplayBigInstant,
doDisplayBigCurrent,
doDisplayBigTank,
doDisplayCurrentTripData,
doDisplayTankTripData,
doDisplayEOCIdleData,
doDisplaySystemInfo,
};


All times are GMT -4. The time now is 08:04 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com