Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: Nacteni obrazu v okne pomoci metody  (Read 2828 times)

0 Members and 1 Guest are viewing this topic.

hanser

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 216
  • Life is yet simple - over and over...
    • View Profile
    • First Reality developers studio
Nacteni obrazu v okne pomoci metody
« on: July 19, 2005, 12:52:43 AM »

Zdravim!
Mam vytvorene okno se static do ktereho chci nacitat vzdy nejaky obrazek. Udelal jsem si takovouto metodu:
Code: [Select]
method PDA_item(Image, SystemExclusive)
{
if(SystemExclusive==null) SystemExclusive = true;

var Window = Game.LoadWindow("interface\PDA\item_mode.window");
Window.Center();
Window.xImage = Game.ExpandString(Image);

if(SystemExclusive) Window.GoSystemExclusive();
else Window.GoExclusive();
Game.UnloadObject(Window);
}
Pouzitim prikazu:
Code: [Select]
  Game.PDA_item("interface\PDA\izolepa.png", false);
bych chtel nacist obrazek izolepa.png pomoci tohoto scriptu okna:
Code: [Select]
  var Picture = this.GetControl("item");
  Picture.Image = this.xImage;
V definici okna mam vytvorenou jednu static s nazvem item. Cele to ovsem nefunguje a ja porad nevim kde delam chybu a ani to zadnou nahlasi  ???

Co s tim?
Logged
Dobri umelci kopiruji, ti nejlepsi kradou.
- mj. Steve Jobs & Bill Gates

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Nacteni obrazu v okne pomoci metody
« Reply #1 on: July 19, 2005, 08:05:08 AM »

Melo by tam byt Picture.SetImage(this.xImage);
Jinak se to zda byt v poradku.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

hanser

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 216
  • Life is yet simple - over and over...
    • View Profile
    • First Reality developers studio
Re: Nacteni obrazu v okne pomoci metody
« Reply #2 on: July 19, 2005, 09:23:21 AM »

Jo,bylo to tim...diky!
Logged
Dobri umelci kopiruji, ti nejlepsi kradou.
- mj. Steve Jobs & Bill Gates
 

Page created in 0.035 seconds with 23 queries.