themename.ini

Last update: 2005-01-07



All MokCC information is saved in to "databases" which are saved in simple text format. To edit these, use a text editor you like.

themename.ini

These are the main settings for the system.

Section / parameter

Description

[MOK]

Section tag

Font

The font for the big characters. The size of each character is 16x16 pixels. It follows a traditional charpacked format from c64 and must consist of less than (96 characters. All graphics are under the gfx directory so no path is to be added in the parameter.

The format is raw from Cuneiform ( http://scrapdog.freeservers.com/ ). To save a font of your own in correct format follow this:

- File->export-> ‘fontname.raw’ -> Ok
- [x] Normalize (chars less than 96)
- [x] Save screen data
- Add correct font as a parameter to mok.ini.

Font=2x2 3d_darc3.raw

FontSmall

The font for small characters. The size of each character is 8x8 pixels. It follows a traditional format from c64 and must consist of 64 characters. The font also has a special order which you must follow. All graphics are under the gfx directory so no path is to be added in the parameter.

FontSmall=1x1 paksu small2 darc.raw

Informative

LCD can be used as an informative UI only. This means that when this is defined, the LCD won't use any of the keypresses received. Thus, any [MAINMENU] you might have defined is simpy not used.

Instead, in the beginning the page and section defined are loaded at startup. After this, the page shown on the screen is the same as the one on the main UI (eg. TVgui).

For example: Pressing a button on TVgui opens a page with the name playback.txt and section MP3. LCD, will try to find from it's theme directory a file with the name playback.txt with a MP3 section. If either is missing, an 'empty' screen is shown.

informative=page.txt|<SECTION>



[MAINMENU]

Section tag

item01

A menuitem that defines the mainmenu to use with the LCD. Menuitems are defined as commands with the exception that in front of the command is a title and logo.

menunameXX=title|logo|command|section|themepage|theme section

- menunameXX : A name of the menu that is to be shown on the upper part of the screen. XX is here to make each line unique (eg. 00, 01, 02..).
- title : Title for the menuitem; eg mp3.
- logo : The logo to show when on this menuitem; eg. mp3.bmp. The logo is of 48x48 B/W image.
- command|section|themepage|theme section : The
commands to run when menuitem is activated.

audio00=mp3|48x48_round1_mp3.bmp|cmdMP3SELECT|MP3|xml_all.txt|<MUSIC_SELECT>




Example basic.ini

[MOK]
Font=2x2 mok1.raw
FontSmall=1x1 paksu small2 darc.raw
#Informative=xml_all.txt|<MAINMENU>

# The menu below is used if Informative (above) is not defined.

[MAINMENU]
audio00=mp3|48x48_ball_mp3.bmp|cmdMP3SELECT|MP3|xml_all.txt|<MUSIC_SELECT>
audio01=cd audio|48x48_ball_cdAudio.bmp|cmdCD|CDA|xml_all.txt|<MUSIC_PLAY>

movie10=dvd|48x48_ball_dvd.bmp|cmdDVDSELECT|DVD|xml_all.txt|<DVD_SELECT>
movie11=movie|48x48_ball_divx.bmp|cmdMOVIESELECT|MOVIE|xml_all.txt|<MOVIE_SELECT>

misc20=notepad|48x48_book02.bmp|cmdTHIRDPARTY|c:\win98se\notepad.exe
misc21=shutdown|48x48_bigX.bmp|cmdSHUTDOWN