本文整理匯總了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);
}