System Menu/HTML

From WiiBrew
Jump to navigation Jump to search

The System Menu's setup and settings menus are all local webpages displayed by Opera. They are stored in a U8 archive on all versions except 1.0, although the archive's name ends in .ash.

An index of extracted files can be found here, however, some buttons may not work due to the wiiSetting class not existing in a normal web browser's DOM.

wiiSetting

wiiSetting is a class loaded into the DOM that is used to communicate with the System Menu itself, and actually write the values of settings.

ID Property name Description
1 soundId
2 nwc24 Set to 1 if WiiConnect24 is enabled
3 internet
4 standby
5 LED
6 dis_wide
7 dis_pos
8 progressive
9 screensaver
10 sensorBar
11 light
12 year
13 month
14 date
15 hour
16 minute
17 formID Unknown, possibly used to tell the Wii which input box has been selected. (1 being nickname, 17 being parental controls pin entry)
18 pageID Stores information about which page the user is on.
19 message
20 type
21 connectType
22 connectType1
23 connectType2
24 connectType3
25 profileID
26 selectWire
27 wifiType
28 funcID This field is set to the command ID whenever a command is sent.
29 funcResult Return value of a command, 0 means the command has not returned.
30 selectSecKey
31 autoIP
32 autoDNS
33 ip
34 backupNCD
35 resetNCD
36 autoProxy
37 autoBasic
38 backSecKey
39 changeConnectType
40 changeEnable
41 pare_flag Set to 1 if parental controls is enabled
42 secQ
43 secQSave
44 ogn
45 rate
46 rateSave
47 pal
48 language
49 languageSave
50 dtv
51 useID
52 connectTest
53 error
54 setstring
55 se Sound Effect. 1 is click item sound, 2 is the hover over an item click, 3 is the confirmation ding, 4 is go back and 5 is a invalid beep
56 excse Possibly another version of se?
57 finish
58 flush
59 initFlag
60 country
61 countrySave
62 macAvailable
63 updateType
64 restrictions
65 assert
66 subPageID Stores information about which variant of the page the user is on. For example, this is used in the Parental Controls restrictions to specify which restriction is being displayed.
67 productArea
68 eula
69 tvrc Something with a TV remote?
70 tvrc_maker
71 tvrc_type

Native functions

funcID Name Description
23 ? Used in init_index02
29 setParentalDialog? Shows the parental controls popup
51 loadTVRCParams ?
77 setParentalDialog? Shows the parental controls popup
78 loadNWCFlag Loads the appropriate value into nwc24
94 ? Used in init_index03
100 ? Performs a system format
102 ? Shuts down the Wii after a system format

WriteBack()

Unknown function, assumedly used to tell the Wii to write the settings to its memory

directUrl

0 or a string. Used to tell the settings to open a specific page. For example, if set to "Internet", it will blink the internet button before opening it.

version

Contains the version shown at the top right of settings page 1.

wiiTrasition

wiiTrasition is another class loaded into the DOM. It is responsible for transitions such as scrolling between pages.

LeftScroll and RightScroll

These are probably responsible for the scroll transitions when clicking buttons.

common.js

This file is loaded on every System Menu HTML page.

wii

This is the instance of wiiSetting used everywhere.

tra

This is the instance of wiiTrasition used everywhere.

_commonSetSE, _commonSetExcSE, and _commonSetFormID

These functions have one parameter, and set the respective fields of wii to the value of that parameter.

_commonSetFinish

Sets wii.se to 4, and wii.finish to 1.

_commonLeftScroll and _commonRightScroll

These functions call the respective functions in tra, then set wii.se to 1.

_commonSetFuncID

This function takes two arguments, sets wii.se to the first one, and sets wii.funcID to the second one.

_commonSetWriteBack

Takes one argument, calls wii.WriteBack, then sets wii.se to the value of that argument.

_commonSetPageID

Takes two arguments, sets wii.se to the first, and sets wii.pageID to the second.