コード例 #1
0
        // Absolute size in pixels.
        private void DrawAbsoluteSizeSelector()
        {
            if (ImGuiUtil.DragFloat("##absoluteSize", ref _absoluteSelectorSize, _window._inputTextWidth.X, 1,
                                    Configuration.Constants.MinAbsoluteSize, Configuration.Constants.MaxAbsoluteSize, "%.0f") &&
                _absoluteSelectorSize != Penumbra.Config.ModSelectorAbsoluteSize)
            {
                Penumbra.Config.ModSelectorAbsoluteSize = _absoluteSelectorSize;
                Penumbra.Config.Save();
            }

            ImGui.SameLine();
            ImGuiUtil.LabeledHelpMarker("Mod Selector Absolute Size",
                                        "The minimal absolute size of the mod selector in the mod tab in pixels.");
        }