Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Gui Profiles (https://forums.graalonline.com/forums/showthread.php?t=73520)

Chandler 04-16-2007 07:34 PM

Gui Profiles
 
Having a problem while creating my own, here's what I have so far:

The inventory:
HTML Code:

  getProfiles();
 
  if (inventoryOpen)
  {
    core.updateItems();
    new GuiControl("inventory_Main")
    {
      profile = "guiMenu";
      position = {temp.inventoryPosition[0], temp.inventoryPosition[1]};
      extent = {temp.inventorySize[0], temp.inventorySize[1]};
    }
  }

He's the class that finds the profile "guiMenu", however it isn't using that as a profile.

HTML Code:

//#CLIENTSIDE
function getProfiles()
{
  echo("DRAWING");
  new GuiControlProfile("guiMenu")
  {
    fillColor = {255, 0, 0};
    fontColor = {255, 255, 255};
 
    bitmap = "block.png";
 
    opaque = false;
    transparency = 0.5;
  }
}

I am receiving the "DRAWING" in my Console Log, however, It's not using it!

Rapidwolve 04-16-2007 08:07 PM

You called the function getProfiles(); and in that function it says echo("DRAWING"); I don't see why you shouldn't be getting that message

Chandler 04-16-2007 08:08 PM

It's not using the profile, It's displaying the message. [Sorry, if that wasn't clear]

sam_is_me 05-14-2007 06:03 PM

Oh i see the problem.
Once it calls the profile, it updates the items, which calls the echo command into effect, where it triggers the rc to send the "DRAWING" onto the GUI of your Q.
To fix it simply get rid of the echo command, and you should be set!
Glad I could help.

Chandler 05-14-2007 06:22 PM

Woah, thanks!! :p

sam_is_me 05-15-2007 02:19 AM

i try, i try
<3

Sum41Freeeeek 05-15-2007 02:28 AM

Quote:

Originally Posted by sam_is_me (Post 1307733)
Oh i see the problem.
Once it calls the profile, it updates the items, which calls the echo command into effect, where it triggers the rc to send the "DRAWING" onto the GUI of your Q.
To fix it simply get rid of the echo command, and you should be set!
Glad I could help.

what the hell

cbk1994 05-15-2007 03:29 AM

What the hell are you talking about, not to sound like the person above me. Echo won't stop the script x.x

Twinny 05-15-2007 06:42 AM

Indeed. It's not like an echo() is a return statement: what the hell?

Deadly_Killer 05-15-2007 07:44 AM

It was a joke, it was spam, it was retarded.

Sum41Freeeeek 05-15-2007 09:13 PM

Quote:

Originally Posted by cbkbud (Post 1307917)
What the hell are you talking about, not to sound like the person above me. Echo won't stop the script x.x

it's not that. I never knew Sam knew anything about gscript, lol (sam_is_me, GP from Era)

sam_is_me 05-16-2007 06:43 PM

Its a joke, you *****s. Chandler got it, thats all I was aiming for.

TheJames 05-18-2007 06:43 AM

For a minute I was speechless.... LOL

Kristi 05-18-2007 02:39 PM

I found that funny ^-^

Inverness 05-18-2007 10:58 PM

I'm sorry to say that wasn't a very good joke, well more like I didn't think it was X_X, especially since some people actually are that bad at GScript =(

xXziroXx 05-18-2007 11:00 PM

Wow, I was actually fooled by it. Probably because I didn't bother to look at the script, I was like "Wtf, it worked? Oh well, what's for dinner?"

xAndrewx 05-22-2007 09:54 PM

You're so illegal! Don't give up your day job.

zokemon 05-23-2007 03:06 AM

Quote:

Originally Posted by xXziroXx (Post 1309228)
Wow, I was actually fooled by it. Probably because I didn't bother to look at the script, I was like "Wtf, it worked? Oh well, what's for dinner?"

My situation unfolded quite the same!
Beef Stew.


All times are GMT +2. The time now is 08:15 AM.

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