Skip to content

Commit f204559

Browse files
authored
Merge pull request #447 from wbonbon/master
added a checkbox to toggle sharlayan-resource
2 parents 00e01da + a25dcc3 commit f204559

File tree

11 files changed

+35
-5
lines changed

11 files changed

+35
-5
lines changed

source/@MasterVersion.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v10.4.9
1+
v10.4.10

source/ACT.Hojoring.Common/Version.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
using System.Reflection;
22

3-
[assembly: AssemblyVersion("10.4.0.9")]
4-
[assembly: AssemblyFileVersion("10.4.0.9")]
3+
[assembly: AssemblyVersion("10.4.0.10")]
4+
[assembly: AssemblyFileVersion("10.4.0.10")]

source/ACT.SpecialSpellTimer/ACT.SpecialSpellTimer.Core/Config/Settings.Defaults.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public partial class Settings :
4747
{ nameof(Settings.EnableMultiLineMaching), false },
4848
{ nameof(Settings.MaxFPS), 30 },
4949
{ nameof(Settings.IsEnabledPolon), false },
50+
{ nameof(Settings.IsUseCustomSharlayan), false },
5051

5152
{ nameof(Settings.LPSViewVisible), false },
5253
{ nameof(Settings.LPSViewX), 0 },

source/ACT.SpecialSpellTimer/ACT.SpecialSpellTimer.Core/Config/Settings.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,13 @@ public bool IsEnabledPolon
576576
}
577577
}
578578

579+
private bool isUseCustomSharlayan = false;
580+
public bool IsUseCustomSharlayan
581+
{
582+
get => this.isUseCustomSharlayan;
583+
set => this.SetProperty(ref this.isUseCustomSharlayan, value);
584+
}
585+
579586
private void PolonTimer_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
580587
{
581588
lock (this.polonTimer)
@@ -802,6 +809,7 @@ public void Load()
802809
{
803810
instance = data;
804811
instance.isLoaded = true;
812+
FFXIV.Framework.Config.Instance.IsUseCustomSharlayan = instance.IsUseCustomSharlayan;
805813
}
806814
}
807815
}

source/ACT.SpecialSpellTimer/ACT.SpecialSpellTimer.Core/Config/Views/OptionsMiscView.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,6 @@
6767
<StackPanel>
6868
<CheckBox Margin="0 15 0 0" Content="{DynamicResource Options_MinimizeOnStart}" IsChecked="{Binding Config.IsMinimizeOnStart, Mode=TwoWay}" />
6969
<CheckBox Margin="0 10 0 0" Content="{DynamicResource Options_Polon}" IsChecked="{Binding Config.IsEnabledPolon, Mode=TwoWay}" />
70-
</StackPanel>
70+
<CheckBox Margin="0 10 0 0" Content="{DynamicResource Options_use_custom_sharlayan}" IsChecked="{Binding Config.IsUseCustomSharlayan, Mode=TwoWay}" />
71+
</StackPanel>
7172
</UserControl>

source/ACT.SpecialSpellTimer/ACT.SpecialSpellTimer.Core/resources/strings/Strings.SpeSpe.en-US.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ This trigger is enabled when "HEALER1" contains "me (player)".</system:String>
230230

231231
<system:String x:Key="Options_MinimizeOnStart">Minimize on start ACT</system:String>
232232
<system:String x:Key="Options_Polon">Sounds "Polon♪" every 15 seconds</system:String>
233+
<system:String x:Key="Options_use_custom_sharlayan">Using Custom Sharlayan resource (ACT must be restart to apply)</system:String>
233234

234235
<system:String x:Key="Info_Placeholders">Placeholders</system:String>
235236
<system:String x:Key="Info_Triggers">Active triggers</system:String>

source/ACT.SpecialSpellTimer/ACT.SpecialSpellTimer.Core/resources/strings/Strings.SpeSpe.ja-JP.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ HEALER1 に me(自分)が含まれる場合にこのトリガが有効にな
230230

231231
<system:String x:Key="Options_MinimizeOnStart">ACTを最小化して起動する</system:String>
232232
<system:String x:Key="Options_Polon">15秒ごとにポロン♪と鳴らす</system:String>
233+
<system:String x:Key="Options_use_custom_sharlayan">独自のsharlayan resourceを使う (適用するにはACTの再起動が必要です)</system:String>
233234

234235
<system:String x:Key="Info_Placeholders">有効なプレースホルダ</system:String>
235236
<system:String x:Key="Info_Triggers">アクティブなトリガ</system:String>

source/ACT.SpecialSpellTimer/ACT.SpecialSpellTimer.Core/resources/strings/Strings.SpeSpe.ko-KR.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@
228228

229229
<system:String x:Key="Options_MinimizeOnStart">ACT 시작 시 최소화</system:String>
230230
<system:String x:Key="Options_Polon">15초마다 "포롱♪" 알림음 재생</system:String>
231+
<system:String x:Key="Options_use_custom_sharlayan">Using Custom Sharlayan resource (ACT must be restart to apply)</system:String>
231232

232233
<system:String x:Key="Info_Placeholders">대체식</system:String>
233234
<system:String x:Key="Info_Triggers">활성화된 트리거</system:String>

source/ACT.SpecialSpellTimer/ACT.SpecialSpellTimer.Core/resources/strings/Strings.SpeSpe.zh-CN.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@
228228

229229
<system:String x:Key="Options_MinimizeOnStart">启动ACT时最小化</system:String>
230230
<system:String x:Key="Options_Polon">15秒"Polon♪"一下</system:String>
231+
<system:String x:Key="Options_use_custom_sharlayan">Using Custom Sharlayan resource (ACT must be restart to apply)</system:String>
231232

232233
<system:String x:Key="Info_Placeholders">占位符</system:String>
233234
<system:String x:Key="Info_Triggers">活动触发器</system:String>

source/FFXIV.Framework/FFXIV.Framework/Config.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,14 @@ public bool IsEnabledSharlayan
359359
set => this.SetProperty(ref this.isEnabledSharlayan, value);
360360
}
361361

362+
private bool isUseCustomSharlayan = true;
363+
364+
public bool IsUseCustomSharlayan
365+
{
366+
get => this.isUseCustomSharlayan;
367+
set => this.SetProperty(ref this.isUseCustomSharlayan, value);
368+
}
369+
362370
private bool isSimplifiedInCombat = false;
363371

364372
public bool IsSimplifiedInCombat

0 commit comments

Comments
 (0)