Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: Endrit on February 07, 2012, 11:03:41 AM
-
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
-
And the error is?
-
Sorry guys !
I solved the problem !
Just adding a static editor and changing his image X) !