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,6 +1,6 @@
{
"version": "202106061",
"language": "German",
"language": "Deutsch",
"roulettes": {
"1": "Stufensteigerung",
"2": "Stufe 50/60/70 Dungeons",

View file

@ -32,6 +32,11 @@ namespace DutyContent
private bool _game_active;
private string _game_zone;
//
private const int IntervalGameActive = 50;
private const int IntervalGameExist = 300;
private const int IntervalGameNone = 500;
//
public DcControl()
{
@ -116,11 +121,12 @@ namespace DutyContent
_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) =>
{
UpdateAndCheckProc();
_update_timer.Interval = _game_exist ? _game_active ? 50 : 300 : 500;
_update_timer.Interval = _game_exist ? _game_active ?
IntervalGameActive : IntervalGameExist : IntervalGameNone;
};
_update_timer.Start();
}

View file

@ -191,6 +191,8 @@
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<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>
</PropertyGroup>
</Project>

View file

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