skorpio
09-03-2009 06:08:16
Hello,
I just started using QuickGUI rather successfully after failing to get CEGUI and Hikari to work. So,
Great Work!
I would like to create another skin for the progress bar. However I can't seem to get it working.
I can still use the default.
Here is the code from latest release 1.6.1 Patch (Demo_QuickGUI01.py)
I tried,
None of them work. I do have a newskin which I appended to ProgressBar.skinTypes, like this
Any suggestions? Thanks
Skorpio
I just started using QuickGUI rather successfully after failing to get CEGUI and Hikari to work. So,
Great Work!
I would like to create another skin for the progress bar. However I can't seem to get it working.
I can still use the default.
Here is the code from latest release 1.6.1 Patch (Demo_QuickGUI01.py)
progDesc.widget_name = "Prog"
progDesc.textDesc.segments.append(gui.TextSegment("micross.12",Ogre.ColourValue().White,"Progress Bar"))
progDesc.textDesc.horizontalTextAlignment = gui.TEXT_ALIGNMENT_HORIZONTAL_CENTER
progDesc.widget_dimensions = gui.Rect(100,400,200,35)
progDesc.progressbar_fillDirection = gui.PROGRESSBAR_FILLS_POSITIVE_TO_NEGATIVE
progDesc.progressbar_clippingEdge = gui.PROGRESSBAR_CLIP_RIGHT_TOP
progDesc.progressbar_layout = gui.PROGRESSBAR_LAYOUT_VERTICAL
self.mGUIManager.getActiveSheet().createProgressBar(progDesc)
I tried,
progDesc.widget_setSkinType("newskin")
progDesc.widget_setSkinType ="newskin"
progDesc.setSkinType("newskin")
progDesc.widget.setSkinType("newskin")
progDesc.Widget.setSkinType("newskin")
None of them work. I do have a newskin which I appended to ProgressBar.skinTypes, like this
SkinClass ProgressBar
{
SkinType default
{
}
SkinType newskin
{
}
}
Any suggestions? Thanks
Skorpio