Skip to content

Commit 8b04f5e

Browse files
committed
MainMenu / Options / Updater setup
1 parent 86627b1 commit 8b04f5e

3 files changed

Lines changed: 87 additions & 71 deletions

File tree

ClientFiles/Resources/MainMenu.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,4 @@ Visible=true ; Enable only if your mod has a statistics identifier for tracking
121121
[lblCnCNetPlayerCount]
122122
Location=986,142
123123
FontIndex=1
124-
Visible=false ; Enable only if your mod has a statistics identifier for tracking player count and it is set in ClientDefinitions.ini.
124+
Visible=true ; Enable only if your mod has a statistics identifier for tracking player count and it is set in ClientDefinitions.ini.

ClientFiles/Resources/OptionsWindow.ini

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -26,47 +26,47 @@ SettingKey=DisableChat
2626
; Phobos Controls commented out, only use where it suits the mod
2727
; ----------------------------------------------------------------------
2828

29-
[chkTooltipsExtra]
30-
Location=24,151, ;12,151
31-
Text=Sidebar Tooltip Descriptions
32-
ToolTip=Enables additional information in sidebar tooltips.
33-
DefaultValue=true
34-
ParentCheckBoxName=chkTooltips
35-
ParentCheckBoxRequiredValue=true
36-
SettingSection=Phobos
37-
SettingKey=ToolTipDescriptions
38-
39-
[chkPrioritySelection]
40-
Location=242,54
41-
Text=Mass Selection Filtering
42-
ToolTip=If enabled, non-combat units are not selected if mass-selecting together with combat units.
43-
DefaultValue=false
44-
SettingSection=Phobos
45-
SettingKey=PrioritySelectionFiltering
46-
47-
[chkBuildingPlacement]
48-
Location=242,78
49-
Text=Show Building Placement Preview
50-
ToolTip=If enabled, shows a preview image of the building when placing it.
51-
DefaultValue=false
52-
SettingSection=Phobos
53-
SettingKey=ShowBuildingPlacementPreview
54-
55-
[chkShowDesignator]
56-
Location=242,102
57-
Text=Show Designator Range
58-
ToolTip=If enabled, shows superweapon designator & inhibitor radius circles.
59-
DefaultValue=false
60-
SettingSection=Phobos
61-
SettingKey=ShowDesignatorRange
62-
63-
[chkSaveGameOnScenarioStart]
64-
Location=242,126
65-
Text=Save Game On Mission Start
66-
ToolTip=If enabled, game is automatically saved on mission start.
67-
DefaultValue=true
68-
SettingSection=Phobos
69-
SettingKey=SaveGameOnScenarioStart
29+
;[chkTooltipsExtra]
30+
;Location=24,151, ;12,151
31+
;Text=Sidebar Tooltip Descriptions
32+
;ToolTip=Enables additional information in sidebar tooltips.
33+
;DefaultValue=true
34+
;ParentCheckBoxName=chkTooltips
35+
;ParentCheckBoxRequiredValue=true
36+
;SettingSection=Phobos
37+
;SettingKey=ToolTipDescriptions
38+
39+
;[chkPrioritySelection]
40+
;Location=242,54
41+
;Text=Mass Selection Filtering
42+
;ToolTip=If enabled, non-combat units are not selected if mass-selecting together with combat units.
43+
;DefaultValue=false
44+
;SettingSection=Phobos
45+
;SettingKey=PrioritySelectionFiltering
46+
47+
;[chkBuildingPlacement]
48+
;Location=242,78
49+
;Text=Show Building Placement Preview
50+
;ToolTip=If enabled, shows a preview image of the building when placing it.
51+
;DefaultValue=false
52+
;SettingSection=Phobos
53+
;SettingKey=ShowBuildingPlacementPreview
54+
55+
;[chkShowDesignator]
56+
;Location=242,102
57+
;Text=Show Designator Range
58+
;ToolTip=If enabled, shows superweapon designator & inhibitor radius circles.
59+
;DefaultValue=false
60+
;SettingSection=Phobos
61+
;SettingKey=ShowDesignatorRange
62+
63+
;[chkSaveGameOnScenarioStart]
64+
;Location=242,126
65+
;Text=Save Game On Mission Start
66+
;ToolTip=If enabled, game is automatically saved on mission start.
67+
;DefaultValue=true
68+
;SettingSection=Phobos
69+
;SettingKey=SaveGameOnScenarioStart
7070

7171
; ----------------------------------------------------------------------
7272
; End of Phobos controls
@@ -86,35 +86,35 @@ BackgroundTexture=optionsbg.png
8686

8787
[CnCNetOptionsPanel]
8888

