Skip to content

Commit

Permalink
Remove checkbox MOW activation logic
Browse files Browse the repository at this point in the history
  • Loading branch information
MahBoiDeveloper committed Dec 2, 2023
1 parent f53ec13 commit d225790
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 1,603 deletions.
1,376 changes: 0 additions & 1,376 deletions Source/BattleClient.ini

This file was deleted.

32 changes: 6 additions & 26 deletions Source/OptionsWindowDropdown.ini → Source/OptionsWindow.ini
Original file line number Diff line number Diff line change
Expand Up @@ -76,36 +76,16 @@ DistanceFromBottomBorder=-8
Size=552,342

[DisplayOptionsPanelExtraControls]
0=chkEnableMentalOmegaWorld:CustomSettingFileCheckBox
1=ddSelectLanguage:CustomSettingFileDropDown
2=lblSelectLanguage:XNALabel

[chkEnableMentalOmegaWorld]
Location=285,110
Text=Enable Mental Omega World
ToolTip=Enable fanmade missions from Mental Omega World addon
RestartRequired=true
DefaultValue=false
; Enabling
EnabledFile0=Resources/MOW/stringtable42ENG.csf,stringtable42.csf
EnabledFile1=Resources/MOW/BattleClientENG.ini,INI/BattleClient.ini
EnabledFile2=Resources/MOW/expandmo42.mix,expandmo42.mix
EnabledFile3=Resources/MOW/loadingscreenMOW.png,Resources/loadingscreen.png
EnabledFile4=Resources/MOW/mapselmo.ini,mapselmo.ini
EnabledFile5=Resources/MOW/missionmo.ini,missionmo.ini
EnabledFile6=Resources/MOW/OptionsWindowDropdown.ini,Resources/OptionsWindow.ini
; Disabling
DisabledFile0=Resources/MOW/BattleClient.ini,INI/BattleClient.ini
DisabledFile1=Resources/MOW/loadingscreen.png,Resources/loadingscreen.png
DisabledFile2=Resources/MOW/OptionsWindowCheckbox.ini,Resources/OptionsWindow.ini
0=ddSelectLanguage:CustomSettingFileDropDown
1=lblSelectLanguage:XNALabel

[lblSelectLanguage]
Text=Language:
Location=285,135
Text=MOW Language:
Location=285,115

[ddSelectLanguage]
Location=370,130
Size=170,21
Location=390,110
Size=150,21
ToolTip=Select fanmade missions language.
Items=English,Russian,Chineese
DefaultValue=0
Expand Down
186 changes: 0 additions & 186 deletions Source/OptionsWindowCheckbox.ini

This file was deleted.

Binary file modified Source/loadingscreen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Source/loadingscreenMOW.png
Binary file not shown.
23 changes: 10 additions & 13 deletions zBuildProject.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,35 +10,32 @@ mkdir Build\Resources\MOW

: Copy and create mission files
echo Copy mapselmo.ini...
copy Source\mapselmo.ini Build\Resources\MOW\mapselmo.ini > nul
copy Source\mapselmo.ini Build\mapselmo.ini > nul
echo Copy missionmo.ini...
copy Source\missionmo.ini Build\Resources\MOW\missionmo.ini > nul
copy Source\missionmo.ini Build\missionmo.ini > nul
echo Copy stringtable42.csf...
copy Source\stringtable42ENG.csf Build\stringtable42.csf > nul

echo Copy translated files...
echo Copy language packages files...
copy Source\stringtable42ENG.csf Build\Resources\MOW\stringtable42ENG.csf > nul
copy Source\stringtable42RUS.csf Build\Resources\MOW\stringtable42RUS.csf > nul
copy Source\stringtable42CHN.csf Build\Resources\MOW\stringtable42CHN.csf > nul
copy Source\BattleClient.ini Build\Resources\MOW\BattleClient.ini > nul
copy Source\BattleClientENG.ini Build\Resources\MOW\BattleClientENG.ini > nul
copy Source\BattleClientRUS.ini Build\Resources\MOW\BattleClientRUS.ini > nul
copy Source\BattleClientCHN.ini Build\Resources\MOW\BattleClientCHN.ini > nul

: Copy project files
echo Copy project files...
copy Source\readmeMOW.txt Build\readmeMOW.txt > nul
copy Source\creditsMOW.txt Build\creditsMOW.txt > nul
copy Source\OptionsWindowCheckbox.ini Build\Resources\OptionsWindow.ini > nul
copy Source\loadingscreen.png Build\Resources\MOW\loadingscreen.png > nul
copy Source\loadingscreenMOW.png Build\Resources\MOW\loadingscreenMOW.png > nul
copy Source\OptionsWindowCheckbox.ini Build\Resources\MOW\OptionsWindowCheckbox.ini > nul
copy Source\OptionsWindowDropdown.ini Build\Resources\MOW\OptionsWindowDropdown.ini > nul
copy Source\readmeMOW.txt Build\readmeMOW.txt > nul
copy Source\creditsMOW.txt Build\creditsMOW.txt > nul
copy Source\OptionsWindow.ini Build\Resources\OptionsWindow.ini > nul
copy Source\loadingscreen.png Build\Resources\loadingscreen.png > nul

echo.
Tools\ccmix.exe --create --lmd --game=ra2 --dir "Source\expandmo42" --mix Build\Resources\MOW\expandmo42.mix
Tools\ccmix.exe --create --lmd --game=ra2 --dir "Source\expandmo42" --mix Build\expandmo42.mix
echo MIX archive has been compiled

echo.
echo Project compilation has been finished. Please check Build folder
echo.

timeout /t 5
3 changes: 1 addition & 2 deletions zRunTest.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@echo off
call zBuildProject.bat
xcopy /h /y /c /r /s Build\ _Test\
xcopy /h /y /c /r /s Build\ _Test\ > nul
start "" _Test\Resources\clientxna.exe
pause

0 comments on commit d225790

Please sign in to comment.