Letschki
20-01-2010 12:31:39
Hello,
I have a small problem using the Console widget with a custom font and skin. The problem is that the text in the console's InputBox is displayed not in the middle of the input area. I had a similar problem with the TextBox widget. I solved the problem using the
textbox_textPosition member of TextBoxDesc during creation (of a derived class).
Is my Textbox solution the correct way to solve this? And how do I apply this to the console widget?
I am using Ogre 1.6.4 and QuickGUI 9.10.
My .fontdef:
The .skinTypes entries:
Thanks in advance!
Picture of the described problem (attachment):
I have a small problem using the Console widget with a custom font and skin. The problem is that the text in the console's InputBox is displayed not in the middle of the input area. I had a similar problem with the TextBox widget. I solved the problem using the
textbox_textPosition member of TextBoxDesc during creation (of a derived class).
Is my Textbox solution the correct way to solve this? And how do I apply this to the console widget?
I am using Ogre 1.6.4 and QuickGUI 9.10.
My .fontdef:
DejaVuSansMono.12
{
type truetype
source DejaVuSansMono.ttf
size 12
resolution 72
}
The .skinTypes entries:
Console default
{
SkinElement background
{
Border_Bottom 6
Border_Left 7
Border_Right 7
Border_Top 6
Texture gui.console.png
TileBackground true
TileBorders false
}
SkinReference textbox
{
ClassName TextBox
SkinType default
}
SkinReference textarea
{
ClassName TextArea
SkinType default
}
}
TextBox default
{
SkinElement background
{
Border_Bottom 4
Border_Left 4
Border_Right 4
Border_Top 4
Texture gui.console_textbox.png
TileBackground false
TileBorders true
}
SkinElement textoverlay
{
}
}
Thanks in advance!
Picture of the described problem (attachment):