Skip to content

Commit

Permalink
Add dropdown to language selection and add russian translation
Browse files Browse the repository at this point in the history
  • Loading branch information
MahBoiDeveloper committed Dec 2, 2023
1 parent 35e9444 commit f53ec13
Show file tree
Hide file tree
Showing 6 changed files with 231 additions and 14 deletions.
15 changes: 9 additions & 6 deletions Source/BattleClientRUS.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,34 +20,37 @@ XNA=XNULL
CD=2
BuildOffAlly=yes
Scenario=FFA02.MAP
Description=Flipped Allied 02: EAGLE SKY HIGH
Description=Перевёрнутый Альянс 02: ОРЛИНАЯ ВЫСОТА
Summary=MAP:DESCS12
SideName=Soviets
FinalMovie=
Side=0
Act=1
LongDescription=Flipped Allied Operation : Eagle Sky High@Location: Colorado Springs, U.S.A. - Player: Russia@@ The Colorado Spring holds major source of the american air superiority which is the air acadamy chapel, If we could capture the air acadamy and the airbase it will cripple the allied power and aid our cause for this glorious invasion.@@ Objective 1: Sabatoge US Communications.@ Objective 2: Clear the training camp.@ Objective 3: Capture the Air Academy and Allied Base.
LongDescription=Перевёрнутая кампания Альянса - Операция: Орлиная Высота@Место: Колорадо-Спрингс, США - Игрок: Россия@@В Колорадо-Спрингс располагается американская база и академия ВВС, которые являются источником воздушного превосходства США. Если мы захватим Академию и авиабазу, то это пошатнёт мощь Альянса и поможет нам во вторжении.@@ Задача 1: Отключите связь базы США.@ Задача 2: Зачистите тренировочный лагерь.@ Задача 3: Захватите Академию ВВС и базу Альянса.
;Flipped Allied Operation : Eagle Sky High@Location: Colorado Springs, U.S.A. - Player: Russia@@The Colorado Spring holds major source of the american air superiority which is the air acadamy chapel, If we could capture the air acadamy and the airbase it will cripple the allied power and aid our cause for this glorious invasion.@@-Objective 1: Sabatoge US Communications.@-Objective 2: Clear the training camp.@-Objective 3: Capture the Air Academy and Allied Base.

[FELIB] ; 01 - Scorpius Liberta
CD=2
BuildOffAlly=yes
Scenario=FELIB.MAP
FinalMovie=
Description=SC 01: SCORPIUS LIBERTA
Description=Яч. Скорп. 01: СКОРПИУС ЛИБЕРТА
Summary=MAP:DESCTACI
Side=0
SideName=Epsilon
Act=2
LongDescription=Scorpion Cell - Mission 1 - Operation: Scorpius Liberta@Location: El Alamein, Africa - Player: Scorpion Cell@@With Epsilon's failure of conquering Moscow that ended in Yuri's and his proselyte's death, the Scorpion Cell retreated into the shadows. Now the Russian bear has set it's sights on Africa to hunt down the Cell, unaware of a battle unfolding in one of their launch facilities that threaten the Cell's settlements.@@ Objective 1: Follow the objectives given during the mission.
LongDescription=Ячейка Скорпион, Хроники - Миссия 1 - Операция: Скорпион Освобождённый@Место: Эль-Аламейн, Африка - Игрок: Ячейка Скорпион@@После провала попытки Эпсилон завоевать Москву, закончившейся гибелью Юрия и его Обращённого, Ячейка Скорпион ушла в тень. Теперь Русский Медведь нацелился на Африку, чтобы выследить Ячейку, не подозревая о битве, разворачивающейся на одном из их ракетных комплексов, который угрожает местному населению.@@ Задача 1: Следуйте указаниям, полученным в ходе миссии.
;Rashidi's Cell Special Operation: Scorpius Liberta@Location: El Alamein, Africa - Player: Scorpion Cell@@With Epsilon's failure of conquering Moscow that ended in Yuri's and his proselyte's death, the Scorpion Cell retreated into the shadows. Now the Russian bear has set it's sights on Africa to hunt down the Cell, unaware of a battle unfolding in one of their launch facilities that threaten the Cell's settlements.@@ Objective 1: Follow the objectives given during the mission.

