-
Posted by ALeX-L on Sun, 19 Jul 2009 20:55:07
i've created a virtul button template and used it five times in one frame. This five buttons are invisible before cursor rolls over it.
Here's code of template
<Button name = "LoadScrollButtonTemplate" virtual="true" visible="true"> <Size> <AbsDimension x="120" y="16" /> </Size> <NormalFont inherits="GameFontHighlight" justifyH="LEFT"/> <HighlightTexture file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD"/> <HighlightFont style="GameFontHighlightSmall"/> <DisabledFont style="GameFontHighlightSmall"/> <Scripts> <OnClick> SaveTitleEditBox:SetText(this:GetText()); </OnClick> </Scripts> </Button>
and the one of it usings in frame
<Button name="LoadScrollButton1" inherits="LoadScrollButtonTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="LoadScrollBar" relativePoint="TOPLEFT"> <Offset> <AbsDimension x="8" y="0"/> </Offset> </Anchor> </Anchors> </Button>
I need them visible all the time. What's wrong?
-
Posted by jnwhiteh on Sun, 19 Jul 2009 20:59:17
Any textures placed in the "highlight" layer are ONLY visible when the mouse is over them. Rather than using
HighlightTexture
andHighlightFont
, useNormalTexture
andNormalFont
. -
Posted by ALeX-L on Sun, 19 Jul 2009 21:08:45
Sry) Corrected the first message.
-
Posted by jnwhiteh on Sun, 19 Jul 2009 21:09:12
No problem!
Any textures placed in the "highlight" layer are ONLY visible when the mouse is over them. Rather than using
HighlightTexture
andHighlightFont
, useNormalTexture
andNormalFont
. -
Posted by ALeX-L on Sun, 19 Jul 2009 21:24:42
Thanks, I know it. There were stupid mistake: "inherit" instead of "style" :) This topic can be deleted)