[Android Software/Hacking General [Developers Only]] kalisjr:
Looking for Function Reference Guide. (Does it Exist?)

All,

I am trying to build a multi option aroma config the script part is all good but the issue I seem to be having could be resolved if someone could point me in the direction of a code reference guide that explains the operators and functions that are native to this application.

I have an example of a config script which is complaining about the number of functions something spits out to the effect of function 4 + 3 is expected and 12 was given or something like that.

I suspect it's the way I have attempted to use the menubox(

I would like to allow the option to have first the ROM color selected, and then the carrier as this ROM is for the Samsung Galaxy S3 the config breaks with function error which it shouldn't because the syntax appears to work with just one of the two when running this same code with just one and not two menubox( functions.

If there is a reference guide I am more than happy to read and do this on my own but if someone could show an example of how to write this different that will be very appreaciated but I am not afraid of doing the research and work on my own just at this point have hit a snag of which there appears to be no clear answer for.

This tool over all is very easy to use but I can't seem to find a command reference any where on the internet for this tool, the examples are great for the context in which they apply but in this case I couldn't find anything to assist in the goal I am trying to achieve with this config.

If someone can spot the error here please help if you are kindly willing.

Thanks,

Jk

Code attached below..

###################################################################################################################
viewbox(
"Welcome",
"You are about to install <b>"+ini_get("rom_name")+
"</b> for the <b>"+ini_get("rom_device")+"</b>.\n\n"+
" Version:\t<b><#selectbg_g>"+ini_get("rom_version")+"</#></b>\n"+
" Author:\t<b><#selectbg_g>"+ini_get("rom_author")+"</#></b>\n"+
" Updated:\t<b><#selectbg_g>"+ini_get("rom_date")+"</#></b>\n\n\n\n"+
"Press <b>Next</b> to continue...",
"@info"
);
menubox(
"Jelly Bean Rom v3.0",
"Please Select The ROM You Would Like To Install",
"@install",
"type.prop",
"ROM Theme Option 1",	"Blue Theme","@customize",	#-- selected = 1
"ROM Theme Option 2", "Pink Theme","@customize",	#-- selected = 2
"ROM Theme Option 3",	"Red Theme","@customize", #-- selected = 3
"ROM Theme Option 4",	"Orange Theme","@customize", #-- selected = 4
"ROM Theme Option 5",	"Green Theme","@customize" #-- selected = 5

);

if (prop("type.prop","selected")=="1") then
writetmpfile(
"customize.prop",
"item.1.1=1\n"+
"item.1.2=0\n"+
"item.1.3=0\n"+
"item.1.4=0\n"+
"item.1.5=0\n"

);
endif;

if (prop("type.prop","selected")=="2") then
writetmpfile(
"customize.prop",
"item.1.1=0\n"+
"item.1.2=1\n"+
"item.1.3=0\n"+
"item.1.4=0\n"+
"item.1.5=0\n"

);
endif;

if (prop("type.prop","selected")=="3") then
writetmpfile(
"customize.prop",
"item.1.1=0\n"+
"item.1.2=0\n"+
"item.1.3=1\n"+
"item.1.4=0\n"+
"item.1.5=0\n"

);

endif;

if (prop("type.prop","selected")=="4") then
writetmpfile(
"customize.prop",
"item.1.1=0\n"+
"item.1.2=0\n"+
"item.1.3=0\n"+
"item.1.4=1\n"+
"item.1.5=0\n"

);

endif;

if (prop("type.prop","selected")=="5") then
writetmpfile(
"customize.prop",
"item.1.1=0\n"+
"item.1.2=0\n"+
"item.1.3=0\n"+
"item.1.4=0\n"+
"item.1.5=1\n"

);

endif;

menubox(
"Please Select The Carrier You Would Like To Install",
"@install",
"type.prop",
"ROM Carrier Choice 1",	"AT&T Samsung Galaxy S3 SGH-i747","@customize",	#-- selected = 1
"ROM Carrier Choice 2", "T-Mobile Samsung Galaxy S3 SGH-T999","@customize",	#-- selected = 2
"ROM Carrier Choice 3",	"Verizon Samsung Galaxy S3 SCH-i535","@customize" #-- selected = 3

);

if (prop("type.prop","selected")=="1") then
writetmpfile(
"customize.prop",
"item.2.1=1\n"+
"item.2.2=0\n"+
"item.2.3=0\n"

);
endif;

if (prop("type.prop","selected")=="2") then
writetmpfile(
"customize.prop",
"item.2.1=0\n"+
"item.2.2=1\n"+
"item.2.3=0\n"

);
endif;

if (prop("type.prop","selected")=="3") then
writetmpfile(
"customize.prop",
"item.2.1=0\n"+
"item.2.2=0\n"+
"item.2.3=1\n"

);

endif;

ini_set("text_next", "Install Now");

viewbox(
"Ready to Install",
"You are now ready to begin installation.\n\n"+
"Press <b>Install Now</b> to start.\n\n"+
"If you want to review or change any of your installation settings, press <b>Back</b>.",
"@install"
);

ini_set("text_next", "Next >");

setvar("retstatus",
install(
#-- Title
"Installing The ROM",

#-- Installation Process message
"<b>"+ini_get("rom_name")+"</b> is being installed.\n\n"+
"Please wait while installation wizard installs <b>"+ini_get("rom_name")+
"</b>. This may take several minutes.",

#-- Installation Icon
"@install",

#-- Installation Finish Message
"The installation wizard has successfully installed <b>"+ini_get("rom_name")+
"</b>. Press Next to continue."
)
);

##
#
# Next Button is "Finish"
#
ini_set("text_next", "Finish");

checkviewbox(
#-- Title
"Installation Completed",

#-- Text
"<#selectbg_g><b>Congratulations...</b></#>\n\n"+
"<b>"+ini_get("rom_name")+"</b> has been installed into your device.\n\n"+
"Installer Status: "+getvar("retstatus")+"\n\n",

#-- Icon
"@welcome",

#-- Checkbox Text
"Reboot Your Device Now.",

#-- Initial Checkbox value ( 0=unchecked, 1=checked ) - (Optional, default:0)
"1",

#-- Save checked value in variable "reboot_it" (Optional)
"reboot_it"
);

###
#
# Check if reboot checkbox was checked
if getvar("reboot_it")=="1" then
reboot("onfinish");
endif;