Help with GUI


(matsy) #1

I’m going to be honest here and say I’ve never attempted any sort of modding before but I thought I may give it ago…

Anyway I decided to follow the GUI Notify Icon tutorial on the Mod Wiki, I followed it all the way through but I don’t have a clue how to test it to see if it has worked…

I tried loading up a map via devmap but I get errors like " ERROR: Error: file script/tools/repair_drone.script, line 361: Unknown value “UpdateGUI” " . So I’ve obviously done something wrong but I’m pretty sure I’ve done what its said…


(TinMan) #2

You’ll need to declare the UpdateGUI function in the object declaration, put the line:

void UpdateGUI();

Somewhere in:

object repair_drone {
...
}

(matsy) #3

[QUOTE=TinMan;238981]You’ll need to declare the UpdateGUI function in the object declaration, put the line:

void UpdateGUI();

Somewhere in:

object repair_drone {
...
}

[/QUOTE]

School boy error, oops!