Added support for selecting mission difficulty
This commit is contained in:
@@ -102,6 +102,13 @@ Container@MISSIONBROWSER_PANEL:
|
||||
Height: 35
|
||||
Text: Play
|
||||
Font: Bold
|
||||
DropDownButton@DIFFICULTY_DROPDOWNBUTTON:
|
||||
X: PARENT_RIGHT - 290 - 150
|
||||
Y: 376
|
||||
Width: 140
|
||||
Height: 35
|
||||
Text: Difficulty
|
||||
Font: Bold
|
||||
Container@MISSION_BIN:
|
||||
Children:
|
||||
VqaPlayer@MISSION_VIDEO:
|
||||
|
||||
@@ -98,6 +98,13 @@ Background@MISSIONBROWSER_PANEL:
|
||||
Text: Back
|
||||
Font: Bold
|
||||
Key: escape
|
||||
DropDownButton@DIFFICULTY_DROPDOWNBUTTON:
|
||||
X: PARENT_RIGHT - 140 - 130 - 150
|
||||
Y: PARENT_BOTTOM - 45
|
||||
Width: 140
|
||||
Height: 25
|
||||
Text: Difficulty
|
||||
Font: Bold
|
||||
Background@MISSION_BIN:
|
||||
X: 20
|
||||
Y: 50
|
||||
|
||||
@@ -9,11 +9,21 @@ BeachheadTrigger =
|
||||
CPos.New(137, 104), CPos.New(137, 105), CPos.New(137, 106), CPos.New(136, 106), CPos.New(136, 107)
|
||||
}
|
||||
|
||||
BaseRaidInterval = DateTime.Minutes(3)
|
||||
BaseFrontAttackInterval = DateTime.Minutes(3) + DateTime.Seconds(30)
|
||||
BaseRearAttackInterval = DateTime.Minutes(8)
|
||||
UBoatPatrolDelay = DateTime.Minutes(2) + DateTime.Seconds(30)
|
||||
BaseFrontAttackWpts = { PatrolWpt1.Location, BaseRaidWpt1.Location }
|
||||
Difficulty = Map.Difficulty
|
||||
|
||||
if Difficulty == "Medium" then
|
||||
BaseRaidInterval = DateTime.Minutes(3)
|
||||
BaseFrontAttackInterval = DateTime.Minutes(3) + DateTime.Seconds(30)
|
||||
BaseRearAttackInterval = DateTime.Minutes(8)
|
||||
UBoatPatrolDelay = DateTime.Minutes(2) + DateTime.Seconds(30)
|
||||
BaseFrontAttackWpts = { PatrolWpt1.Location, BaseRaidWpt1.Location }
|
||||
else
|
||||
BaseRaidInterval = DateTime.Minutes(2)
|
||||
BaseFrontAttackInterval = DateTime.Minutes(2) + DateTime.Seconds(30)
|
||||
BaseRearAttackInterval = DateTime.Minutes(5)
|
||||
UBoatPatrolDelay = DateTime.Minutes(2)
|
||||
BaseFrontAttackWpts = { PatrolWpt1.Location }
|
||||
end
|
||||
|
||||
Village = { FarmHouse1, FarmHouse2, FarmHouse3, FarmHouse4, FarmHouse5, FarmHouse6, FarmHouse7, FarmHouse8, FarmHouse9, Church }
|
||||
VillageRaidInterval = DateTime.Minutes(3)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Difficulty = "Medium"
|
||||
Difficulty = Map.Difficulty
|
||||
|
||||
if Difficulty == "Easy" then
|
||||
AttackAtFrameIncrement = DateTime.Seconds(22)
|
||||
|
||||
Reference in New Issue
Block a user