XML:WMM: Difference between revisions
(Created page with "{{XML_File_Header | type=WMM_ | prev=WMDD | next=WMMB | name=Window Manager Menu}} ==General information== *This is a global resource type (level0_Final). *WMM_ is used to cr...") |
m (used Retitle to add underscore to display title that MW doesn't allow in a page name) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{XML_File_Header | type=WMM_ | {{XML_File_Header | prev=WMDD | type=WMM_ | next=WPge | name=WM Menu}} | ||
{{Retitle|WMM_}} | |||
==General information== | ==General information== | ||
*This is a global resource type (level0_Final). | *This is a global resource type (level0_Final). | ||
*"WM" stands for "Window Manager". | |||
*WMM_ is used to create a single menu in a menu bar. However all of the WMM_s in level0_Final seem to be development relics which are no longer called on by the game. The one exception is WMM_pm_difficulty, which is referenced by WMDDdialog_options to provide the contents of the Options screen's Difficulty menu ("Easy", "Normal", "Hard"). | *WMM_ is used to create a single menu in a menu bar. However all of the WMM_s in level0_Final seem to be development relics which are no longer called on by the game. The one exception is WMM_pm_difficulty, which is referenced by WMDDdialog_options to provide the contents of the Options screen's Difficulty menu ("Easy", "Normal", "Hard"). | ||
*The only other menu in Oni is the Options screen's resolution menu, which has to be populated at runtime by the game, so there is no WMM_ for it. | *The only other menu in Oni is the Options screen's resolution menu, which has to be populated at runtime by the game, so there is no WMM_ for it. | ||
Latest revision as of 16:38, 8 March 2025
| WMM_ : WM Menu |
| |
|---|---|---|
| XML
WMDD << Other file types >> WPge |
General information
- This is a global resource type (level0_Final).
- "WM" stands for "Window Manager".
- WMM_ is used to create a single menu in a menu bar. However all of the WMM_s in level0_Final seem to be development relics which are no longer called on by the game. The one exception is WMM_pm_difficulty, which is referenced by WMDDdialog_options to provide the contents of the Options screen's Difficulty menu ("Easy", "Normal", "Hard").
- The only other menu in Oni is the Options screen's resolution menu, which has to be populated at runtime by the game, so there is no WMM_ for it.
Example
WMM_pm_difficulty:
<?xml version="1.0" encoding="utf-8"?>
<Oni>
<WMM_ id="0">
<Id>10000</Id>
<Text>Difficulty</Text>
<Items>
<WMM_MenuItem>
<Type>Option</Type>
<Id>0</Id>
<Text>Easy</Text>
</WMM_MenuItem>
<WMM_MenuItem>
<Type>Option</Type>
<Id>1</Id>
<Text>Normal</Text>
</WMM_MenuItem>
<WMM_MenuItem>
<Type>Option</Type>
<Id>2</Id>
<Text>Hard</Text>
</WMM_MenuItem>
</Items>
</WMM_>
</Oni>
The two choices for <Type> are "Option" (a menu item) and "Separator" (a separating line that you would put between groups of items). In the second case, the <Text> supplied does not matter. The way that Oni reacts to items in the UI is hardcoded, so there's little use in modding WMM-type data.
