Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-31-2011, 07:07 AM
greggiles greggiles is offline
Registered User
greggiles's Avatar
Join Date: Sep 2007
Posts: 149
greggiles has a spectacular aura about
Text zoom limit?

I am drawing text and I'm useing the this.zoom to set the size. (this zoom is not actual script, just the function used) Anyway, it seems the max zoom i believe is 5 ( zoom = 5). If i go past that, the size wont change. Yet, for images, i can make the value as large as i want. Is there a limit on the zoom for txt? And if so, is there a way to get past it?
Reply With Quote
  #2  
Old 08-31-2011, 07:30 AM
furry_mougle furry_mougle is offline
big heart
furry_mougle's Avatar
Join Date: Aug 2011
Posts: 42
furry_mougle is an unknown quantity at this point
The max zoom goes over 5...
Reply With Quote
  #3  
Old 08-31-2011, 07:42 AM
greggiles greggiles is offline
Registered User
greggiles's Avatar
Join Date: Sep 2007
Posts: 149
greggiles has a spectacular aura about
Yes i know. Like i said, it works for imgs, but when i try and go past 5 for txt, it doesnt work
Reply With Quote
  #4  
Old 08-31-2011, 08:18 AM
furry_mougle furry_mougle is offline
big heart
furry_mougle's Avatar
Join Date: Aug 2011
Posts: 42
furry_mougle is an unknown quantity at this point
Quote:
Originally Posted by greggiles View Post
Yes i know. Like i said, it works for imgs, but when i try and go past 5 for txt, it doesnt work
I was referring to text.
Reply With Quote
  #5  
Old 08-31-2011, 08:54 AM
greggiles greggiles is offline
Registered User
greggiles's Avatar
Join Date: Sep 2007
Posts: 149
greggiles has a spectacular aura about
Well what specific script are you useing. Maby im not useing the right one, or most efficient one. Correct me if im wrong, there are multiple ways to write it.
Reply With Quote
  #6  
Old 08-31-2011, 12:33 PM
SoundFreak SoundFreak is offline
Music Artist
SoundFreak's Avatar
Join Date: Aug 2011
Posts: 15
SoundFreak is on a distinguished road
Same issue. I can only go up to 2 though.
Reply With Quote
  #7  
Old 08-31-2011, 12:51 PM
greggiles greggiles is offline
Registered User
greggiles's Avatar
Join Date: Sep 2007
Posts: 149
greggiles has a spectacular aura about
Maby mine only goes to 2 too. Im just getting dilusional with frustration.
Reply With Quote
  #8  
Old 08-31-2011, 02:53 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Why don't you just adjust the font-size?
__________________
Quote:
Reply With Quote
  #9  
Old 08-31-2011, 03:17 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Might want to reconsider anyways. Larger font rendering is a lot more intensive. Do you really need to be rendering a font that large?
Reply With Quote
  #10  
Old 08-31-2011, 04:20 PM
blackbeltben blackbeltben is offline
Registered User
Join Date: Aug 2011
Posts: 83
blackbeltben is on a distinguished road
Quote:
Originally Posted by fowlplay4 View Post
Why don't you just adjust the font-size?
can you give an example please?
Reply With Quote
  #11  
Old 08-31-2011, 04:27 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
I don't believe you can do it with a normal showimg, but it should work with GUIs.

PHP Code:
//#CLIENTSIDE
function onCreated() {
  new 
GuiTextCtrl("TxtObject") {
    
profile GuiBlueTextProfile;
    
useownprofile true;
    
profile.fontsize 72;
    
100;
    
text "Large text";
  }

You should explain why you need the large text to begin with because there's probably a better solution for your problem.
__________________
Quote:
Reply With Quote
  #12  
Old 08-31-2011, 05:01 PM
blackbeltben blackbeltben is offline
Registered User
Join Date: Aug 2011
Posts: 83
blackbeltben is on a distinguished road
We (as in greggiles and I) are making a simple script where when you press "E", it displays your EXP. And then hides and blablabla. The script works fine, the only issue is that we want the numbers bigger bigger BIGGER

Here's the section that I'm assuming needs editing

PHP Code:
 showText(24170230$pref::graal::defaultfontname"c""" @(player.clientr.exp));
 
changeImgColors(2411111);
  
findImg(241).zoom 5;
  
changeImgVis(24115); 
Reply With Quote
  #13  
Old 08-31-2011, 05:27 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
You're putting it on a screen layer (>=4) so you can definitely use GUI Objects to accomplish that instead of using zoom and a showimg object.

I question the necessity of obscenely large text to display a single value though.
__________________
Quote:
Reply With Quote
  #14  
Old 08-31-2011, 05:34 PM
0PiX0 0PiX0 is offline
Coder
0PiX0's Avatar
Join Date: Jan 2011
Posts: 130
0PiX0 is a jewel in the rough0PiX0 is a jewel in the rough
Simple work-around:
PHP Code:
with (textimage) {
  
stretchx 5;
  
stretchy 5;

However, it turns into a blurry mess.
Reply With Quote
  #15  
Old 08-31-2011, 05:35 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
If it's just numbers for experience you could use bitmap fonts instead. Also lets you apply more complex things(such as outlines, gradients to the text) and overall better appeal. It's fairly simple to script as well.
Reply With Quote
Reply


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 08:59 AM.


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