File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
articles/tutorials/building_2d_games/21_customizing_gum_ui/snippets Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 3
3
using Gum . DataTypes . Variables ;
4
4
using Gum . Graphics . Animation ;
5
5
using Gum . Managers ;
6
- using Gum . Wireframe ;
7
6
using Microsoft . Xna . Framework . Input ;
8
7
using MonoGameGum . Forms . Controls ;
9
8
using MonoGameGum . GueDeriving ;
@@ -37,7 +36,7 @@ public AnimatedButton(TextureAtlas atlas)
37
36
nineSliceInstance . Height = 0f ;
38
37
nineSliceInstance . Texture = atlas . Texture ;
39
38
nineSliceInstance . TextureAddress = TextureAddress . Custom ;
40
- nineSliceInstance . Dock ( Dock . Fill ) ;
39
+ nineSliceInstance . Dock ( Gum . Wireframe . Dock . Fill ) ;
41
40
topLevelContainer . Children . Add ( nineSliceInstance ) ;
42
41
43
42
// Create the text element that will display the button's label
@@ -51,7 +50,7 @@ public AnimatedButton(TextureAtlas atlas)
51
50
textInstance . UseCustomFont = true ;
52
51
textInstance . CustomFontFile = "fonts/04b_30.fnt" ;
53
52
textInstance . FontScale = 0.25f ;
54
- textInstance . Anchor ( Anchor . Center ) ;
53
+ textInstance . Anchor ( Gum . Wireframe . Anchor . Center ) ;
55
54
textInstance . Width = 0 ;
56
55
textInstance . WidthUnits = DimensionUnitType . RelativeToChildren ;
57
56
topLevelContainer . Children . Add ( textInstance ) ;
You can’t perform that action at this time.
0 commit comments