89-
[UpdaterOptionsPanel]
90-
0=lblUpdateChannel:XNALabel
91-
1=ddUpdateChannel:FileSettingDropDown
92-
2=lblUpdateChannelDescription:XNALabel
93-
3=btnCncnetSupport:XNALinkButton
94-
95-
[lblUpdateChannel]
96-
Location=12,240
97-
Size=90,24
98-
Text=Update Channel:
99-
100-
[ddUpdateChannel]
101-
Location=102,238
102-
Size=97,21
103-
Items=Live,Beta,Dev
104-
DefaultValue=0
105-
CheckFilePresence=yes
106-
ResetUnselectableItem=yes
107-
ForceApplyUnselectableItem=no
108-
RestartRequired=true
109-
Item0File0=Resources/Config/UpdaterConfig_Live.ini,updateconfig.ini,OverwriteOnMismatch
110-
Item1File0=Resources/Config/UpdaterConfig_Beta.ini,updateconfig.ini,OverwriteOnMismatch
111-
Item2File0=Resources/Config/UpdaterConfig_Dev.ini,updateconfig.ini,OverwriteOnMismatch
112-
ToolTip=Switch between update Channels. Requires client restart.
113-
Enabled=true
114-
115-
[lblUpdateChannelDescription]
116-
Location=12,264
117-
Text=**WARNING**: Using the Beta channel may bring unexpected errors or behavior.@It is meant to allow public testing of upcoming features before they are released. Please use@Discord to report any issues and be sure to mention the Update Channel you are using.
89+
;[UpdaterOptionsPanel]
90+
;0=lblUpdateChannel:XNALabel
91+
;1=ddUpdateChannel:FileSettingDropDown
92+
;2=lblUpdateChannelDescription:XNALabel
93+
;3=btnCncnetSupport:XNALinkButton
94+
95+
;[lblUpdateChannel]
96+
;Location=12,240
97+
;Size=90,24
98+
;Text=Update Channel:
99+
100+
;[ddUpdateChannel]
101+
;Location=102,238
102+
;Size=97,21
103+
;Items=Live,Beta,Dev
104+
;DefaultValue=0
105+
;CheckFilePresence=yes
106+
;ResetUnselectableItem=yes
107+
;ForceApplyUnselectableItem=no
108+
;RestartRequired=true
109+
;Item0File0=Resources/Config/UpdaterConfig_Live.ini,updateconfig.ini,OverwriteOnMismatch
110+
;Item1File0=Resources/Config/UpdaterConfig_Beta.ini,updateconfig.ini,OverwriteOnMismatch
111+
;Item2File0=Resources/Config/UpdaterConfig_Dev.ini,updateconfig.ini,OverwriteOnMismatch
112+
;ToolTip=Switch between update Channels. Requires client restart.
113+
;Enabled=true
114+
115+
;[lblUpdateChannelDescription]
116+
;Location=12,264
117+
;Text=**WARNING**: Using the Beta channel may bring unexpected errors or behavior.@It is meant to allow public testing of upcoming features before they are released. Please use@Discord to report any issues and be sure to mention the Update Channel you are using.
118118

119119
[btnCncnetSupport]
120120
Location=12,315

ClientFiles/Resources/UpdaterConfig.ini

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,23 @@ IgnoreMasks=gui_settings.xml
77
; Format: URL,UI Name,Location.
88
; Example: 0=http://testurl/updates/,Test Update Server,Europe
99
; Location is optional.
10+
1011
[DownloadMirrors]
12+
0=https://downloads.cncnet.org/updates/games/yr/live/, CnCNet Live, Europe
13+
1=https://downloads.cncnet.org/updates/games/yr/dev/, CnCNet Dev, Europe
14+
2=https://downloads.cncnet.org/updates/games/yr/beta/, CnCNet Beta, Europe
15+
16+
;Items=Live,Beta,Dev
17+
;DefaultValue=0
18+
;CheckFilePresence=yes
19+
;ResetUnselectableItem=yes
20+
;ForceApplyUnselectableItem=no
21+
;RestartRequired=true
22+
;Item0File0=Resources/Config/UpdaterConfig_Live.ini,updateconfig.ini,OverwriteOnMismatch
23+
;Item1File0=Resources/Config/UpdaterConfig_Beta.ini,updateconfig.ini,OverwriteOnMismatch
24+
;Item2File0=Resources/Config/UpdaterConfig_Dev.ini,updateconfig.ini,OverwriteOnMismatch
25+
;ToolTip=Switch between update Channels. Requires client restart.
26+
;Enabled=true
1127

1228
; List of custom components.
1329
; Format: UI Name, Version File ID, Download File Path, Local File Path, [Disable archive extension for download path (true/false)?]

0 commit comments

Comments
 (0)