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?