SphereCommunity
Gump Hue and Partial Hue and tooltip - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Gump Hue and Partial Hue and tooltip (/Thread-Gump-Hue-and-Partial-Hue-and-tooltip)



Gump Hue and Partial Hue and tooltip - admin phoenix - 05-27-2012 08:42 PM

hello,

at the moment I scripted a new paperdoll for my shard.
there I found a little problem/Bug (maybe).
the one is, when you use gumppic and the hue, this seeems to be buggy.
for example I want to display the skin body gump 0xd from he player with the skin color (not oskin).
I tried to use this one

Code:
gumppic 85 85 <f_check_body <isgm>,<obody>,<tag0.race>> <eval <color>>

and it displayed the wrong hue. even the color number is minus one.
for better understanding here is the code how it works.

Code:
gumppic 85 85 <f_check_body <isgm>,<obody>,<tag0.race>> <eval <color>-1>

as you can see I have to do this with minus 1 to display the right color.

another problem is that I can´t display the gump in partial hue.
the skin gump has an underwear which will not be colored in the hardcoded paperdoll but when I use it via a "sphere" gump the underwear got the same color of the skin.
maybe there is an option for a new feature to add it to the sphere code?
and is there a chance to put an tooltip in the gump not via clilocid like

Code:
tooltip <findlayer(1).name>
because we can do it too in the tooltip trigger for an item/character.


gr

phoenix


RE: Gump Hue and Partial Hue and tooltip - admin phoenix - 05-30-2012 05:31 AM

another bug (or not)
if you put more than one armor, clothing and/or weapon gumppic over and over and you wanna put seperatly an tooltip for this gumppic you only get the tooltip message from the last gumppic you put there
for example

Code:
gumppic 10 10 <hval 036f>
tooltip 300350
gumppic 10 10 <hval 0370>
tooltip 300351 <-- only this tooltip is shown

the reason is that the gump size of all weapons/clothing/armor and so on have the same picture size and tooltip don´t ignore the black area of the gump.
that´s the reason why you can´t use buttons with those gumps/pic. maybe this can be fix for example no reaction if the hue is #0?
because in the hardcoded paperdoll it works Smile

gr

phoenix

ps: any dev around here?


RE: Gump Hue and Partial Hue and tooltip - Valios - 05-31-2012 02:18 AM

phoenix... c'mon do not dissapoint me. Emulating the paperdoll server-side is not a good idea and you may know that. You're totally ignoring what client do wich is the most essential part. You'll always have limitations because the rules are set by the client and not viceversa. You cannot expect it to work 100%.

Server doesn't know about underwears. A solution for you? crop the underwear and create a new gump for it then you give it a higher z in your dialog.


RE: Gump Hue and Partial Hue and tooltip - admin phoenix - 05-31-2012 04:39 AM

Hi Valios,

thanks for answer.
Yes, there are a lot of things that will not work like open option menu or unequipping the clothes via "drag/drop" and underwear (does anybody need this??*g*).
Lot of things can be used via makro like opening the option menu so that is not the problem (I think so).
For me it is a test and maybe it works with some losing.
but maybe we can live with it?
it is an experiment. let me give this a try Smile

but cropping the undewear can be a solution for the underwear problem Smile
maybe that´s a good idea. I can use this body http://www.uo-pixel.de/gump/daji_nakedei5/ and create one underwear Smile
so why not *g*
at the moment I can use so many layer I need that means tattoos, race skins, quiver, weapons on back, wings ....
with the hardcoded things I have to use the layer 20 (maybe) for some things and then I can´t use it for the cap
take a look at the pictures. First try and it is not finished.
[attachment=32]