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
Buttontileart
Author Message
Gil Amarth
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: May 2012
Reputation: 0



Post: #1
Buttontileart
I´m trying to improve my server dialogs.

At the wiki I have found that:

buttontileart <x> <y> <up_gump> <down_gump> <pressable> <page> <id> <tileid> <tilehue> <x offset> <y offset> // Add a button with tileart.

What are the differences with a normal button? I don´t find any. Doubt
tileid, x offset, y offset? What are these?
(This post was last modified: 03-15-2013 08:10 PM by Gil Amarth.)
03-15-2013 08:10 PM
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: #2
RE: Buttontileart
i think it let you use graphics from the art.mul instead of the ones in gumpart.mul (or maybe both)

Edit : both, and the graphic from art.mull will be placed +- x,y offset from the graphic taken from the gumpart.mul

Reedit : Anyway, i can't make it work Big Grin
(This post was last modified: 03-15-2013 08:41 PM by darksun84.)
03-15-2013 08:34 PM
Find all posts by this user Like Post Quote this message in a reply
Gil Amarth
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: May 2012
Reputation: 0



Post: #3
RE: Buttontileart
Me neither. xD
03-15-2013 08:47 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: Buttontileart
I can....

Up & down has to be a gump tile over which the actual item is placed making it into a button, offsets do indeed move the item so that it will appear correctly on the button.

Example:
Code:
buttontileart 7 132 07588 07588  1 0 2965 2965 0 -10 -5

where 07588 is a transparent gump tile and 2965 is a sign for a house.

[Image: 2nis46r.jpg]
(This post was last modified: 03-15-2013 11:22 PM by Mordaunt.)
03-15-2013 11:18 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #5
RE: Buttontileart
It lets you place a item on a gump to make a combined button (that is the size of the gump...) The offset lets you fine tune the position of the item on the gump. if the gump is smaller than the item, it trims the item. Here is an example from my poker game:

buttontileart <DEF.PokerSeat<dLOCAL.Seat>.Position.Empty> 1417 1417 1 0 <EVAL <LOCAL.Seat>+10> 0121a 0 20 5
buttontileart <DEF.PokerSeat<dLOCAL.Seat>.Position.Empty> 1417 1417 1 0 <EVAL <LOCAL.Seat>+10> 01218 0 15 0
03-16-2013 01:11 AM
Find all posts by this user Like Post Quote this message in a reply
Gil Amarth
Journeyman
*

Posts: 189
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: May 2012
Reputation: 0



Post: #6
RE: Buttontileart
Understood. Thanks! Smile
03-16-2013 03:07 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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