C# 클래스 MoodSwingGUI.MSFontScalingLabel

MSLabel is an MSGUIUnclickable component that displays text with the use of a SpriteFont. The text is always scaled to fit the bounding Rectangle of this MSLabel.
상속: MSLabel
파일 보기 프로젝트 열기: verngutz/MoodSwing

공개 메소드들

메소드 설명
Draw ( GameTime gameTime ) : void
MSFontScalingLabel ( String text, Rectangle boundingRectangle, SpriteFont spriteFont, Color text_color, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System

Constructs a new MSLabel.

MSFontScalingLabel ( String text, Rectangle boundingRectangle, SpriteFont spriteFont, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System

Constructs a new MSLabel with default Color.Black text.

메소드 상세

Draw() 공개 메소드

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

MSFontScalingLabel() 공개 메소드

Constructs a new MSLabel.
public MSFontScalingLabel ( String text, Rectangle boundingRectangle, SpriteFont spriteFont, Color text_color, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System
text String the text that this MSLabel will display
boundingRectangle Microsoft.Xna.Framework.Rectangle the bounding Rectangle of this MSLabel
spriteFont Microsoft.Xna.Framework.Graphics.SpriteFont the SpriteFont used to draw the text
text_color Color
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch the SpriteBatch that will draw this MSLabel
game Microsoft.Xna.Framework.Game the Game where this MSLabel is used
리턴 System

MSFontScalingLabel() 공개 메소드

Constructs a new MSLabel with default Color.Black text.
public MSFontScalingLabel ( String text, Rectangle boundingRectangle, SpriteFont spriteFont, SpriteBatch spriteBatch, Microsoft.Xna.Framework.Game game ) : System
text String the text that this MSLabel will display
boundingRectangle Microsoft.Xna.Framework.Rectangle the bounding Rectangle of this MSLabel
spriteFont Microsoft.Xna.Framework.Graphics.SpriteFont the SpriteFont used to draw the text
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch the SpriteBatch that will draw this MSLabel
game Microsoft.Xna.Framework.Game the Game where this MSLabel is used
리턴 System