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..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 @@ -85,14 +85,12 @@ 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"); // 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 53d6ee94..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 @@ -85,14 +85,12 @@ 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"); // 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 53d6ee94..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 @@ -85,14 +85,12 @@ 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"); // 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 53d6ee94..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 @@ -85,14 +85,12 @@ 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"); // 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 86d03281..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 @@ -85,14 +85,12 @@ 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"); // 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 86d03281..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 @@ -85,14 +85,12 @@ 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"); // 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 86d03281..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 @@ -85,14 +85,12 @@ 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"); // 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;