view data/conf/guiDemo.mtt @ 137:9f035cd139c6

BIG commit. Major change: old Options class is gone, all content values are loaded and saved automatically. All options updated to reflect this, some changed. Content restrutured a lot: New IContent module, Content module includes more functionality. New ContentLoader module to manage content loading/saving/translation. Translation module moved to content dir and cut down to reflect current usage. File format unchanged except renames: FontOptions -> Font, VideoOptions -> Screen. Font render mode and LCD filter options are now enums. GUI loading needs to create content (and set type for enums), but doesn't save/load value. Some setup of mainSchedule moved to mde.mainLoop. Content callbacks are called on content change now. ContentLists are set up implicitly from content symbols. Not as fast but much easier! Bug-fix in the new MTTagReader. Renamed MT *Reader maker functions to avoid confusion in paths.d. New mde.setup.logger module to allow logger setup before any other module's static this().
author Diggory Hardy <diggory.hardy@gmail.com>
date Sat, 07 Feb 2009 12:46:03 +0000
parents 9fd705793568
children 3468e9bfded1
line wrap: on
line source

{MT01}
<char[]|Renderer="Simple">
<char[]|Design="Working">
{Working}
<WidgetData|root={0:[0x4100,0,2,1],1:["bar","float"]}>
<WidgetData|float={0:[0x4200,14],1:["options"]}>
<WidgetData|bar={0:[0x4100,14,1,2],1:["menuContent","blank"]}>
<WidgetData|blank={0:[0x2]}>

<WidgetData|menuContent={0:[0x2031],1:["menus","menus"]}>
<WidgetData|menus={0:[0x4110,12]   ,1:["menuPopup"]}>
<WidgetData|menuPopup={0:[0x6033,0],1:["menuList"]}>
<WidgetData|menuList={0:[0x6030,0] ,1:["menuPopup"]}>

<EnumContent|gui.switch=["misc","video","font"]>
<WidgetData|options={0:[0x2031],1:["gui.switch","switchL"]}>
<WidgetData|switchL={0:[0x4100,4,2,1],1:["switchVal","switchT"]}>
<WidgetData|switchVal={0:[0x4100,4,1,2],1:["optName","optVal"]}>
<WidgetData|switchT={0:[0x4210],1:["optMisc","optVideo","optFont"]}>

<WidgetData|optMisc={0:[0x2031],1:["MiscOptions","optSec"]}>
<WidgetData|optVideo={0:[0x2031],1:["Screen","optSec"]}>
<WidgetData|optFont={0:[0x2031],1:["Font","optSec"]}>

!{use optBox for no description, optDBox for descriptions under entries}
<WidgetData|optSec={0:[0x4110,0],1:["optBox"]}>
<WidgetData|optDBox={0:[0x4100,1,2,1],1:["optBox","optDesc"]}>
<WidgetData|optBox={0:[0x4100,1,1,3],1:["optName","optSep","optVal"]}>
<WidgetData|optName={0:[0x4020, 1, 0xffffff]}>
<WidgetData|optDesc={0:[0x4020, 2, 0x999999]}>
<WidgetData|optVal={0:[0x6030,12],1:["optEnum"]}>
<WidgetData|optEnum={0:[0x4100,0,1,2],1:["optVal","optName"]}>
<WidgetData|optSep={0:[0x21, 0xff],1:[" = "]}>
{Basic}
<WidgetData|root={0:[0x21,0x90D970],1:["A string!"]}>