fix bugs
This commit is contained in:
parent
022001e1cc
commit
61b4f9c797
4 changed files with 13 additions and 4 deletions
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"version": "202106061",
|
||||
"language": "German",
|
||||
"language": "Deutsch",
|
||||
"roulettes": {
|
||||
"1": "Stufensteigerung",
|
||||
"1": "Stufensteigerung",
|
||||
"2": "Stufe 50/60/70 Dungeons",
|
||||
"3": "Hauptszenario",
|
||||
"4": "Gildengeheiß",
|
||||
|
|
10
DcControl.cs
10
DcControl.cs
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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>
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue