Skip to content

Commit 38c0b10

Browse files
committed
Remove using statement. Dock enum needs to be explicit
1 parent a8ae068 commit 38c0b10

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

articles/tutorials/building_2d_games/21_customizing_gum_ui/snippets/animatedbutton.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using Gum.DataTypes.Variables;
44
using Gum.Graphics.Animation;
55
using Gum.Managers;
6-
using Gum.Wireframe;
76
using Microsoft.Xna.Framework.Input;
87
using MonoGameGum.Forms.Controls;
98
using MonoGameGum.GueDeriving;
@@ -37,7 +36,7 @@ public AnimatedButton(TextureAtlas atlas)
3736
nineSliceInstance.Height = 0f;
3837
nineSliceInstance.Texture = atlas.Texture;
3938
nineSliceInstance.TextureAddress = TextureAddress.Custom;
40-
nineSliceInstance.Dock(Dock.Fill);
39+
nineSliceInstance.Dock(Gum.Wireframe.Dock.Fill);
4140
topLevelContainer.Children.Add(nineSliceInstance);
4241

4342
// Create the text element that will display the button's label
@@ -51,7 +50,7 @@ public AnimatedButton(TextureAtlas atlas)
5150
textInstance.UseCustomFont = true;
5251
textInstance.CustomFontFile = "fonts/04b_30.fnt";
5352
textInstance.FontScale = 0.25f;
54-
textInstance.Anchor(Anchor.Center);
53+
textInstance.Anchor(Gum.Wireframe.Anchor.Center);
5554
textInstance.Width = 0;
5655
textInstance.WidthUnits = DimensionUnitType.RelativeToChildren;
5756
topLevelContainer.Children.Add(textInstance);

0 commit comments

Comments
 (0)