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-25-2014 06:48 AM

i understand, so as i see it, its not possible to do tthat kind of scrolling inside a dialog? and hide/show text pressing a checkbox?


RE: Skill gump and dialog - darksun84 - 06-25-2014 06:53 AM

hiding and showing it's possible, i think it's also possible to do a a sort of scrolling but it will be a bad experience for your players (and for you also) Tongue


RE: Skill gump and dialog - Extreme - 06-25-2014 07:24 AM

You can scroll only texts using HTMLGUMP/DHTMLGUMP but not gumps.


RE: Skill gump and dialog - kn4tseb - 06-25-2014 07:29 AM

Okey, about the hiding/showing, which dialog object should i use?

would you give me a small example?

Thanks!


RE: Skill gump and dialog - Extreme - 06-25-2014 08:55 AM

Hide/show what?


RE: Skill gump and dialog - kn4tseb - 06-25-2014 12:50 PM

hide/show an array of text, im trying to understand if its another page, the same one, a group? cant figure..

default skill gump when you press the checkbox, it "shows/hides" the skills corresponding to that, like combat contains anatomy, archery, fencing, etc.


RE: Skill gump and dialog - Feeh - 06-25-2014 01:12 PM

If you want a skill-menu like gump, well, thats not possible. Gumps sent by the server has a limited amount of features. If you want to hide/show information on your gump, you must code it to simulate hiding otherwise there isn't any known way Sad

Look at your sphere_dialog.scp. It contains a list of everything that we know as possible to do with gumps


RE: Skill gump and dialog - kn4tseb - 06-25-2014 01:18 PM

will do, thanks feeh


RE: Skill gump and dialog - kn4tseb - 06-25-2014 02:22 PM

okey i made it to simulate a "hiding/showing" now i just need to know one more thing
how can i calculate a x point depending on lenght so i can have all line words ending in the same pixel?
example:
-------HELLO
------------I
-------WANT
--------THIS
------WORds
----------TO
---------end
--attheSAME
-------PIXEL

is it possible?


RE: Skill gump and dialog - Extreme - 06-26-2014 01:23 AM

<EVAL STRLEN("YOUR TEXT")>
DHTMLGUMP + HTML CODES (<DEF.DIV_RIGHT>"YOUR TEXT"<DEF.DIV_END>)