Beispiel #1
0
            private static void DrawLine(string path, string name)
            {
                ImGui.TableNextColumn();
                ImGuiCustom.CopyOnClickSelectable(path);

                ImGui.TableNextColumn();
                ImGuiCustom.PrintIcon(FontAwesomeIcon.LongArrowAltLeft);
                ImGui.SameLine();
                ImGuiCustom.CopyOnClickSelectable(name);
            }
Beispiel #2
0
            private static void DrawFileLine(FileInfo file, GamePath path)
            {
                ImGui.TableNextColumn();
                ImGuiCustom.CopyOnClickSelectable(path);

                ImGui.TableNextColumn();
                ImGui.PushFont(UiBuilder.IconFont);
                ImGui.TextUnformatted($"{( char )FontAwesomeIcon.LongArrowAltLeft}");
                ImGui.PopFont();

                ImGui.TableNextColumn();
                ImGuiCustom.CopyOnClickSelectable(file.FullName);
            }
Beispiel #3
0
            private void DrawFileSwapTab()
            {
                if (_editMode)
                {
                    DrawFileSwapTabEdit();
                    return;
                }

                if (!Meta.FileSwaps.Any() || !ImGui.BeginTabItem(LabelFileSwapTab))
                {
                    return;
                }

                using var raii = ImGuiRaii.DeferredEnd(ImGui.EndTabItem);

                const ImGuiTableFlags flags = ImGuiTableFlags.SizingFixedFit | ImGuiTableFlags.RowBg | ImGuiTableFlags.ScrollX;

                ImGui.SetNextItemWidth(-1);
                if (!ImGui.BeginTable(LabelFileSwapHeader, 3, flags, AutoFillSize))
                {
                    return;
                }

                raii.Push(ImGui.EndTable);

                foreach (var(source, target) in Meta.FileSwaps)
                {
                    ImGui.TableNextColumn();
                    ImGuiCustom.CopyOnClickSelectable(source);

                    ImGui.TableNextColumn();
                    ImGuiCustom.PrintIcon(FontAwesomeIcon.LongArrowAltRight);

                    ImGui.TableNextColumn();
                    ImGuiCustom.CopyOnClickSelectable(target);

                    ImGui.TableNextRow();
                }
            }