GUI issue

Started by SinSin, Fri 13/04/2007 03:45:46

Previous topic - Next topic

SinSin

I have started building a game and cannot get my head around the coding at all
can anyone help me by pointing me in the right direction on how to build a fully functioning gui from scratch     just like the one from the demo game or default game   
i have tried splicing things from the script which i think i understand but i am at a loss. If i get my head around it fully who knows i may make a tutorial for other noobs like myself lol

reaching the end of my tether  now   :'(

Need sleep   

sinsin    thanks in advance
Currently working on a project!

Sparky

Sinsin- I'm in a similar position to yours, and you have my sympathy. Scripting is difficult for me. That said, using the forums here and the tutorials in the manual I hacked together a custom GUI for the project I'm working on. Don't give up, it's doable! I also seem to recall that Ali, who recently released Nellie Cootalot, began the project with limited knowledge of scripting.

I'd recommend starting small, though. If scripting in general is hard, an entire GUI might be a bit intimidating. Why not start with the tutorials in the manual, and ask questions here if you get stuck? Make a few room scripts, do some cut scenes, then once you've got past successes to build on begin your GUI.

Good luck with your project!

Ashen

What sort of GUI? There are tutorials and forum threads out there that deal with making various types of GUIs, but they're mostly specific (Save/Load GUIs, Inventory GUIs, etc). Reading any one of them should give you an idea of the basics behind GUI coding, but if you need more specific help, you'll need to ask more specific questions.
I know what you're thinking ... Don't think that.

SinSin

thanks sparky will do 

Ashen:  i want to know how to build the whole shabangle top bar inventory load save etc

cheers

sin
Currently working on a project!

Akatosh

So you want to build an icon bar. Great. But we'll need a bit more... information. Like, do you want it to be the top bar from the default game template? Or a SCUMM-like interface, or what now?

SinSin

#5
oop silly me
i wanna do a similar iconbar as the demo game whereas it pops in from the top
Id like the obvious inventory box but as a Sam'n'Max one. eg. box in the corner
The save, load, quit and about buttons, but i dont want the quick inventory slot showing the last object
Is this any clearer   i hope so 
Thanx again
Sin


***  I HAVE CRACKED IT I RECKON AND I WAS OVERLOOKING THE GUI CONTROLS ***

The panel  in the gui bit maes sense to me now the whole hieght thing and everything i didnt understand that you had to build it within ags but now things are alot more clear phew   il update again when i have come across anymore probs
***please dont lock this thread***
Currently working on a project!

SinSin

#6
Ok I have cracked the whole how to make a button change the pointer mode thats cool but now i have another problem   
i have a button which i want to link to the Inventory gui
This is the current script within the section

#sectionstart btnIconInv_Click  // DO NOT EDIT OR REMOVE THIS LINE
function btnIconInv_Click(GUIControl *control, MouseButton button) {
gInventory.Visible = true;

}
#sectionend btnIconInv_Click  // DO NOT EDIT OR REMOVE THIS LINE

This to my nooby coder eyes says when Iclick on the button labeled btnIconInv this shouldmake the gui labeled ginventory    appear all the labels used in my code are correctly named when i check them what could be wrong

???  Sin   

***i recomend that if your stuck post your question as as soon as you have posted you will sort it out this always happens to me lol

I changed the visable setting to pop up modal and everything works out fine now   hope this helps others
Currently working on a project!

SMF spam blocked by CleanTalk