Text parser implementation

Started by JoelCBarker, Thu 14/08/2003 01:47:23

Previous topic - Next topic

JoelCBarker

I'm confused about where some script should go, I read the everything and I'm still stuck. The tutorial says my text parser actions should be triggered by an inter_face click of the textbox, which is obj 2 gui 0 in this instance. so.... Dis what I got:

function interface_click(int interface, int button, string input) {
 if (interface == 1) {
//gui 1 actions
 }
 else if (interface == 0) {
//my stuff goes here?
 }
}
If so, how do I refer to my SWEET text box?
I'm gonna go get my if on...

Ginny

Hmm, as I understand it, you should use:
if (button==2) {
//your stuff for the parser here
}

inside this:
else if (interface==0) {
// here
}

It seems a bit odd that it uses the word button when it's a text box, but that's the parameter so this should work I think. :)
Try Not to Breathe - coming sooner or later!

We may have years, we may have hours, but sooner or later, we push up flowers. - Membrillo, Grim Fandango coroner

SMF spam blocked by CleanTalk