Esempio n. 1
0
        private void BuildUI()
        {
            if (drawItemSearchWindow)
            {
                drawItemSearchWindow = itemSearchWindow != null && itemSearchWindow.Draw();
                drawConfigWindow     = drawItemSearchWindow && drawConfigWindow && PluginConfig.DrawConfigUI();

                if (drawItemSearchWindow == false)
                {
                    itemSearchWindow?.Dispose();
                    itemSearchWindow = null;
                    drawConfigWindow = false;
                }
            }


            debugStopwatch.Restart();
            if (PluginConfig.EnableFittingRoomSaves || PluginConfig.ShowItemID)
            {
                if (FittingRoomUI == null)
                {
                    FittingRoomUI = new FittingRoomUI(this);
                }
                else
                {
                    if (PluginConfig.EnableFittingRoomSaves)
                    {
                        FittingRoomUI?.Draw();
                    }
                }
            }

#if DEBUG
            ImGui.BeginMainMenuBar();
            if (ImGui.MenuItem("ItemSearch"))
            {
                itemSearchWindow?.Dispose();
                itemSearchWindow     = new ItemSearchWindow(this);
                drawItemSearchWindow = true;
            }

            ImGui.EndMainMenuBar();
#endif
        }
Esempio n. 2
0
 public void OnItemSearchCommand(string command, string args)
 {
     itemSearchWindow?.Dispose();
     itemSearchWindow     = new ItemSearchWindow(this, args);
     drawItemSearchWindow = true;
 }