ID:270476
 
i need help making a title screen. i already have the pic i want and the load button and new button. i just need the code to make a title screen plz. thanks
Check out the Click() procedure in the F1 help. Hook Click into your "new" and "load" functions, and you're good to go.
In response to PirateHead
well i'm not that good so i need a little more details with the "hook" thing and where to go: click atom or client
In response to Konoha ninja
Click atom and client both will work. Here's the distinction to note:

atom/Click() is called when the client clicks the atom, and usr is the client's mob, and src is the object that was clicked.

client/Click(atom/A) is called when the client clicks the atom, and usr is the client, and src is the client, and A is the atom that was clicked.

So, in setting up your menu, the two could be used something like:

client/Click(atom/A)
if(istype(A,/obj/button/load)) do_load_script()
if(istype(A,/obj/button/new_char)) do_new_script()


Or, the other way around:

obj/button
load
Click()
usr.client.do_load_script()
new_char
Click()
usr.client.do_new_script()


See how those fit?
In response to PirateHead
ill help u make one but i dont know if i can help u with the buttons but i could try
In response to Sin1990
i already made the buttons. i just need the code. i already got help but you might be able to add to it or give me further help. you can add me at [email protected] or yahoo.com
In response to PirateHead
ummm there are undefined procs. can you help me define em?