[FEOPPRES] ; 02 - Crimson Oppressors
CD=2
BuildOffAlly=yes
Scenario=FEOPPRES.MAP
FinalMovie=
Description=SC 02: CRIMSON OPPRESSORS
Description=Яч. Скорп. 02: КРАСНЫЕ УГНЕТАТЕЛИ
Summary=MAP:DESCTACI
Side=0
SideName=Epsilon
Act=2
LongDescription=Scorpion Cell - Mission 2 - Operation: Crimson Oppressors@Location: Alexandria, Africa - Player: Scorpion Cell@@With renewed spirits in the people, north Africa has rebelled against the Soviets. In their mission to liberate Egypt, Scorpion Cell plans to reclaim Alexandria in hopes of cutting off the Soviets from their comrades in Europe, only to find a new threat on the horizon.@@ Objective 1: Breach the defense line guarding the Alexandria Outskirts.@ Objective 2: Hold the area until the MCV taskforce arrives.@ Objective 3: Liberate Alexandria from Soviet occupation.@ Objective 4: Follow any further instructions.
LongDescription=Ячейка Скорпион, Хроники - Миссия 2 - Операция: Красные Угнетатели@Место: Александрия, Африка - Игрок: Ячейка Скорпион@@Северная Африка восстала против Советов после поднятия морального духа народа. В своей миссии по освобождению Египта Ячейка Скорпион планирует вернуть Александрию в надежде отсечения Советов от их товарищей в Европе, однако обнаруживает новую угрозу на горизонте.@@ Задача 1: Пробейте линию обороны окраин Александрии.@ Задача 2: Обороняйтесь до прибытия МСЦ.@ Задача 3: Освободите Александрию от советской оккупации.@ Задача 4: Следуйте дальнейшим указаниям.
;Scorpion Cell - Mission 2 - Operation: Crimson Oppressors@Location: Alexandria, Africa - Player: Scorpion Cell@@With renewed spirits in the people, north Africa has rebelled against the Soviets. In their mission to liberate Egypt, Scorpion Cell plans to reclaim Alexandria in hopes of cutting off the Soviets from their comrades in Europe, only to find a new threat on the horizon.@@ Objective 1: Breach the defense line guarding the Alexandria Outskirts.@ Objective 2: Hold the area until the MCV taskforce arrives.@ Objective 3: Liberate Alexandria from Soviet occupation.@ Objective 4: Follow any further instructions.
5 changes: 2 additions & 3 deletions Source/OptionsWindow.ini → Source/OptionsWindowCheckbox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@ DistanceFromBottomBorder=-8
[DisplayOptionsPanel]
Size=552,342



[DisplayOptionsPanelExtraControls]
0=chkEnableMentalOmegaWorld:CustomSettingFileCheckBox

Expand All @@ -93,10 +91,11 @@ 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

[ddClientResolution]
PreferredItemLabel=
Expand Down
212 changes: 212 additions & 0 deletions Source/OptionsWindowDropdown.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
; Options Window

[OptionsWindow]
Size=576,435

; ********** Original Style Borders

[ExtraControls]
0=rabt:XNAExtraPanel
1=rabb:XNAExtraPanel
2=rabl:XNAExtraPanel
3=rabr:XNAExtraPanel
4=ractl:XNAExtraPanel
5=ractr:XNAExtraPanel
6=racbl:XNAExtraPanel
7=racbr:XNAExtraPanel
8=btnSoundtrack:XNALinkButton
9=btnCredits:XNALinkButton

[rabt]
Location=0,-8
BackgroundTexture=rabt.png
DrawMode=Stretched
Size=0,9
FillWidth=0

[rabb]
Location=0,999
BackgroundTexture=rabb.png
DrawMode=Stretched
Size=0,9
FillWidth=0
DistanceFromBottomBorder=-8

[rabl]
Location=-8,0
BackgroundTexture=rabl.png
DrawMode=Stretched
Size=9,0
FillHeight=0

[rabr]
Location=999,0
BackgroundTexture=rabr.png
DrawMode=Stretched
Size=9,0
FillHeight=0
DistanceFromRightBorder=-8

[ractl]
Location=-8,-8
BackgroundTexture=ractl.png
Size=9,9

[ractr]
Location=999,-8
BackgroundTexture=ractr.png
Size=9,9
DistanceFromRightBorder=-8

[racbl]
Location=-8,999
BackgroundTexture=racbl.png
Size=9,9
DistanceFromBottomBorder=-8

[racbr]
Location=999,999
BackgroundTexture=racbr.png
Size=9,9
DistanceFromRightBorder=-8
DistanceFromRightBorder=-8
DistanceFromBottomBorder=-8

