mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 15:51:04 +08:00
Renamed Text.Size to Text.CharacterSize in SFML.Net (sync with C++ API)
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1816 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
149a724dea
commit
6a3ac47f54
@ -124,7 +124,7 @@ namespace shader
|
||||
// Define a string for displaying current effect description
|
||||
shaderText = new Text();
|
||||
shaderText.Font = font;
|
||||
shaderText.Size = 20;
|
||||
shaderText.CharacterSize = 20;
|
||||
shaderText.Position = new Vector2(5.0F, 0.0F);
|
||||
shaderText.Color = new Color(250, 100, 30);
|
||||
shaderText.DisplayedString = "Background shader: \"" + backgroundShader.Name + "\"\n" +
|
||||
@ -134,7 +134,7 @@ namespace shader
|
||||
// Define a string for displaying help
|
||||
Text infoText = new Text();
|
||||
infoText.Font = font;
|
||||
infoText.Size = 20;
|
||||
infoText.CharacterSize = 20;
|
||||
infoText.Position = new Vector2(5.0F, 500.0F);
|
||||
infoText.Color = new Color(250, 100, 30);
|
||||
infoText.DisplayedString = "Move your mouse to change the shaders' parameters\n" +
|
||||
|
@ -73,14 +73,14 @@ namespace SFML
|
||||
/// </summary>
|
||||
/// <param name="str">String to display</param>
|
||||
/// <param name="font">Font to use</param>
|
||||
/// <param name="size">Base characters size</param>
|
||||
/// <param name="characterSize">Base characters size</param>
|
||||
////////////////////////////////////////////////////////////
|
||||
public Text(string str, Font font, uint size) :
|
||||
public Text(string str, Font font, uint characterSize) :
|
||||
base(sfText_Create())
|
||||
{
|
||||
DisplayedString = str;
|
||||
Font = font;
|
||||
Size = size;
|
||||
CharacterSize = characterSize;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
@ -223,7 +223,7 @@ namespace SFML
|
||||
/// Base size of characters
|
||||
/// </summary>
|
||||
////////////////////////////////////////////////////////////
|
||||
public uint Size
|
||||
public uint CharacterSize
|
||||
{
|
||||
get {return sfText_GetCharacterSize(This);}
|
||||
set {sfText_SetCharacterSize(This, value);}
|
||||
@ -285,7 +285,7 @@ namespace SFML
|
||||
" BlendMode(" + BlendMode + ")" +
|
||||
" String(" + DisplayedString + ")" +
|
||||
" Font(" + Font + ")" +
|
||||
" Size(" + Size + ")" +
|
||||
" CharacterSize(" + CharacterSize + ")" +
|
||||
" Style(" + Style + ")" +
|
||||
" Rectangle(" + GetRect() + ")";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user