Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-25-2009, 09:21 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
GuiProfile problems

So, I have a weapon added to the player on login. It controls all the profiles on Bomy Island.

HTML Code:
//#CLIENTSIDE
function onCreated() {
  this.onLoadProfiles();
}

function onLoadProfiles() {
  new GuiTextCtrl("BomyIsland_KingdomHeaderText") {
    with(profile) {
      fontcolor = {255, 255, 255, 255};
      fontsize = 24;
      fonttype = "Arial";
      shadowcolor = {25, 25, 25, 255};
      shadowoffset = {2, 2};
      textshadow = true;
    }
  }

  new GuiTextCtrl("BomyIsland_KingdomText") {
    with(profile) {
      fontcolor = {255, 255, 255, 255};
      fontsize = 14;
      fonttype = "Arial";
      shadowcolor = {25, 25, 25, 255};
      shadowoffset = {2, 2};
      textshadow = true;
    }
  }
}
So that pretty much works (I think...), however when I try to draw the chat it's coming up as not found and as though that profile doesn't exist and draws Graals default profile.

Here's the code I am using to draw it
HTML Code:
    new GuiMLTextCtrl("Kingdom_Text-Information") {
      profile = BomyIsland_KingdomHeaderText;
      position = {30, 20};
      extent = {100, 50};
        
      text = "Information";
    }
Any ideas? thank you. The text is being displayed after the profiles have been loaded so that's not the problem.
I made all the profiles in a weapon so that it's called only on login or updated, is this a bad idea...?
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 07:15 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.