SphereCommunity
Buttontileart - Printable Version

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



Buttontileart - Gil Amarth - 03-15-2013 08:10 PM

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?


RE: Buttontileart - darksun84 - 03-15-2013 08:34 PM

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


RE: Buttontileart - Gil Amarth - 03-15-2013 08:47 PM

Me neither. xD


RE: Buttontileart - Mordaunt - 03-15-2013 11:18 PM

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.


RE: Buttontileart - RanXerox - 03-16-2013 01:11 AM

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


RE: Buttontileart - Gil Amarth - 03-16-2013 03:07 AM

Understood. Thanks! Smile