This commit is contained in:
kshman 2021-06-07 08:48:23 +09:00
parent 022001e1cc
commit 61b4f9c797
4 changed files with 13 additions and 4 deletions

View file

@ -1,8 +1,8 @@
{ {
"version": "202106061", "version": "202106061",
"language": "German", "language": "Deutsch",
"roulettes": { "roulettes": {
"1": "Stufensteigerung", "1": "Stufensteigerung",
"2": "Stufe 50/60/70 Dungeons", "2": "Stufe 50/60/70 Dungeons",
"3": "Hauptszenario", "3": "Hauptszenario",
"4": "Gildengeheiß", "4": "Gildengeheiß",

View file

@ -32,6 +32,11 @@ namespace DutyContent
private bool _game_active; private bool _game_active;
private string _game_zone; private string _game_zone;
//
private const int IntervalGameActive = 50;
private const int IntervalGameExist = 300;
private const int IntervalGameNone = 500;
// //
public DcControl() public DcControl()
{ {
@ -116,11 +121,12 @@ namespace DutyContent
_save_timer.Enabled = false; _save_timer.Enabled = false;
}; };
_update_timer = new System.Timers.Timer() { Interval = 300 }; _update_timer = new System.Timers.Timer() { Interval = IntervalGameExist };
_update_timer.Elapsed += (sender, e) => _update_timer.Elapsed += (sender, e) =>
{ {
UpdateAndCheckProc(); UpdateAndCheckProc();
_update_timer.Interval = _game_exist ? _game_active ? 50 : 300 : 500; _update_timer.Interval = _game_exist ? _game_active ?
IntervalGameActive : IntervalGameExist : IntervalGameNone;
}; };
_update_timer.Start(); _update_timer.Start();
} }

View file

@ -191,6 +191,8 @@
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup> <PropertyGroup>
<PostBuildEvent>if exist "%25APPDATA%25\Advanced Combat Tracker\Plugins\DutyContent" copy $(TargetPath) "%25APPDATA%25\Advanced Combat Tracker\Plugins\DutyContent" /y <PostBuildEvent>if exist "%25APPDATA%25\Advanced Combat Tracker\Plugins\DutyContent" copy $(TargetPath) "%25APPDATA%25\Advanced Combat Tracker\Plugins\DutyContent" /y
rem if exist "D:\FF14K\actk\Plugins\DutyContent" copy $(TargetPath) "D:\FF14K\actk\Plugins\DutyContent" /y
</PostBuildEvent> </PostBuildEvent>
</PropertyGroup> </PropertyGroup>
</Project> </Project>

View file

@ -386,6 +386,7 @@ namespace DutyContent.Tab
_stq_type = _stq_type =
(zone_id == 920) ? DcContent.SaveTheQueenType.Bozja : (zone_id == 920) ? DcContent.SaveTheQueenType.Bozja :
(zone_id == 921) ? DcContent.SaveTheQueenType.Zadnor :
DcContent.SaveTheQueenType.No; DcContent.SaveTheQueenType.No;
if (chkShowDebug.Checked) if (chkShowDebug.Checked)