I'm having a strange GUI issue. I have several buttons and a few of them do not work. The code looks the same to me so I don't understand. When I double click on the working buttons in the GUI editor it takes me to the location of it's corresponding function. However, when I double click on the broken buttons it simply takes me to the top of the script.
I created the functions for the broken button manually, rather than double clicking. Is there some process which I have to follow to "register" the new functions somewhere. It appears that I can not undo this and just double click to add them. I have triple checked the spelling on the function names and the script but just can't see what I'm doing wrong.
In the following sample code buttonLocWare and buttonLocRep do not work. The other two work flawlessly.
function buttonLocWare_OnClick(GUIControl *control, MouseButton button)
{
player.ChangeRoom(4);
}
function buttonLocRep_OnClick(GUIControl *control, MouseButton button)
{
player.ChangeRoom(5);
}
function buttonLocPub_OnClick(GUIControl *control, MouseButton button)
{
player.ChangeRoom(6);
}
function buttonLocReg_OnClick(GUIControl *control, MouseButton button)
{
player.ChangeRoom(7);
}
Thank you,
-junc
EDIT: Ugh...sorry. Events. Didn't see events.