qstcompanion v1.0.3

This commit is contained in:
alydev 2025-12-04 04:40:03 +10:00
parent ca78750ba5
commit ca577ad208
3 changed files with 24 additions and 2 deletions

View file

@ -31,6 +31,8 @@ public class RotationState
private uint? _lastKnownQuestState;
private bool _isSyncOnlyMode;
public uint CurrentStopQuestId
{
get
@ -246,4 +248,22 @@ public class RotationState
}
}
}
public bool IsSyncOnlyMode
{
get
{
lock (_lock)
{
return _isSyncOnlyMode;
}
}
set
{
lock (_lock)
{
_isSyncOnlyMode = value;
}
}
}
}

View file

@ -357,7 +357,8 @@ public class QuestRotationExecutionService : IDisposable
Phase = RotationPhase.InitializingFirstCharacter,
PhaseStartTime = DateTime.Now,
RotationStartTime = DateTime.Now,
HasQuestBeenAccepted = false
HasQuestBeenAccepted = false,
IsSyncOnlyMode = true
};
isRotationActive = true;
log.Information("[QuestRotation] Sync rotation started successfully!");
@ -953,6 +954,7 @@ public class QuestRotationExecutionService : IDisposable
SkipToNextCharacter();
return;
}
log.Information($"[QuestRotation] Level-Only Mode: {currentState.CurrentCharacter} at level {currentLevel}, targeting {stopLevelData.TargetValue}");
}
}
log.Information($"[QuestRotation] {currentState.CurrentCharacter} needs to complete quest {questId}");

View file

@ -613,7 +613,7 @@ public class NewMainWindow : Window, IDisposable
uint rightColor = ImGui.ColorConvertFloat4ToU32(new Vector4(colorSecondary.X * 0.3f, colorSecondary.Y * 0.3f, colorSecondary.Z * 0.3f, 1f));
drawList.AddRectFilledMultiColor(windowPos, windowPos + new Vector2(windowSize.X, height), leftColor, rightColor, rightColor, leftColor);
Vector2 titlePos = windowPos + new Vector2(10f, 7f);
drawList.AddText(titlePos, ImGui.ColorConvertFloat4ToU32(new Vector4(1f, 1f, 1f, 0.9f)), "Questionable Companion V1.0.2");
drawList.AddText(titlePos, ImGui.ColorConvertFloat4ToU32(new Vector4(1f, 1f, 1f, 0.9f)), "Questionable Companion V.1.0.3");
Vector2 minimizeButtonPos = windowPos + new Vector2(windowSize.X - 60f, 3f);
Vector2 minimizeButtonSize = new Vector2(24f, 24f);
if (ImGui.IsMouseHoveringRect(minimizeButtonPos, minimizeButtonPos + minimizeButtonSize))