need some help...

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
hockey97
Posts: 41
Joined: Mon May 14, 2007 10:47 pm

need some help...

Post by hockey97 »

Hi I want to use my own textures for the gui, like the buttons I want to use my own art same with the backround, I have been reading about the gui class ect and found a skin function, I don't know what it is used for, it say's that it's used for the looks of the gui, I am not sure if they mean

the art look's or the size and shape ??

I really need some help on creating a menu and before loading the menu play 2 movies files , how would you go abouts in coding it??
I do know c++ just new to game programming .

what I want to do is when you click the .exe file a window opens but it's full screen, then it loads and play's 2 different movies then after the movies finish loads a game menu .

I have read the api about the gui but had trouble codeing it.

if someone could explain if I need to call the class then define it or what ever I have to do to intergrade the class and it's functions in my run script .

Thanks for your time.
linkoraclehero
Posts: 81
Joined: Sat Sep 09, 2006 6:46 am

Post by linkoraclehero »

Bitplane mentioned to me that to draw your own skinned window, you'd have to intercept the draw functions of the GUI Skin and blah blah blah. But as for buttons, this isn't so complicated. Check the API for IGUIButton, I think the function would is:
loadImage(video::ITexture* texture);
As for the movie files, do a search for AVI on these forums, there's a bit of code that was put into IRRspintz that you could use. (The old code will work 'cause it's main flaws are that it won't work in anything but Windows and you can only play one at a time). Personally, I prefer to build onto the engine myself, but IRRspintz seems to be a great powered up version of Irrlicht.
hockey97
Posts: 41
Joined: Mon May 14, 2007 10:47 pm

Post by hockey97 »

Thanks for the reply, just one more question about the gui I don't know if it's the window or what ever, I want to make a menu with like every thing in the menu with my own artwork and animations, like are their button_up,

button_over stuff so like if the person put's their mouse over the button it will diplay another button image other than the main button image ,

I want really every aspect of the menu custom, meaning using my own art

and also is their loading support in IRRLICHT?? like I can display a custom loading bar??

sorry for all the questions, but still confused, I mea I have read the api,

The main problem I have is the structure of a program,

I know c++, and I know you have to define a function before you use a function.

but is their any place that would show me what I need from ground up.

Meaning when scripting would I first call the classes then the function's??

or do I just call the functions, I am thinking since the engine most likely already defined the functions ect.

I am just confused what must be called before the use of these functions??

, I know the c++ stuff just not game programming.
Dances
Posts: 454
Joined: Sat Jul 02, 2005 1:45 am
Location: Canada
Contact:

Post by Dances »

There is a button up and button down, but no mouse over in Irrlicht.

Yes you can display a loading bar, you can display anything. You must code this yourself though, as Irrlicht can't just look at your code and tell when you start loading, how much you have to load, calculate the percentages, and magically call itself to update the screen.

The hello world tutorial shows you what you need from the ground up -.-
hockey97
Posts: 41
Joined: Mon May 14, 2007 10:47 pm

Post by hockey97 »

The hellow world thing does, but I don't fully understand how to call functions.

Like do I first have to call the class then functions??

well I am going to look at the api again...

Hopefully I would understand how it is structured ect.
Dances
Posts: 454
Joined: Sat Jul 02, 2005 1:45 am
Location: Canada
Contact:

Post by Dances »

hockey97 wrote:The hellow world thing does, but I don't fully understand how to call functions.

Like do I first have to call the class then functions??

well I am going to look at the api again...

Hopefully I would understand how it is structured ect.
You instantiate a class object like a variable, and then call it's functions.... are you trying to ask a more complicated question than I just answered, or do you REALLY need to get your hands on a decent C++ book?
Post Reply