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
Gump Menu Help, Page switch
Author Message
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #2
RE: Gump Menu Help, Page switch
Some extra help:
Code:
button 161 307 5541 5542 1 0 0
button 161 466 5541 5542 1 0 0
button 161 386 5541 5542 1 0 0
The last number there is the Button ID, 0 is the default for 'close' .. like when right click on it so never use it (unless you want to do a close button)

Code:
[DIALOG d_levelm button]
ON=0

You must there change that numbers for the ones of the BUTTON lines, right now they are all the same being overrided because of same ID.

At last, your question, you cannot avoid client to close the dialog since the buttons are closing it themselves ... but what you can do is to call the dialog again with something like this:

Code:
ON=1
// Str increase
// IF <src.restest1 i_stat_point> //btw, although it's commented ... 'restest1' should have a whitespace like this: 'restest 1'
src.consume=1 i_stat_point
src.str += 1
if (<src.restest 1 i_stat_point>)// if we still have stat point's item
src.dialog d_levelm
endif
src.sysmessage You don't have any more @1257 Stat Point(s) //Note: You cannot change the color of a half of the text, you can change the whole text's color or do not change it at all, so the '@1257' color code must be before the text: 'src.sysmessage @1257 You don't have any more Stat Point(s).'

One more thing, are you using one i_stat_point per each earned point? so if you get 10 stat points you have 10 items? I suggest you to use tags instead to reduce the item count.
(This post was last modified: 08-10-2015 05:05 AM by XuN.)
08-10-2015 05:04 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Gump Menu Help, Page switch - Osirirs - 08-10-2015, 04:55 AM
RE: Gump Menu Help, Page switch - XuN - 08-10-2015 05:04 AM
RE: Gump Menu Help, Page switch - Osirirs - 08-10-2015, 06:01 AM

Forum Jump:


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