View Single Post
  #1  
Old 05-21-2009, 06:20 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
GuiWindowProfile- problems

Why hello there!
So, I'm creating a weapon full of profiles, so that it can be used many of times from one weapon. However, when using this

HTML Code:
  //In the Profile weapon
public function onLoadProfiles() {
  new GuiWindowProfile("Main") {
    with(profile) {
      bitmap = "gui_mainprofile-back.png";
    }
  }
}

  //In another NPC
function onLoad() {  
  Profiles.onLoadProfiles();
  new GuiWindowCtrl("Profiletest") {
    profile = Main;
    
    extent = {300, 300};
    position = {100, 100};
  }
}
Will show the image, but it's got an invisable middle part!
(Test 1 in the image below)


However, when using
HTML Code:
function onLoad() {  
  new GuiWindowCtrl("Profiletest") {
    useownprofile = true;
    with(profile) {
      bitmap = "gui_mainprofile-back.png";
    }

    extent = {300, 300};
    position = {100, 100};
  }
}
It'll show 'Test2' in the image below with the part coloured in... any ideas?
Attached Thumbnails
Click image for larger version

Name:	gui_Test.png
Views:	188
Size:	26.4 KB
ID:	48491  
Reply With Quote