Skip to content

Commit 07d79ae

Browse files
committed
Boats release
1 parent 15cdfaa commit 07d79ae

File tree

4 files changed

+28
-20
lines changed

4 files changed

+28
-20
lines changed

EQTool/Models/PlayerInfo.cs

+12-4
Original file line numberDiff line numberDiff line change
@@ -810,13 +810,21 @@ public bool RunSpeedOverlay
810810
}
811811
}
812812

813-
private bool _BoatSchedule;
814-
public bool BoatSchedule
813+
private bool? _BoatScheduleR;
814+
public bool? BoatScheduleR
815815
{
816-
get => _BoatSchedule;
816+
get => _BoatScheduleR == null ? true : _BoatScheduleR.Value;
817817
set
818818
{
819-
_BoatSchedule = value;
819+
if (value == null)
820+
{
821+
_BoatScheduleR = true;
822+
}
823+
else
824+
{
825+
_BoatScheduleR = value;
826+
}
827+
820828
OnPropertyChanged();
821829
}
822830
}

EQTool/UI/SettingsComponents/SettingsGeneral.xaml

+8-8
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,13 @@
261261
<TabItem Header="Triggers">
262262
<StackPanel Orientation="Vertical" Margin="5, 5, 5, 5">
263263
<StackPanel Orientation="Vertical" Margin="0, 0, 0, 8">
264+
<StackPanel Orientation="Horizontal">
265+
<TextBlock Text="Boat Schedule" VerticalAlignment="Center" FontWeight="Bold" MinWidth="100"/>
266+
<CheckBox IsChecked="{Binding ActivePlayer.Player.BoatScheduleR}" Click="Savesettings" MinWidth="75"></CheckBox>
267+
</StackPanel>
268+
<DockPanel>
269+
<TextBlock MaxWidth="400" TextWrapping="Wrap" Text="Boat times are constantly being tweaked. More boats will be working soon!" />
270+
</DockPanel>
264271
<StackPanel Orientation="Horizontal" ToolTip="This setting will switch to show only spells you care about when raid mode is detected.">
265272
<TextBlock Text="Raid Detection" VerticalAlignment="Center" FontWeight="Bold" MinWidth="100"/>
266273
<CheckBox IsChecked="{Binding RaidModeDetection}" Click="Savesettings"></CheckBox>
@@ -452,14 +459,7 @@
452459
</TabItem>
453460

454461
<TabItem Header="Experimental">
455-
<StackPanel Orientation="Vertical" Margin="5, 5, 5, 5" HorizontalAlignment="Stretch">
456-
<StackPanel Orientation="Horizontal">
457-
<TextBlock Text="Boat Schedule" VerticalAlignment="Center" FontWeight="Bold" MinWidth="100"/>
458-
<CheckBox IsChecked="{Binding ActivePlayer.Player.BoatSchedule}" Click="Savesettings" MinWidth="75"></CheckBox>
459-
</StackPanel>
460-
<DockPanel>
461-
<TextBlock MaxWidth="400" TextWrapping="Wrap" Text="Boat Schedules are NOT currently working. It will be working soon!" />
462-
</DockPanel>
462+
<StackPanel Orientation="Vertical" Margin="5, 5, 5, 5" HorizontalAlignment="Stretch">
463463
<StackPanel Orientation="Horizontal">
464464
<TextBlock Text="Timer Sharing" VerticalAlignment="Center" FontWeight="Bold" MinWidth="100"/>
465465
<CheckBox IsChecked="{Binding ActivePlayer.Player.ShareTimers}" Click="Savesettings" MinWidth="75"></CheckBox>

EQTool/ViewModels/SpellWindowViewModel.cs

+6-6
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public void UpdateSpells(double dt_ms)
274274
item.ColumnVisibility = hidespell ? System.Windows.Visibility.Collapsed : System.Windows.Visibility.Visible;
275275
}
276276

277-
var boats = this._SpellList.Where(a => a.SpellViewModelType == SpellViewModelType.Boat).Cast<BoatViewModel>().ToList();
277+
var boats = _SpellList.Where(a => a.SpellViewModelType == SpellViewModelType.Boat).Cast<BoatViewModel>().ToList();
278278
foreach (var boat in boats)
279279
{
280280
if (BoatScheduleService.SupportdBoats.Contains(boat.Boat.Boat))
@@ -287,7 +287,7 @@ public void UpdateSpells(double dt_ms)
287287
}
288288
}
289289

290-
if (player?.BoatSchedule == false)
290+
if (player?.BoatScheduleR == false)
291291
{
292292
boat.ColumnVisibility = Visibility.Collapsed;
293293
}
@@ -522,16 +522,16 @@ public void TryRemoveUnambiguousSpellSelf(List<string> possiblespellnames)
522522

523523
public void UpdateBoats()
524524
{
525-
var s = this.activePlayer.Player.Server;
525+
var s = activePlayer.Player.Server;
526526
if (s.HasValue)
527527
{
528-
var boatsapi = this.pigParseApi.GetBoatData(s.Value);
528+
var boatsapi = pigParseApi.GetBoatData(s.Value);
529529
appDispatcher.DispatchUI(() =>
530530
{
531-
var boats = this._SpellList.Where(a => a.SpellViewModelType == SpellViewModelType.Boat).Cast<BoatViewModel>().ToList();
531+
var boats = _SpellList.Where(a => a.SpellViewModelType == SpellViewModelType.Boat).Cast<BoatViewModel>().ToList();
532532
foreach (var boat in boatsapi)
533533
{
534-
this.boatScheduleService.UpdateBoatInformation(boat, boats, DateTimeOffset.Now);
534+
boatScheduleService.UpdateBoatInformation(boat, boats, DateTimeOffset.Now);
535535
}
536536
});
537537
}

EQToolShared/Zones.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ static Zones()
108108
StartAnnoucement = "Rack Stonebelly shouts, 'Da Barrel Barge will be here soon soon!'",
109109
AnnouncementToDockInSeconds = 119,
110110
EndPoint = "timorous",
111-
TripTimeInSeconds = 779.25
111+
TripTimeInSeconds = 779.75
112112
});
113113

114114
Boats.Add(new BoatInfo
@@ -119,7 +119,7 @@ static Zones()
119119
StartAnnoucement = string.Empty,
120120
AnnouncementToDockInSeconds = 510,
121121
EndPoint = "oasis",
122-
TripTimeInSeconds = 779.25
122+
TripTimeInSeconds = 778.75
123123
});
124124
Boats.Add(new BoatInfo
125125
{

0 commit comments

Comments
 (0)