Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: Endrit on February 07, 2012, 11:03:41 AM

Title: Changing the window Image
Post 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
Title: Re: Changing the window Image
Post by: metamorphium on February 07, 2012, 12:32:15 PM
And the error is?
Title: Re: Changing the window Image
Post by: Endrit on February 07, 2012, 02:41:43 PM
Sorry guys !
I solved the problem !
Just adding a static editor and changing his image X) !