public place ( |
||
region | placing rectangle | |
horizontalMargin | float | |
verticalMargine | float | |
alignment | Alignment | |
Résultat |
void onGraphicsDeviceReset() { var layout = new Layout(Core.graphicsDevice.Viewport); _position = layout.place(new Vector2(width, barHeight), 0, 0.075f, Alignment.TopCenter); //_position = new Vector2(0, 50);// layout.place( new Vector2( width, barHeight ), 0, 0.05f, Alignment.TopCenter ); }
void onGraphicsDeviceReset() { var layout = new Layout(Core.graphicsDevice.Viewport); _position = layout.place(new Vector2(width, barHeight), 0, 0.01f, Alignment.BottomCenter); }
void onGraphicsDeviceReset() { var layout = new Layout( Core.graphicsDevice.Viewport ); _position = layout.place( new Vector2( width, barHeight ), 0, 0.01f, Alignment.BottomCenter ); }