Pipo Events

All about our 2D gui.

Moderator: cuicui

Pipo Events

Postby Bostich on Mon Nov 26, 2007 9:42 pm

First of all, very nice Engine :).

I play with your engine since 2 days, and it seems to be very nice :P (I have tested 6 other c# engines^^).

But know my problem (not the very first^^):

Currently iam trying to implement a Gui, with ur Pipo framework. All in all, it is very easy to use but i hang atm at the events.

A little closer look into Pipo says that there a two namespaces called "Pipo.Event"(MouseListener) and "Pipo.Handler"(MouseHandler). Thats in fact.

So my problem is, how can i implement this, to simple implement an Event for example for Window.OnMouseDown ?

The goal of this is simple a moving Gui window by clicking the titlebar. Hopefully thats possible :) (but i think so :P)


Thx in advance
and sry 4 my bad english (german native speaker :P)

Bostich

//edit:
Mh forget my question, i have looked into the Pipo source and i have seen that events arent implemented at this time. I will give it a try by myself :P
Bostich
Brume Rookie
 
Posts: 10
Joined: Mon Nov 26, 2007 9:31 pm

Re: Pipo Events

Postby Silmaryls on Tue Nov 27, 2007 9:45 pm

Hi Bostich,

Yes sorry about that one, Pipo is still under development and cuicui has no time for the moment to work on it (he is busy on a mysterious Nintendo DS project :wink: )

Silmaryls
User avatar
Silmaryls
Brume Team Member
 
Posts: 340
Joined: Tue Feb 21, 2006 10:09 pm
Location: Paris - France

Re: Pipo Events

Postby Bostich on Wed Nov 28, 2007 8:18 am

Hi Silmaryls,

thx for ur reply :).

I havent implemented events yet, but atm i can move my window arround with no problems :> (that was my main intenstion^^). If anything works as i expected i can publish it later if anyone wants this :P

But anyway, another problem :

I can not imagine why, but it is impossible for me to texture a window. It comes with no error msg, but still no texture^^.

And another thing:

I really need a kind of TextBox. As i see in pipo source, "Textarea" is still empty. Im not that skilled to build my own textbox from scratch.

Is it possible to get any kind of tips from u to build the textarea?


ty
Greetings Bostich

//edit:

Oh iam still better then i thought, now i got a working textbox also :D.
BUT: i got no idea to show a blinkin cursor. Any ideas?
Bostich
Brume Rookie
 
Posts: 10
Joined: Mon Nov 26, 2007 9:31 pm

Re: Pipo Events

Postby Silmaryls on Wed Nov 28, 2007 7:31 pm

Hi,

Well directly from IceCube source code here is our Input code :

Code: Select all
input = new Input(tetris, "playerNameInput", "Enter name", dialog);
input.setTextureName("tetris_input");
input.setSize(input.getWidth(), 20);
input.center(0, 0);
input.MaxLength = 14;
input.setFont("tetris_font_blue.png", "BlueFont", Label.DEFAULT_WIDTH, Label.DEFAULT_HEIGHT);
input.setFontSize(20);
input.setFontColor(Color.LightGray);
input.setTransparency(true);


The input has a blinking cursor so you can just check out the source code if you want to implement your own.
You can also download the exe (you will have to make a highscore in order to see the dialog :D )
User avatar
Silmaryls
Brume Team Member
 
Posts: 340
Joined: Tue Feb 21, 2006 10:09 pm
Location: Paris - France

Re: Pipo Events

Postby Bostich on Thu Nov 29, 2007 3:09 pm

Ty again for the fast reply :)

I havent seen that there was allready a finished input box :>.

but right now, i got another problem^^

ATM iam testing how it it works with Meshes (expecially with characters).

In my solution i have small terain and a skybox. when i put my (Tiny)mesh on a fixed position WITHOUT sky and terrain, i can see tiny, and everything is fine. but in that case i load terain and skybox, the mesh is transparent.

hopefully u understand what my problem is :D

Greetings Bostich
Bostich
Brume Rookie
 
Posts: 10
Joined: Mon Nov 26, 2007 9:31 pm

Re: Pipo Events

Postby Silmaryls on Thu Nov 29, 2007 10:34 pm

Well sounds strange.
Can you try to remove the sky box and see if it works with mesh+terrrain ?
And if it doesn't do it again but removing the terrain.

It may be a sky box drawing problem but not sure about this one.
User avatar
Silmaryls
Brume Team Member
 
Posts: 340
Joined: Tue Feb 21, 2006 10:09 pm
Location: Paris - France


Return to Pipo 2D framework

Who is online

Users browsing this forum: No registered users and 1 guest

cron