private readonly EditorWindow _editorWindow;
private readonly List<GatheringLocationContext> _gatheringLocations = [];
+ private EClassJob _currentClassJob;
public RendererPlugin(IDalamudPluginInterface pluginInterface, IClientState clientState,
ICommandManager commandManager, IDataManager dataManager, ITargetManager targetManager, IChatGui chatGui,
_editorWindow = new EditorWindow(this, _editorCommands, dataManager, targetManager, clientState, objectTable)
{ IsOpen = true };
_windowSystem.AddWindow(_editorWindow);
+ _currentClassJob = (EClassJob?)_clientState.LocalPlayer?.ClassJob.Id ?? EClassJob.Adventurer;
_pluginInterface.GetIpcSubscriber<object>("Questionable.ReloadData")
.Subscribe(Reload);
private void TerritoryChanged(ushort territoryId) => Redraw();
- private void ClassJobChanged(uint classJobId) => Redraw((EClassJob)classJobId);
+ private void ClassJobChanged(uint classJobId)
+ {
+ _currentClassJob = (EClassJob)classJobId;
+ Redraw(_currentClassJob);
+ }
- internal void Redraw() => Redraw((EClassJob)_clientState.LocalPlayer!.ClassJob.Id);
+ internal void Redraw() => Redraw(_currentClassJob);
private void Redraw(EClassJob classJob)
{
public EditorWindow(RendererPlugin plugin, EditorCommands editorCommands, IDataManager dataManager,
ITargetManager targetManager, IClientState clientState, IObjectTable objectTable)
- : base("Gathering Path Editor###QuestionableGatheringPathEditor")
+ : base("Gathering Path Editor###QuestionableGatheringPathEditor",
+ ImGuiWindowFlags.NoFocusOnAppearing | ImGuiWindowFlags.NoNavFocus)
{
_plugin = plugin;
_editorCommands = editorCommands;
{
MinimumSize = new Vector2(300, 300),
};
+
+ RespectCloseHotkey = false;
ShowCloseButton = false;
+ AllowPinning = false;
+ AllowClickthrough = false;
}
public override void Update()