Re #752 (CEGUIDemo) Fixed tooltip font
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@5073 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 67e8373d7c059bce3baa629d07b77b41c76b5596 Former-commit-id: e95908736b38b1ccb3ca55383d04fe0bec39abf2
This commit is contained in:
parent
05bbbe1930
commit
4f5c742f0e
5 changed files with 9 additions and 7 deletions
|
@ -15,10 +15,10 @@
|
||||||
<DefaultResourceGroup type="LookNFeel" group="looknfeels" />
|
<DefaultResourceGroup type="LookNFeel" group="looknfeels" />
|
||||||
<DefaultResourceGroup type="XMLSchema" group="schemas" />
|
<DefaultResourceGroup type="XMLSchema" group="schemas" />
|
||||||
|
|
||||||
<DefaultMouseCursor imageset="CEGUIDemo" image="MouseArrow" />
|
|
||||||
|
|
||||||
<DefaultTooltip name="CEGUIDemo/Tooltip" />
|
|
||||||
|
|
||||||
<AutoLoad type="Scheme" group="schemes" pattern="ceguidemo.scheme" />
|
<AutoLoad type="Scheme" group="schemes" pattern="ceguidemo.scheme" />
|
||||||
|
|
||||||
|
<DefaultMouseCursor imageset="CEGUIDemo" image="MouseArrow" />
|
||||||
|
<DefaultTooltip name="CEGUIDemo/Tooltip" />
|
||||||
|
<DefaultFont name="MenuNormal" />
|
||||||
|
|
||||||
</CEGUIConfig>
|
</CEGUIConfig>
|
||||||
|
|
2
src/tools/ceguidemo/datafiles/fonts/tooltip.font
Normal file
2
src/tools/ceguidemo/datafiles/fonts/tooltip.font
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
<?xml version="1.0" ?>
|
||||||
|
<Font Name="ToolTip" Filename="Jura-Italic.ttf" Type="FreeType" Size="9" NativeHorzRes="800" NativeVertRes="600" AutoScaled="true"/>
|
|
@ -3129,6 +3129,7 @@
|
||||||
***************************************************
|
***************************************************
|
||||||
-->
|
-->
|
||||||
<WidgetLook name="CEGUIDemo/Tooltip">
|
<WidgetLook name="CEGUIDemo/Tooltip">
|
||||||
|
<Property name="Font" value="ToolTip" />
|
||||||
<NamedArea name="TextArea">
|
<NamedArea name="TextArea">
|
||||||
<Area>
|
<Area>
|
||||||
<Dim type="LeftEdge" ><ImageDim imageset="CEGUIDemo" image="TooltipLeftEdge" dimension="Width" /></Dim>
|
<Dim type="LeftEdge" ><ImageDim imageset="CEGUIDemo" image="TooltipLeftEdge" dimension="Width" /></Dim>
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
<Font Name="MenuNormal" Filename="menu-normal.font" />
|
<Font Name="MenuNormal" Filename="menu-normal.font" />
|
||||||
<Font Name="MenuBig" Filename="menu-big.font" />
|
<Font Name="MenuBig" Filename="menu-big.font" />
|
||||||
<Font Name="TextSmall" Filename="text-small.font" />
|
<Font Name="TextSmall" Filename="text-small.font" />
|
||||||
|
<Font Name="ToolTip" Filename="tooltip.font" />
|
||||||
<LookNFeel Filename="ceguidemo.looknfeel" />
|
<LookNFeel Filename="ceguidemo.looknfeel" />
|
||||||
<WindowRendererSet Filename="CEGUIFalagardWRBase" />
|
<WindowRendererSet Filename="CEGUIFalagardWRBase" />
|
||||||
<FalagardMapping WindowType="CEGUIDemo/Button" TargetType="CEGUI/PushButton" Renderer="Falagard/Button" LookNFeel="CEGUIDemo/Button" />
|
<FalagardMapping WindowType="CEGUIDemo/Button" TargetType="CEGUI/PushButton" Renderer="Falagard/Button" LookNFeel="CEGUIDemo/Button" />
|
||||||
|
|
|
@ -52,15 +52,13 @@ class GUI(object):
|
||||||
# Initialize: Defaults
|
# Initialize: Defaults
|
||||||
def initializeDefaults(self):
|
def initializeDefaults(self):
|
||||||
|
|
||||||
#sm = PyCEGUI.SchemeManager.getSingleton()
|
|
||||||
#sm.create('ceguidemo.scheme')
|
|
||||||
|
|
||||||
if not TheConfig.useConfigFile:
|
if not TheConfig.useConfigFile:
|
||||||
|
|
||||||
sm = PyCEGUI.SchemeManager.getSingleton()
|
sm = PyCEGUI.SchemeManager.getSingleton()
|
||||||
sm.create('ceguidemo.scheme')
|
sm.create('ceguidemo.scheme')
|
||||||
PyCEGUI.System.getSingleton().setDefaultMouseCursor('CEGUIDemo', 'MouseArrow')
|
PyCEGUI.System.getSingleton().setDefaultMouseCursor('CEGUIDemo', 'MouseArrow')
|
||||||
PyCEGUI.System.getSingleton().setDefaultTooltip('CEGUIDemo/Tooltip')
|
PyCEGUI.System.getSingleton().setDefaultTooltip('CEGUIDemo/Tooltip')
|
||||||
|
PyCEGUI.System.getSingleton().setDefaultFont('MenuNormal')
|
||||||
|
|
||||||
# Initialize
|
# Initialize
|
||||||
def initialize(self):
|
def initialize(self):
|
||||||
|
|
Loading…
Reference in a new issue