本文整理汇总了C#中Text.get方法的典型用法代码示例。如果您正苦于以下问题:C# Text.get方法的具体用法?C# Text.get怎么用?C# Text.get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Text
的用法示例。
在下文中一共展示了Text.get方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LoadContent
public override void LoadContent()
{
if (content == null)
content = SceneHandler.content;
lancerJeuT = new Text("LaunchConnexion");
retourJeuT = new Text("BackToMenu");
serveurT = new Text("Server");
clientT = new Text("Client");
ipT = new Text("IP");
modeT = new Text("Mode");
hostT = new Text("Host");
ip = IPAddress.Parse("127.0.0.1");
UpdatePositions();
positionTexteIP = new Vector2(champIP.Left - spriteFont.MeasureString(ipT.get() + " :").X, champIP.Center.Y - spriteFont.MeasureString(ipT.get() + " :").Y / 2);
positionTexteMode = new Vector2(boutonServeurOuClient.Left - spriteFont.MeasureString(modeT.get() + " :").X, boutonServeurOuClient.Center.Y - spriteFont.MeasureString(modeT.get() + " :").Y / 2);
}
示例2: LoadContent
public override void LoadContent()
{
if (content == null)
content = SceneHandler.content;
lancerJeuT = new Text("SelectChampion");
retourJeuT = new Text("BackToMenu");
pseudoT = new Text("Pseudo");
waitClientT = new Text("WaitClient");
waitLaunchT = new Text("WaitLaunch");
tryToConnectServT = new Text("TryToConnectServ");
fondLobby = content.Load<Texture2D>("Menu/Lobby");
nbFrames = 0;
currentMessage = isServer ? waitClientT.get() : tryToConnectServT.get();
pseudoJoueurs = new string[] {
"","","",""
};
UpdatePositions();
positionTextePseudo = new Vector2(champPseudo.Left - spriteFont.MeasureString(pseudoT.get() + " :").X, champPseudo.Center.Y - spriteFont.MeasureString(pseudoT.get() + " :").Y / 2);
}
示例3: LoadContent
public override void LoadContent()
{
if (content == null)
content = SceneHandler.content;
blank = content.Load<Texture2D>("blank");
pleinEcranT = new Text("Fullscreen");
langueT = new Text("Language");
retourT = new Text("Back");
noT = new Text("no");
yesT = new Text("yes");
fullscreenText = isFullscreen ? noT.get() : yesT.get();
boutonPleinEcran = new Rectangle((Game1.graphics.GraphicsDevice.Viewport.Width - boutons.Width) / 2, Game1.graphics.GraphicsDevice.Viewport.Height / 2 - 100, boutons.Width, boutons.Height);
boutonLangue = new Rectangle((Game1.graphics.GraphicsDevice.Viewport.Width - boutons.Width) / 2, Game1.graphics.GraphicsDevice.Viewport.Height / 2, boutons.Width, boutons.Height);
boutonRetour = new Rectangle((Game1.graphics.GraphicsDevice.Viewport.Width - boutons.Width) / 2, Game1.graphics.GraphicsDevice.Viewport.Height / 2 + 100, boutons.Width, boutons.Height);
positionTexteFullscreen = new Vector2(boutonPleinEcran.Left - spriteFont.MeasureString(pleinEcranT.get() + " :").X, boutonPleinEcran.Center.Y - spriteFont.MeasureString(pleinEcranT.get() + " :").Y / 2);
positionTexteLangue = new Vector2(boutonLangue.Left - spriteFont.MeasureString(langueT.get() + " :").X, boutonLangue.Center.Y - spriteFont.MeasureString(langueT.get() + " :").Y / 2);
}