From e73976106142266f713ba3bf45829b8e5ce70b9d Mon Sep 17 00:00:00 2001 From: Victor Chelaru Date: Wed, 7 Jan 2026 05:52:16 -0700 Subject: [PATCH 1/3] Removed unnuecessary Dock calls --- .../21_customizing_gum_ui/snippets/optionsslider.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/articles/tutorials/building_2d_games/21_customizing_gum_ui/snippets/optionsslider.cs b/articles/tutorials/building_2d_games/21_customizing_gum_ui/snippets/optionsslider.cs index 2280b8a9..02ddc7d1 100644 --- a/articles/tutorials/building_2d_games/21_customizing_gum_ui/snippets/optionsslider.cs +++ b/articles/tutorials/building_2d_games/21_customizing_gum_ui/snippets/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; From 76977f444e95255833bf881bf31c4d783e10c6ba Mon Sep 17 00:00:00 2001 From: Victor Chelaru Date: Sat, 14 Mar 2026 04:34:46 -0600 Subject: [PATCH 2/3] Fixed v2 reference --- .../20_implementing_ui_with_gum/snippets/game1/initializegum.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/articles/tutorials/building_2d_games/20_implementing_ui_with_gum/snippets/game1/initializegum.cs b/articles/tutorials/building_2d_games/20_implementing_ui_with_gum/snippets/game1/initializegum.cs index 957faf9a..27a05150 100644 --- a/articles/tutorials/building_2d_games/20_implementing_ui_with_gum/snippets/game1/initializegum.cs +++ b/articles/tutorials/building_2d_games/20_implementing_ui_with_gum/snippets/game1/initializegum.cs @@ -1,7 +1,7 @@ private void InitializeGum() { // Initialize the Gum service. The second parameter specifies - // the version of the default visuals to use. V2 is the latest + // the version of the default visuals to use. V3 is the latest // version. GumService.Default.Initialize(this, DefaultVisualsVersion.V3); From a22b96bcb05c487f24cfed93001cd0554f8835ff Mon Sep 17 00:00:00 2001 From: Victor Chelaru Date: Sat, 14 Mar 2026 04:38:01 -0600 Subject: [PATCH 3/3] Fixed compile error caused by wrong options panel (missing underscore) --- .../snippets/titlescene/createoptionspanel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/articles/tutorials/building_2d_games/20_implementing_ui_with_gum/snippets/titlescene/createoptionspanel.cs b/articles/tutorials/building_2d_games/20_implementing_ui_with_gum/snippets/titlescene/createoptionspanel.cs index 736860a6..bfe167d1 100644 --- a/articles/tutorials/building_2d_games/20_implementing_ui_with_gum/snippets/titlescene/createoptionspanel.cs +++ b/articles/tutorials/building_2d_games/20_implementing_ui_with_gum/snippets/titlescene/createoptionspanel.cs @@ -14,7 +14,7 @@ private void CreateOptionsPanel() { musicLabel.Text = "Music"; musicLabel.X = 35; musicLabel.Y = 35; - optionsPanel.AddChild(musicLabel); + _optionsPanel.AddChild(musicLabel); var musicSlider = new Slider(); musicSlider.Anchor(Gum.Wireframe.Anchor.Top); @@ -32,7 +32,7 @@ private void CreateOptionsPanel() { sfxLabel.Text = "SFX"; sfxLabel.X = 20; sfxLabel.Y = 80; - optionsPanel.AddChild(sfxLabel); + _optionsPanel.AddChild(sfxLabel); var sfxSlider = new Slider(); sfxSlider.Anchor(Gum.Wireframe.Anchor.Top);