Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: Changing the window Image  (Read 2581 times)

0 Members and 1 Guest are viewing this topic.

Endrit

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 62
    • View Profile
Changing the window Image
« 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
« Last Edit: February 07, 2012, 11:27:33 AM by Endrit »
Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Changing the window Image
« Reply #1 on: February 07, 2012, 12:32:15 PM »

And the error is?
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Endrit

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 62
    • View Profile
Re: Changing the window Image
« Reply #2 on: February 07, 2012, 02:41:43 PM »

Sorry guys !
I solved the problem !
Just adding a static editor and changing his image X) !
Logged
 

Page created in 0.053 seconds with 23 queries.