In need of pipo help

All about our 2D gui.

Moderator: cuicui

In need of pipo help

Postby Shmoogle on Tue Oct 31, 2006 10:20 am

Hello again.

I'm just wondering if there is gona be a pipo tutorial or something similar.
I'm basicly in need of a genural introdution to it. So i can understand the basics of how it works and what it does.

Thanks in advance. :D
Game Logic is a very confusing thing.
Shmoogle
Brume Rookie
 
Posts: 8
Joined: Sat Oct 21, 2006 1:19 am
Location: Uk, Lincoln

Postby cuicui on Wed Nov 01, 2006 3:17 pm

Hello,

There is actually no tutorial about using pipo, but I'm thinking of filling the Wiki :D .
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 :D

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 !!!
User avatar
cuicui
Brume Team Member
 
Posts: 4
Joined: Sat Oct 07, 2006 7:59 am
Location: Seine et Marne

Pipo Jumpstart - where are the cables :)

Postby Moni on Fri Dec 01, 2006 9:13 pm

I downloaded the IceCube project.

I need to recompile to be able to run because I am running Win64.

I downloaded the source code and successfully connected the Brume.DLL

How do I add the reference to Pipo - is it a DLL?
Moni
Brume Rookie
 
Posts: 3
Joined: Tue Nov 28, 2006 3:50 am

Postby cuicui on Mon Dec 04, 2006 12:59 pm

Pipo is not a dll because we want to allow other people to modify and improve this framework.
When you download the IceCube project, you have a MS Studio project file named Pipo.csproj that should help you.
If it doesn't work, you need the following references to make it compile with Brume :
Brume
System
System.Data
System.Drawing
System.Windows.Forms
System.XML

And for Tetris, you need the same references plus the reference to the Pipo project.
User avatar
cuicui
Brume Team Member
 
Posts: 4
Joined: Sat Oct 07, 2006 7:59 am
Location: Seine et Marne


Return to Pipo 2D framework

Who is online

Users browsing this forum: No registered users and 3 guests

cron