This is another question...i am a very noob...
well, i read in the wiki that i can make my own skin component like buttons, textnox background etc...simply editing the images and respecting the conventions in names (ex. qgui.button.png etc...).
But, in media of quick gui, there's a file named "SkinSet.qgui.png" that group all the components together...i have to do also this?if yes, how i can?
I would outline this in the wiki, but the current method will change in the near future, at least that is what I would like to accomplish.
Right now, you can make your own skin, lets call it "artic".
So you would make a bunch of images that follow the naming conventions I have in place, but replacing "qgui" with "artic". When you want to use the Skin, you will make the following call:
I have made a restriction that all images be of the same type, for a given skin. This *limitation* is easily surpassed, because you can have as many skins as you want. For example, you could make an "artic_png", "artic_jpg", or whatever you want.
When loadSkin is called, it checks to see if a *.skinset file exists. If it doesn't, it will create one, as well as the SkinSet.artic.png file. In the future, you will probably use a SkinSet Editor to make the SkinSets, but for now, its done in the background by the SkinSet class.
To use the skin, you would call:
To put it simply, you shouldn't have to worry about the .skinset and Skinset.*.png files. Although I encourage you to look at them. The skinset file will outline the UV coordinates of the images, as they are shown in the generated png file.
Let me know if you have more questions.
Qbound, your gui is very cool!!!!!
did you make it with QuickGUI?
@kungfoomasta: thanks for the explanation...now i understand how skins works.
But for "myWidged" what do you mean?a widget that i have created or is a variable like the mSkinSet (i don't rimember this is it's name...) of the Demo example?
If i have other questions or troubles i will tell you!
QuickGUI::Button* myButton = defaultSheet->createButton();
It's just any widget that you have created, they all support the "setSkin" function.
ok. but for example, if i call the setSkin()for the button, i have to make all the states images (button,button.over,button.down,button.disabled)?
yep. You need to have the skinset loaded, which refers to the Skinset.*.png and *.skinset files, which are created from the various png images. I believe a blank image will result, if the image does not exist. If the skin does not exist, an exception is thrown. So for example, if you didn't make a *.disabled.png image, and you disabled your button, it would not be visible.
and yes it is made with quickgui and the auto function for creating the atlas texture... very usefull and absolut easy to use...