Can I change the window Image by script after pushing the button ?
I had this script and my window name is omega :
#include "scripts\base.inc"
#include "scripts\keys.inc"
//variabile acensione e spegnimento Omega the mobile phone/////////////////////////////////////////////////////////////////////////////
var acensione ;
acensione = 0 ;
////////////////////////////////////////////////////////////////////////////////
on "button1" {
if (acensione == 0){
acensione = 1 ;
var Image_on ;
Image_on = this.GetControl("omega");
Image_on.SetImage("interface\omega\omega on.png");
}else{
Game.UnloadObject(this);
}
}
I have allways the same error