The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Skill gump and dialog
Author Message
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #11
RE: Skill gump and dialog
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?
06-25-2014 06:48 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #12
RE: Skill gump and dialog
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
(This post was last modified: 06-25-2014 07:12 AM by darksun84.)
06-25-2014 06:53 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #13
RE: Skill gump and dialog
You can scroll only texts using HTMLGUMP/DHTMLGUMP but not gumps.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
06-25-2014 07:24 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Extreme's post
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #14
RE: Skill gump and dialog
Okey, about the hiding/showing, which dialog object should i use?

would you give me a small example?

Thanks!
06-25-2014 07:29 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #15
RE: Skill gump and dialog
Hide/show what?

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
06-25-2014 08:55 AM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #16
RE: Skill gump and dialog
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.
(This post was last modified: 06-25-2014 12:52 PM by kn4tseb.)
06-25-2014 12:50 PM
Find all posts by this user Like Post Quote this message in a reply
Feeh
Sphere Developer
*****

Posts: 156
Likes Given: 6
Likes Received: 40 in 29 posts
Joined: Sep 2012
Reputation: 4



Post: #17
RE: Skill gump and dialog
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

Feeh/Epila - Nightly releases / SphereWiki / Github Issues / Sphere's GitHub
(This post was last modified: 06-25-2014 01:13 PM by Feeh.)
06-25-2014 01:12 PM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #18
RE: Skill gump and dialog
will do, thanks feeh
06-25-2014 01:18 PM
Find all posts by this user Like Post Quote this message in a reply
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #19
RE: Skill gump and dialog
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?
(This post was last modified: 06-25-2014 02:27 PM by kn4tseb.)
06-25-2014 02:22 PM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #20
RE: Skill gump and dialog
<EVAL STRLEN("YOUR TEXT")>
DHTMLGUMP + HTML CODES (<DEF.DIV_RIGHT>"YOUR TEXT"<DEF.DIV_END>)

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
06-26-2014 01:23 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 7 Guest(s)