Jump to content

[FIXED] GUI transparency problem


WhiteTreePaladin
 Share

Recommended Posts

[Edit] This has been fixed.

I hope that there are no errors in this, since I had to change a bit after posting to remove sections that require changes to other files.

<sprite name="sdStatsBarShader">

<image backcolor="0 0 0 128" size="0 0 100% 1"/>
<image backcolor="0 0 0 128" size="100%-1 1 100% 100%-1"/>
<image backcolor="0 0 0 128" size="0 100%-1 100% 100%"/>
<image backcolor="0 0 0 128" size="0 1 1 100%-1"/>

<image backcolor="0 0 0 96" size="0 1 100% 2"/>
<image backcolor="0 0 0 96" size="100%-2 2 100%-1 100%-2"/>
<image backcolor="0 0 0 96" size="0 100%-2 100% 100%-1"/>
<image backcolor="0 0 0 96" size="1 2 2 100%-2"/>

<image backcolor="0 0 0 64" size="0 2 100% 3"/>
<image backcolor="0 0 0 64" size="100%-3 3 100%-2 100%-3"/>
<image backcolor="0 0 0 64" size="0 100%-3 100% 100%-2"/>
<image backcolor="0 0 0 64" size="2 3 3 100%-3"/>

</sprite>


<!-- Big unit icon -->
<object size= "50%-53 -10 50%+53 96" type="image" name="sdIconOutline" sprite="sdIconOutline" tooltip_style="snToolTip">
<object size= "3 3 100%-3 100%-3" type="image" name="sdIcon" ghost="true"/>

<!-- Health bar -->
<object size="100%+8 16 100%+18 100%" type="image" name="sdHealth" tooltip="Hitpoints" tooltip_style="snToolTip">
<object type="image" sprite="sdHealthBackground" ghost="true"/>
<object type="image" sprite="sdHealthForeground" ghost="true" name="sdHealthBar"/>
<object type="image" sprite="sdStatsBarShader" ghost="true"/>
</object>

<!-- Stamina bar -->
<object size="100%+20 16 100%+30 100%" type="image" name="sdStamina" tooltip="Stamina" tooltip_style="snToolTip">
<object type="image" sprite="sdStaminaBackground" ghost="true"/>
<object type="image" sprite="sdStaminaForeground" ghost="true" name="sdStaminaBar"/>
<object type="image" sprite="sdStatsBarShader" ghost="true"/>
</object>

</object>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...