Hello,
There is actually no tutorial about using pipo, but I'm thinking of filling the Wiki
.
The Pipo framework was designed for the purpose of the Tetris example.
So if you want to do something that looks like a button, a panel or a radiobutton, it's possible !!! I can even help you on that.
Maybe if you had a more precise question of what you want to do, I could give you more information.
So you want a general introduction to Pipo? Let's go :
The Pipo framework is a set of graphical elements that makes it easier to design nice interfaces in 3D.
The Pipo framework is written in C# and is using the Brume library.
Here is the a list of the different components you could use to build a graphical interface :
* Button
* CheckBox
* ComboBox
* Dialog
* Frame
* Input
* Label
* ListBox
* MenuBar
* Panel
* PopupMenu
* ProgressBar
* RadioButton
* RadioGroup
* ScrollBar
* ScrollPanel
* Slider
* TabbedPanel
* TextArea
* Window
Some of these components are not working though, we just planned to make them work
I'm going to explain a simple example to get into the code :
Creating your own Button :
Button myButton = new Button(pipo, "buttonName", "Click me!!!", parent);
The constructor takes 4 arguments :
A reference to pipo
The name of your button : must be unique
The text of your button
The parent that contains this button, a panel or a frame or a window : a container.
Changing attributes of your button :
myButton.setTextureName("myTexture");
myButton.setSize(width, height);
myButton.center(0, -dialog.getHeight() / 2);
myButton.setFont("font_blue.png", "BlueFont", Label.DEFAULT_WIDTH, Label.DEFAULT_HEIGHT);
myButton.setFontSize(22);
myButton.setFontOffColor(Color.LightGray);
myButton.setFontOnColor(Color.White);
myButton.centerLabel();
Adding control to your button :
myButton.buttonPressedEvent += new Button.EventDelegate(theMethodYouWantToCall);
Ok, I'll stop here for now and put this in the Wiki.
Hope this helped you a bit.
Also, you can look a the source code of the tetris example, we're using the pipo framework everywhere !!!