[DisplayOptionsPanel]
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

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

[ddSelectLanguage]
Location=370,130
Size=170,21
ToolTip=Select fanmade missions language.
Items=English,Russian,Chineese
DefaultValue=0
CheckFilePresence=yes
ResetUnselectableItem=yes
ForceApplyUnselectableItem=no
RestartRequired=true
; English
Item0File0=Resources/MOW/BattleClientENG.ini,INI/BattleClient.ini
Item0File1=Resources/MOW/stringtable42ENG.csf,stringtable42.csf
; Russian
Item1File0=Resources/MOW/BattleClientRUS.ini,INI/BattleClient.ini
Item1File1=Resources/MOW/stringtable42RUS.csf,stringtable42.csf
; Chineese
Item2File0=Resources/MOW/BattleClientCHN.ini,INI/BattleClient.ini
Item2File1=Resources/MOW/stringtable42CHN.csf,stringtable42.csf

[ddClientResolution]
PreferredItemLabel=

[AudioOptionsPanel]
Size=552,342

[AudioOptionsPanelExtraControls]
0=chkGlobalSoundtrack:FileSettingCheckBox

[chkGlobalSoundtrack]
Location=276,118
Text=Global Soundtrack
ToolTip=Enables the entire soundtrack for every faction.
File0=Resources\thememo.ini,thememo.ini
Checked=False

[GameOptionsPanel]
Size=552,342

[GameOptionsPanelExtraControls]
0=chkSavedGameFixes:FileSettingCheckBox
1=lblSavedGameFixes:XNALabel

[chkSavedGameFixes]
Location=276,54
Text=Extra Saved Game Fixes
ToolTip=Enables experimental map lighting and Build Off Ally Bases fixes for campaign saved game files.
File0=Resources\savefixmo.dll,savefixmo.dll
Checked=False

[lblSavedGameFixes]
Location=276,84
BackgroundTexture=rabt.png
DrawMode=Stretched
Size=10,10
Text=* These fixes only work for games @saved and loaded after enabling them.

[CnCNetOptionsPanel]
Size=552,342

[UpdaterOptionsPanel]
Size=552,342

[tabControl]
Location=12,12
RemoveTabIndex5=true

[chkWriteInstallPathToRegistry]
Text=Write game install path to Windows@Registry (makes it possible to join@other games' game rooms on CnCNet)
[chkPersistentMode]
Text=Stay connected outside of CnCNet
[chkDiscordIntegration]
Text=Show game info in Discord status
[chkAllowGameInvitesFromFriendsOnly]
Text=Allow game invites from friends only
[ComponentsPanel]
Size=576,342
[btnComponents]
Enabled=no
Visible=0
[btnSoundtrack]
Location=472,12
IdleTexture=92pxbtn.png
HoverTexture=92pxbtn_c.png
Size=92,25
URL=http://mentalomega.com/soundtrack
Text=Soundtrack
[btnSave]
Location=12,400
[btnCredits]
Location=242,400
IdleTexture=92pxbtn.png
HoverTexture=92pxbtn_c.png
Size=92,25
URL=http://mentalomega.com/credits
Text=Credits
[btnCancel]
Location=472,400
Binary file modified Source/stringtable42RUS.csf
Binary file not shown.
12 changes: 7 additions & 5 deletions zBuildProject.bat
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ copy Source\BattleClientCHN.ini Build\Resources\MOW\BattleClientCHN.ini > nul

: Copy project files
echo Copy project files...
copy Source\creditsMOW.txt Build\creditsMOW.txt > nul
copy Source\readmeMOW.txt Build\readmeMOW.txt > nul
copy Source\OptionsWindow.ini Build\Resources\OptionsWindow.ini > nul
copy Source\loadingscreenMOW.png Build\Resources\MOW\loadingscreenMOW.png > nul
copy Source\loadingscreen.png Build\Resources\MOW\loadingscreen.png > nul
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

echo.
Tools\ccmix.exe --create --lmd --game=ra2 --dir "Source\expandmo42" --mix Build\Resources\MOW\expandmo42.mix
Expand Down
1 change: 1 addition & 0 deletions zRunTest.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
call zBuildProject.bat
xcopy /h /y /c /r /s Build\ _Test\
start "" _Test\Resources\clientxna.exe
pause

0 comments on commit f53ec13

Please sign in to comment.