Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   centering images (https://forums.graalonline.com/forums/showthread.php?t=18224)

Warcaptain 12-04-2001 02:56 AM

centering images
 
how can you center text shown usign showimg?

like center it at a certain place, kinda like how message text; will center it on the middle of the image.

also how can you center an image, using showimg.


like how on weapons, the image is centered, even if its not 32,32;

Falcor 12-04-2001 03:49 AM

the 2nd parameter in the text showimg..

Observe...

showimg 0,@Tempus sans ITC@c@The "C" befor the 'At' Sign lets me ceter this text,x,y;

you can also do other things...

s for strikeout
b , i , and u for Bold, italics and underline

Falcor 12-04-2001 03:50 AM

As for images. im not quite sure what you mean. Please give me a better description.

Warcaptain 12-04-2001 04:02 AM

you know how on the D button on the window?


no matter what the width\heigth of the weapon is, its always centered.


how can i do that.

Falcor 12-04-2001 04:20 AM

Well youd need to know the width/hieght of the npc img =\

you could make all your images universally 1 size like... 32x32 and then do like..

showimg 0,@arial@c@Weapon,x+width/2,y+hieght;

Warcaptain 12-04-2001 04:26 AM

ill have to do that, but there should be an images[index].width
and heigth

etc

so we can center them etc.

btedji 12-04-2001 05:19 AM

Quote:

Originally posted by Warcaptain
ill have to do that, but there should be an images[index].width
and heigth

etc

so we can center them etc.

that has been requested many times before, hopefully it will be added

Falcor 12-04-2001 06:55 AM

it takes stefan like 5 mins to add another script feature =\

Warcaptain 12-04-2001 07:26 AM

it takes even longer if he is lazy, maybe thats why it takes forever for scripts to get up :-)


All times are GMT +2. The time now is 05:41 PM.

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