public override void Draw() { using var tabBar = ImRaii.TabBar("##tabs"); if (!tabBar) { return; } _iconSize = new Vector2(ImGui.GetFrameHeight()); DrawFileTab(); DrawMetaTab(); DrawSwapTab(); DrawMissingFilesTab(); DrawDuplicatesTab(); DrawMaterialChangeTab(); DrawTextureTab(); }
private void DrawTabBar() { ImGui.Dummy(_window._defaultSpace); using var tabBar = ImRaii.TabBar("##ModTabs"); if (!tabBar) { return; } _availableTabs = Tabs.Settings | (_mod.ChangedItems.Count > 0 ? Tabs.ChangedItems : 0) | (_mod.Description.Length > 0 ? Tabs.Description : 0) | (_conflicts.Count > 0 ? Tabs.Conflicts : 0) | (Penumbra.Config.ShowAdvanced ? Tabs.Edit : 0); DrawSettingsTab(); DrawDescriptionTab(); DrawChangedItemsTab(); DrawConflictsTab(); DrawEditModTab(); if (Penumbra.Config.ShowAdvanced && ImGui.TabItemButton("Advanced Editing", ImGuiTabItemFlags.Trailing | ImGuiTabItemFlags.NoTooltip)) { _window.ModEditPopup.ChangeMod(_mod); _window.ModEditPopup.ChangeOption(-1, 0); _window.ModEditPopup.IsOpen = true; } ImGuiUtil.HoverTooltip( "Clicking this will open a new window in which you can\nedit the following things per option for this mod:\n\n" + "\t\t- file redirections\n" + "\t\t- file swaps\n" + "\t\t- metadata manipulations\n" + "\t\t- model materials\n" + "\t\t- duplicates\n" + "\t\t- textures"); }