From 98104b6e92deb7aaa41f5ca95854fca32cb5b437 Mon Sep 17 00:00:00 2001 From: Victor Chelaru Date: Wed, 7 Jan 2026 05:41:33 -0700 Subject: [PATCH 1/2] Removed duplicate dock call --- .../src/21-Customizing-Gum-UI/DungeonSlime/UI/OptionsSlider.cs | 1 - .../src/22-Snake-Game-Mechanics/DungeonSlime/UI/OptionsSlider.cs | 1 - .../src/23-Completing-The-Game/DungeonSlime/UI/OptionsSlider.cs | 1 - .../src/24-Shaders/DungeonSlime/UI/OptionsSlider.cs | 1 - .../src/25-Packaging-Game/DungeonSlime/UI/OptionsSlider.cs | 1 - .../src/26-Publish-To-Itch/DungeonSlime/UI/OptionsSlider.cs | 1 - .../src/27-Conclusion/DungeonSlime/UI/OptionsSlider.cs | 1 - 7 files changed, 7 deletions(-) diff --git a/Tutorials/learn-monogame-2d/src/21-Customizing-Gum-UI/DungeonSlime/UI/OptionsSlider.cs b/Tutorials/learn-monogame-2d/src/21-Customizing-Gum-UI/DungeonSlime/UI/OptionsSlider.cs index 53d6ee94..7861ab4e 100644 --- a/Tutorials/learn-monogame-2d/src/21-Customizing-Gum-UI/DungeonSlime/UI/OptionsSlider.cs +++ b/Tutorials/learn-monogame-2d/src/21-Customizing-Gum-UI/DungeonSlime/UI/OptionsSlider.cs @@ -85,7 +85,6 @@ public OptionsSlider(TextureAtlas atlas) offBackground.TextureWidth = offBackgroundRegion.Width; offBackground.Width = 28f; offBackground.WidthUnits = DimensionUnitType.Absolute; - offBackground.Dock(Gum.Wireframe.Dock.Left); innerContainer.AddChild(offBackground); TextureRegion middleBackgroundRegion = atlas.GetRegion("slider-middle-background"); diff --git a/Tutorials/learn-monogame-2d/src/22-Snake-Game-Mechanics/DungeonSlime/UI/OptionsSlider.cs b/Tutorials/learn-monogame-2d/src/22-Snake-Game-Mechanics/DungeonSlime/UI/OptionsSlider.cs index 53d6ee94..7861ab4e 100644 --- a/Tutorials/learn-monogame-2d/src/22-Snake-Game-Mechanics/DungeonSlime/UI/OptionsSlider.cs +++ b/Tutorials/learn-monogame-2d/src/22-Snake-Game-Mechanics/DungeonSlime/UI/OptionsSlider.cs @@ -85,7 +85,6 @@ public OptionsSlider(TextureAtlas atlas) offBackground.TextureWidth = offBackgroundRegion.Width; offBackground.Width = 28f; offBackground.WidthUnits = DimensionUnitType.Absolute; - offBackground.Dock(Gum.Wireframe.Dock.Left); innerContainer.AddChild(offBackground); TextureRegion middleBackgroundRegion = atlas.GetRegion("slider-middle-background"); diff --git a/Tutorials/learn-monogame-2d/src/23-Completing-The-Game/DungeonSlime/UI/OptionsSlider.cs b/Tutorials/learn-monogame-2d/src/23-Completing-The-Game/DungeonSlime/UI/OptionsSlider.cs index 53d6ee94..7861ab4e 100644 --- a/Tutorials/learn-monogame-2d/src/23-Completing-The-Game/DungeonSlime/UI/OptionsSlider.cs +++ b/Tutorials/learn-monogame-2d/src/23-Completing-The-Game/DungeonSlime/UI/OptionsSlider.cs @@ -85,7 +85,6 @@ public OptionsSlider(TextureAtlas atlas) offBackground.TextureWidth = offBackgroundRegion.Width; offBackground.Width = 28f; offBackground.WidthUnits = DimensionUnitType.Absolute; - offBackground.Dock(Gum.Wireframe.Dock.Left); innerContainer.AddChild(offBackground); TextureRegion middleBackgroundRegion = atlas.GetRegion("slider-middle-background"); diff --git a/Tutorials/learn-monogame-2d/src/24-Shaders/DungeonSlime/UI/OptionsSlider.cs b/Tutorials/learn-monogame-2d/src/24-Shaders/DungeonSlime/UI/OptionsSlider.cs index 53d6ee94..7861ab4e 100644 --- a/Tutorials/learn-monogame-2d/src/24-Shaders/DungeonSlime/UI/OptionsSlider.cs +++ b/Tutorials/learn-monogame-2d/src/24-Shaders/DungeonSlime/UI/OptionsSlider.cs @@ -85,7 +85,6 @@ public OptionsSlider(TextureAtlas atlas) offBackground.TextureWidth = offBackgroundRegion.Width; offBackground.Width = 28f; offBackground.WidthUnits = DimensionUnitType.Absolute; - offBackground.Dock(Gum.Wireframe.Dock.Left); innerContainer.AddChild(offBackground); TextureRegion middleBackgroundRegion = atlas.GetRegion("slider-middle-background"); diff --git a/Tutorials/learn-monogame-2d/src/25-Packaging-Game/DungeonSlime/UI/OptionsSlider.cs b/Tutorials/learn-monogame-2d/src/25-Packaging-Game/DungeonSlime/UI/OptionsSlider.cs index 86d03281..cfcc80e2 100644 --- a/Tutorials/learn-monogame-2d/src/25-Packaging-Game/DungeonSlime/UI/OptionsSlider.cs +++ b/Tutorials/learn-monogame-2d/src/25-Packaging-Game/DungeonSlime/UI/OptionsSlider.cs @@ -85,7 +85,6 @@ public OptionsSlider(TextureAtlas atlas) offBackground.TextureWidth = offBackgroundRegion.Width; offBackground.Width = 28f; offBackground.WidthUnits = DimensionUnitType.Absolute; - offBackground.Dock(Gum.Wireframe.Dock.Left); innerContainer.AddChild(offBackground); TextureRegion middleBackgroundRegion = atlas.GetRegion("slider-middle-background"); diff --git a/Tutorials/learn-monogame-2d/src/26-Publish-To-Itch/DungeonSlime/UI/OptionsSlider.cs b/Tutorials/learn-monogame-2d/src/26-Publish-To-Itch/DungeonSlime/UI/OptionsSlider.cs index 86d03281..cfcc80e2 100644 --- a/Tutorials/learn-monogame-2d/src/26-Publish-To-Itch/DungeonSlime/UI/OptionsSlider.cs +++ b/Tutorials/learn-monogame-2d/src/26-Publish-To-Itch/DungeonSlime/UI/OptionsSlider.cs @@ -85,7 +85,6 @@ public OptionsSlider(TextureAtlas atlas) offBackground.TextureWidth = offBackgroundRegion.Width; offBackground.Width = 28f; offBackground.WidthUnits = DimensionUnitType.Absolute; - offBackground.Dock(Gum.Wireframe.Dock.Left); innerContainer.AddChild(offBackground); TextureRegion middleBackgroundRegion = atlas.GetRegion("slider-middle-background"); diff --git a/Tutorials/learn-monogame-2d/src/27-Conclusion/DungeonSlime/UI/OptionsSlider.cs b/Tutorials/learn-monogame-2d/src/27-Conclusion/DungeonSlime/UI/OptionsSlider.cs index 86d03281..cfcc80e2 100644 --- a/Tutorials/learn-monogame-2d/src/27-Conclusion/DungeonSlime/UI/OptionsSlider.cs +++ b/Tutorials/learn-monogame-2d/src/27-Conclusion/DungeonSlime/UI/OptionsSlider.cs @@ -85,7 +85,6 @@ public OptionsSlider(TextureAtlas atlas) offBackground.TextureWidth = offBackgroundRegion.Width; offBackground.Width = 28f; offBackground.WidthUnits = DimensionUnitType.Absolute; - offBackground.Dock(Gum.Wireframe.Dock.Left); innerContainer.AddChild(offBackground); TextureRegion middleBackgroundRegion = atlas.GetRegion("slider-middle-background"); From 7576b85d2ece819a8bc22c566af0edcfc3711c96 Mon Sep 17 00:00:00 2001 From: Victor Chelaru Date: Wed, 7 Jan 2026 05:49:37 -0700 Subject: [PATCH 2/2] Removed another unnecessary dock call --- .../src/21-Customizing-Gum-UI/DungeonSlime/UI/OptionsSlider.cs | 1 - .../src/22-Snake-Game-Mechanics/DungeonSlime/UI/OptionsSlider.cs | 1 - .../src/23-Completing-The-Game/DungeonSlime/UI/OptionsSlider.cs | 1 - .../src/24-Shaders/DungeonSlime/UI/OptionsSlider.cs | 1 - .../src/25-Packaging-Game/DungeonSlime/UI/OptionsSlider.cs | 1 - .../src/26-Publish-To-Itch/DungeonSlime/UI/OptionsSlider.cs | 1 - .../src/27-Conclusion/DungeonSlime/UI/OptionsSlider.cs | 1 - 7 files changed, 7 deletions(-) diff --git a/Tutorials/learn-monogame-2d/src/21-Customizing-Gum-UI/DungeonSlime/UI/OptionsSlider.cs b/Tutorials/learn-monogame-2d/src/21-Customizing-Gum-UI/DungeonSlime/UI/OptionsSlider.cs index 7861ab4e..2900d983 100644 --- a/Tutorials/learn-monogame-2d/src/21-Customizing-Gum-UI/DungeonSlime/UI/OptionsSlider.cs +++ b/Tutorials/learn-monogame-2d/src/21-Customizing-Gum-UI/DungeonSlime/UI/OptionsSlider.cs @@ -91,7 +91,6 @@ public OptionsSlider(TextureAtlas atlas) // Create the middle track portion of the slider NineSliceRuntime middleBackground = new NineSliceRuntime(); - middleBackground.Dock(Gum.Wireframe.Dock.FillVertically); middleBackground.Texture = middleBackgroundRegion.Texture; middleBackground.TextureAddress = TextureAddress.Custom; middleBackground.TextureHeight = middleBackgroundRegion.Height; diff --git a/Tutorials/learn-monogame-2d/src/22-Snake-Game-Mechanics/DungeonSlime/UI/OptionsSlider.cs b/Tutorials/learn-monogame-2d/src/22-Snake-Game-Mechanics/DungeonSlime/UI/OptionsSlider.cs index 7861ab4e..2900d983 100644 --- a/Tutorials/learn-monogame-2d/src/22-Snake-Game-Mechanics/DungeonSlime/UI/OptionsSlider.cs +++ b/Tutorials/learn-monogame-2d/src/22-Snake-Game-Mechanics/DungeonSlime/UI/OptionsSlider.cs @@ -91,7 +91,6 @@ public OptionsSlider(TextureAtlas atlas) // Create the middle track portion of the slider NineSliceRuntime middleBackground = new NineSliceRuntime(); - middleBackground.Dock(Gum.Wireframe.Dock.FillVertically); middleBackground.Texture = middleBackgroundRegion.Texture; middleBackground.TextureAddress = TextureAddress.Custom; middleBackground.TextureHeight = middleBackgroundRegion.Height; diff --git a/Tutorials/learn-monogame-2d/src/23-Completing-The-Game/DungeonSlime/UI/OptionsSlider.cs b/Tutorials/learn-monogame-2d/src/23-Completing-The-Game/DungeonSlime/UI/OptionsSlider.cs index 7861ab4e..2900d983 100644 --- a/Tutorials/learn-monogame-2d/src/23-Completing-The-Game/DungeonSlime/UI/OptionsSlider.cs +++ b/Tutorials/learn-monogame-2d/src/23-Completing-The-Game/DungeonSlime/UI/OptionsSlider.cs @@ -91,7 +91,6 @@ public OptionsSlider(TextureAtlas atlas) // Create the middle track portion of the slider NineSliceRuntime middleBackground = new NineSliceRuntime(); - middleBackground.Dock(Gum.Wireframe.Dock.FillVertically); middleBackground.Texture = middleBackgroundRegion.Texture; middleBackground.TextureAddress = TextureAddress.Custom; middleBackground.TextureHeight = middleBackgroundRegion.Height; diff --git a/Tutorials/learn-monogame-2d/src/24-Shaders/DungeonSlime/UI/OptionsSlider.cs b/Tutorials/learn-monogame-2d/src/24-Shaders/DungeonSlime/UI/OptionsSlider.cs index 7861ab4e..2900d983 100644 --- a/Tutorials/learn-monogame-2d/src/24-Shaders/DungeonSlime/UI/OptionsSlider.cs +++ b/Tutorials/learn-monogame-2d/src/24-Shaders/DungeonSlime/UI/OptionsSlider.cs @@ -91,7 +91,6 @@ public OptionsSlider(TextureAtlas atlas) // Create the middle track portion of the slider NineSliceRuntime middleBackground = new NineSliceRuntime(); - middleBackground.Dock(Gum.Wireframe.Dock.FillVertically); middleBackground.Texture = middleBackgroundRegion.Texture; middleBackground.TextureAddress = TextureAddress.Custom; middleBackground.TextureHeight = middleBackgroundRegion.Height; diff --git a/Tutorials/learn-monogame-2d/src/25-Packaging-Game/DungeonSlime/UI/OptionsSlider.cs b/Tutorials/learn-monogame-2d/src/25-Packaging-Game/DungeonSlime/UI/OptionsSlider.cs index cfcc80e2..f859e806 100644 --- a/Tutorials/learn-monogame-2d/src/25-Packaging-Game/DungeonSlime/UI/OptionsSlider.cs +++ b/Tutorials/learn-monogame-2d/src/25-Packaging-Game/DungeonSlime/UI/OptionsSlider.cs @@ -91,7 +91,6 @@ public OptionsSlider(TextureAtlas atlas) // Create the middle track portion of the slider NineSliceRuntime middleBackground = new NineSliceRuntime(); - middleBackground.Dock(Gum.Wireframe.Dock.FillVertically); middleBackground.Texture = middleBackgroundRegion.Texture; middleBackground.TextureAddress = TextureAddress.Custom; middleBackground.TextureHeight = middleBackgroundRegion.Height; diff --git a/Tutorials/learn-monogame-2d/src/26-Publish-To-Itch/DungeonSlime/UI/OptionsSlider.cs b/Tutorials/learn-monogame-2d/src/26-Publish-To-Itch/DungeonSlime/UI/OptionsSlider.cs index cfcc80e2..f859e806 100644 --- a/Tutorials/learn-monogame-2d/src/26-Publish-To-Itch/DungeonSlime/UI/OptionsSlider.cs +++ b/Tutorials/learn-monogame-2d/src/26-Publish-To-Itch/DungeonSlime/UI/OptionsSlider.cs @@ -91,7 +91,6 @@ public OptionsSlider(TextureAtlas atlas) // Create the middle track portion of the slider NineSliceRuntime middleBackground = new NineSliceRuntime(); - middleBackground.Dock(Gum.Wireframe.Dock.FillVertically); middleBackground.Texture = middleBackgroundRegion.Texture; middleBackground.TextureAddress = TextureAddress.Custom; middleBackground.TextureHeight = middleBackgroundRegion.Height; diff --git a/Tutorials/learn-monogame-2d/src/27-Conclusion/DungeonSlime/UI/OptionsSlider.cs b/Tutorials/learn-monogame-2d/src/27-Conclusion/DungeonSlime/UI/OptionsSlider.cs index cfcc80e2..f859e806 100644 --- a/Tutorials/learn-monogame-2d/src/27-Conclusion/DungeonSlime/UI/OptionsSlider.cs +++ b/Tutorials/learn-monogame-2d/src/27-Conclusion/DungeonSlime/UI/OptionsSlider.cs @@ -91,7 +91,6 @@ public OptionsSlider(TextureAtlas atlas) // Create the middle track portion of the slider NineSliceRuntime middleBackground = new NineSliceRuntime(); - middleBackground.Dock(Gum.Wireframe.Dock.FillVertically); middleBackground.Texture = middleBackgroundRegion.Texture; middleBackground.TextureAddress = TextureAddress.Custom; middleBackground.TextureHeight = middleBackgroundRegion.Height;