Creating MyScripts by Hand
From WADder Wiki
MyScript is the scripting language for MyMenu. A MyScript is a .mym package for use in patching the system menu with MyMenu. A .mym file is just a ZIP file with a renamed file extension, and a special format inside, described below.
MyScript (.mym) file format
ZIP container (renamed to .mym)
- mym.ini - [custom image's in .png format]
The file of interest inside is mym.ini. That file is the main MyScript file, containing the instructions to MyMenu about how to patch the system menu. The format is standard INI format, described below:
Example MyScript
;This is a comment. Anything after a ";" will be ignored.
[cont1] ;^ First container. A container is a compressed or archived file (ASH, U8, etc) file=\layout\common\health.ash ;^ File to unpack\pack. Note the '\' instad of '/'. type=ASH|U8 ;^ Type of file. Currently supported types are ASH and U8. Separate with a |.
[cont2] ;^ Second container. Notice the 2 after 'cont'. file=\layout\common\cursor.ash type=ASH|U8
[cimg1] ;^ Custom image #1. Custom images are images that ask for user input for the image. file=\layout\common\health_ash_out\arc\timg\it_Has_a_US_ENG.tpl ;^ File to replace. Note the "arc" after \health_ash_out\. name=Healthscreen Image ;^ Title of the file open dialog. width=608 ;^ Self-explanitory. height=456 ;^ Self-explanitory. format=RGBA8 ;^ Explained below
[simg1] ;^ Static image #1. Created from a file IN the .mym package. file=\layout\common\health_ash_out\arc\timg\it_Has_a_EU_ENG.tpl ;^ File to replace, note the "\arc\" source=\health.png ;^ Where in the .mym is the image to replace with. Note the leading '\'. File can have any name, including folders. width=608 ;^ Self-explanitory. height=456 ;^ Self-explanitory.
[cdta1] ;^ Custom data #1. For data that is not an image. Not very useful. This example lets you choose a new chanSel.ash. file=\layout\common\chanSel.ash ;^ File to replace name=New chanSel.ash ;^ Title of the file open dialog.
[sdta1] ;^ Static data #1. For data that is not an image. Can be used for non-image replacements, such as brlyt's or other files. file=\layout\common\health_ash_out\arc\rlyt\[iforgetname].brlyt ;^ File to replace. [iforgetname] means I am too lazy to look right now. source=\hacked.brlyt ;^ Where in the .mym is the file to replace from. Can be in folders.
Transparency settings:
format=[TPL Format]
The currently supported TPL Formats are:
- RGB5A3 (low quality, but transparency, small size)
- RGBA8 (high quality, transparency, big size)
- RGB565 (medium quality, no transparency, small size)
THIS IS OPTIONAL. IF YOU DON'T PUT IT IN, IT WILL DEFAULT TO RGB5A3!
Example:
[simg] file=\layout\common\health_ash_out\arc\timg\it_Has_a_US_ENG.tpl source=\transparent.png width=608 height=456 format=RGBA8
