SphereCommunity
Skill gump and dialog - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Skill gump and dialog (/Thread-Skill-gump-and-dialog)

Pages: 1 2 3 4


RE: Skill gump and dialog - kn4tseb - 06-26-2014 04:24 AM

nice, but strlen evaluates how many characters does a text have and 1 character != 1 pixel so im still confuse xD


RE: Skill gump and dialog - Extreme - 06-26-2014 04:36 AM

Same pixel or same position?


RE: Skill gump and dialog - kn4tseb - 06-26-2014 04:46 AM

same X position

want diferent dtexts or dhtmlgumps to end at the same x point

by default text begins at the x point set, left to right, i want to know if it's possible to make something inverse, the x point would be the starting point but from right to left

i hope i am not confusing you xd


RE: Skill gump and dialog - Extreme - 06-26-2014 08:13 AM

Hahahah Yes, you are!

use DHTMLGUMP X Y ... <DEF.DIV_RIGHT>YOUR TEXT


RE: Skill gump and dialog - kn4tseb - 06-26-2014 08:54 AM

okey ahhahaha i think that def will do it, gonna try it right away.

Worked perfectly, thanks again, i have really lost the count of how many thanks i have given to you xDDDD

PD: i know it's so very unlikely but if for some reason this saturday chile manage to beat brazil, i hope you won't get mad at me xDDDD


RE: Skill gump and dialog - kn4tseb - 06-26-2014 12:24 PM

One last question for today, is it possible to add a border to a text with different color?


RE: Skill gump and dialog - admin phoenix - 06-26-2014 05:26 PM

no, you canĀ“t do it.


RE: Skill gump and dialog - Seron - 06-27-2014 01:25 AM

You kinda can give text a border in a certain color

Code:
for x -1 1
for y -1 1
dhtmlgump <eval 10-<local.x>> <eval 10-<local.y>> 10 10 0 0 <DEF.BFONT_BLACK>Test
endfor
endfor

dhtmlgump 10 10 10 10 0 0 <DEF.BFONT_RED>Test

This way you would have a red text with a black border.


RE: Skill gump and dialog - kn4tseb - 06-27-2014 01:45 AM

gonna try it. thx


RE: Skill gump and dialog - Extreme - 06-27-2014 02:42 AM

kn4tseb, you can put the same text behind the main but using an offset...

About the match, I would like to the best played team wins Big Grin