View Single Post
04-03-23, 04:02 AM   #5
Benalish
A Flamescale Wyrmkin
 
Benalish's Avatar
Join Date: Dec 2012
Posts: 123
I'm so interested in the FauxScrollFrame because I'm trying to set borders on the two buttons, but with disastrous results



Code:
<ScrollFrame name="$parentScrollBar" parentKey="scroll" inherits="FauxScrollFrameTemplate" hidden="false">
	<Anchors>
		<Anchor point="TOPLEFT" x="0" y="-8"/>
		<Anchor point="BOTTOMRIGHT" x="-25" y="0"/>
	</Anchors>
	<Scripts>
		<OnLoad>
		    local backdrop = {
		    edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
		    tile = true,
	            tileSize = 8,
		    edgeSize = 16,
		    insets = {
			left = 3,
			right = 3,
			top = 3,
		        bottom = 3
		        }
	            }
	            _G[self:GetName().."ScrollBarScrollUpButton"]:SetBackdrop(backdrop)
	        </OnLoad>
		<OnVerticalScroll>
	            FauxScrollFrame_OnVerticalScroll(self, offset, 16, self:Update())
                </OnVerticalScroll>
	</Scripts>
</ScrollFrame>

Last edited by Benalish : 04-03-23 at 04:09 AM.
  Reply With Quote