Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   GuiControlProfile with TextEdit GUis (https://forums.graalonline.com/forums/showthread.php?t=134261251)

MrOmega 12-06-2010 08:42 PM

GuiControlProfile with TextEdit GUis
 
I'm organizing and condensing some of Varia's Scripts and I'm converting all Gui profiles over to using a Varia Profile instead having to set something each time and use 'useownprofile'. Everything is going fine until I get to a TextEdit Box control. The profile is being used by the textedit casue the text of it is working as I programmed, but the actual bitmap is not working, it's just blank, nothing. but if I go into the textedit and do profile.bitmap it works fine. Is there some special handler or command to use a custom profile for textedit boxes?

fowlplay4 12-06-2010 08:48 PM

From what I gathered from the Wiki if you set the bitmap else where without a useownprofile = true; It would overwrite the actual profile. Perhaps that's whats happening.

PHP Code:

  new GuiControlProfile(ObscuredTextEditProfile) {
    
bitmap "defaulttexteditobs.png";
    
cankeyfocus true;
    
transparency 1;
    
opaque 1;
    
fontcolor "255 255 255";
    
fonttype "Arial";
    
fillcolor fillcolorhl fillcolorna "44 46 44";
  } 

Works fine in my case.

MrOmega 12-06-2010 08:53 PM

Ah Thank you! Wish I could rep you. xP

fowlplay4 12-06-2010 09:43 PM

Quote:

Originally Posted by MrOmega (Post 1615154)
Ah Thank you! Wish I could rep you. xP

Based on your post I'm under the impression you've solved your problem. Just curious what fixed it?

MrOmega 12-06-2010 10:03 PM

Quote:

Originally Posted by fowlplay4 (Post 1615164)
Based on your post I'm under the impression you've solved your problem. Just curious what fixed it?

two things
PHP Code:

opaque 1

and

PHP Code:

border 5

need both those to work properly.

MrOmega 01-04-2011 06:15 AM

New question about textedits, How do I offset the x of the text inside the box. I can only adjust the y value not x with textoffset = { #, #};

fowlplay4 01-04-2011 06:21 AM

Sounds like a bug/unfinished functionality, best bet would be altering your bitmap for the text edit.


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

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