GUIs and Edits and Scripts, Oh My!

Started by rtf, Wed 18/02/2004 05:42:03

Previous topic - Next topic

rtf

OK, this is probably the last problem that I will have before my game comes out, but anyways...

I have just created my GUI.  Check that, I have modified the INVENTORY GUI that comes with the game (Not the default one) to suit my apparel.
I assumed that all the coding was already included in the INVENTORY GUI, so I fired up my game to give it a test drive.

It popped up OK, and my test item was in there good, but none of the "Look at" of "OK" buttons worked.

I diddnt panic.  No problem.
I should just modify the code to suit my needs, right?


WRONG!!!!!!!

When I click on "Edit Script," i get this really crappy dialog box that says:

   An attempt was made to edit a script function that does not exist.  Ensure that you have not manually deleted any automatically created script functions.  AGS can not continue.
then it closes.  Boo-hoo  :'(

I dont think I have manually deleted any automatically created script functions.  That would be the devil's work to insult CJ like that.  hahaha

but seriously, I kinda need this to be sorted out.

thanks for helping me out.
I fail at art.

Gilbert

Hmmm try to edit the global script, and check if the function interface_click () was indeed there, if not, it's possible because you had accidentally deleted it or some disaster happened. Add the function back yourself in this case and test if it works:

function interface_click(int interface, int button) {
//you may add content here later
}

rtf

yesssss
Machine triumphs over man!

Thanks man
I fail at art.

SMF spam blocked by CleanTalk