Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-24-2009, 03:17 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
findImg, style, and a loop

I'm rewriting Era's nickname system, and the code I'm using the show the nickname is:

PHP Code:
  with (findImg(i)) {
    
nick_x;
    
nick_y;
    
    
layer 1;
    
zoom thiso.nickZoom;
    
    
text nick;
    
textshadow true;
    
shadowcolor obj.tmp.nick_shadow;
    
    
font $pref::graal::defaultfontname;
    
style "bc";
  } 
However, the problem is that it will display the style as "bc" (bold and centered) for the first frame (0.05 second loop), then after that, it will always act as if no style is set (not bold, not centered). If I only run the first frame, it will stay bold and centered.

I've found I can place hideimg(i) before re-showing the image, but I'd like to avoid this as it shouldn't be needed.

This code, however, works flawlessly:

PHP Code:
  showText(inick_xnick_y$pref::graal::defaultfontname"bc"nick); 
Help?
__________________
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 01:42 PM.


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