ListPanelItem

Jack106

24-06-2010 13:41:09

Hey i have another question, when i try to create a ListPanelItem a get the following error: Exception:SkinType "default" does not exist ! <Widget::_setSkinType>.

I dont know which SkinType i have to create.

My code:

QuickGUI::ListPanelItem* lpi = m_FileChooserList->createPanelItem(2);
QuickGUI::Image* image = lpi->createImage(QuickGUI::Rect(0,0,10,10));
image->setImage("droplet.png");


Hope somebody can help me.

Jack106

24-06-2010 14:00:09

Hey okay now it it works.
i have added the following line to the qgui.skintypes file.


ListPanelItem default
{
SkinElement default
{
Border_Bottom 0
Border_Left 0
Border_Right 0
Border_Top 0
Texture lobby.panel.background.png
TileBackground false
TileBorders true
}

SkinElement over
{
Border_Bottom 0
Border_Left 0
Border_Right 0
Border_Top 0
Texture lobby.panel.background.png
TileBackground false
TileBorders true
}

SkinElement selected
{
Border_Bottom 0
Border_Left 0
Border_Right 0
Border_Top 0
Texture lobby.panel.background.png
TileBackground false
TileBorders true
}
}


Dont kown why this was missing.

kungfoomasta

25-06-2010 02:07:26

Ah good catch! My game isn't far enough along to test my GUI library fully. :(