Skip to content

Commit

Permalink
re-ordered settings to make them more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
domportera committed Oct 8, 2022
1 parent 41c41d9 commit 7ac3bf9
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions T3/Gui/Windows/SettingsInSettingsWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ public partial class SettingsWindow
{
static readonly UIControlledSetting[] userInterfaceSettings = new UIControlledSetting[]
{
new UIControlledSetting
(
label: "UI Scale",
tooltip: "The global scale of all rendered UI in the application",
guiFunc: (string guiLabel) => CustomComponents.FloatValueEdit(guiLabel, ref UserSettings.Config.UiScaleFactor, 0.01f, 3f)
),

new UIControlledSetting
(
label: "Warn before Lib modifications",
Expand All @@ -39,12 +32,6 @@ public partial class SettingsWindow
guiFunc: (string guiLabel) => ImGui.Checkbox(guiLabel, ref UserSettings.Config.UseJogDialControl)
),

new UIControlledSetting
(
label: "Scroll smoothing",
guiFunc: (string guiLabel) => CustomComponents.FloatValueEdit(guiLabel, ref UserSettings.Config.ScrollSmoothing)
),

new UIControlledSetting
(
label: "Show Graph thumbnails",
Expand All @@ -57,6 +44,26 @@ public partial class SettingsWindow
guiFunc: (string guiLabel) => ImGui.Checkbox(guiLabel, ref UserSettings.Config.SmartGroupDragging)
),

new UIControlledSetting
(
label: "Fullscreen Window Swap",
tooltip: "Swap main and second windows when fullscreen",
guiFunc: (string guiLabel) => ImGui.Checkbox(guiLabel, ref UserSettings.Config.SwapMainAnd2ndWindowsWhenFullscreen)
),

new UIControlledSetting
(
label: "UI Scale",
tooltip: "The global scale of all rendered UI in the application",
guiFunc: (string guiLabel) => CustomComponents.FloatValueEdit(guiLabel, ref UserSettings.Config.UiScaleFactor, 0.01f, 3f)
),

new UIControlledSetting
(
label: "Scroll smoothing",
guiFunc: (string guiLabel) => CustomComponents.FloatValueEdit(guiLabel, ref UserSettings.Config.ScrollSmoothing)
),

new UIControlledSetting
(
label: "Snap strength",
Expand All @@ -74,13 +81,6 @@ public partial class SettingsWindow
label: "Timeline Raster Density",
guiFunc: (string guiLabel) => CustomComponents.FloatValueEdit(guiLabel, ref UserSettings.Config.TimeRasterDensity)
),

new UIControlledSetting
(
label: "Fullscreen Window Swap",
tooltip: "Swap main and second windows when fullscreen",
guiFunc: (string guiLabel) => ImGui.Checkbox(guiLabel, ref UserSettings.Config.SwapMainAnd2ndWindowsWhenFullscreen)
),
};

static readonly UIControlledSetting[] spaceMouseSettings = new UIControlledSetting[]
Expand Down Expand Up @@ -159,14 +159,14 @@ public partial class SettingsWindow
{
new UIControlledSetting
(
label: "Height Connection Zone",
guiFunc: (string guiLabel) => CustomComponents.FloatValueEdit(guiLabel, ref GraphNode.UsableSlotThickness)
label: "Label position",
guiFunc: (string guiLabel) => ImGui.DragFloat2(guiLabel, ref GraphNode.LabelPos)
),

new UIControlledSetting
(
label: "Label position",
guiFunc: (string guiLabel) => ImGui.DragFloat2(guiLabel, ref GraphNode.LabelPos)
label: "Height Connection Zone",
guiFunc: (string guiLabel) => CustomComponents.FloatValueEdit(guiLabel, ref GraphNode.UsableSlotThickness)
),

new UIControlledSetting
Expand Down

0 comments on commit 7ac3bf9

Please sign in to comment.