Thread Tools Display Modes
04-01-23, 05:31 PM   #1
Benalish
A Flamescale Wyrmkin
 
Benalish's Avatar
Join Date: Dec 2012
Posts: 122
FauxScrollFrameTemplate source code

Hello. Where I can find FauxScrollFrameTemplate source code? I'd like to know which the Button Up and Button Down textures are, and if there is a way to know all the WoW UI textures.

Can you help me?
  Reply With Quote
04-01-23, 06:16 PM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,857
Export all the UI code and textures for your viewing pleasure.

For the scroll button textures,
Code:
UP = {
	Normal = "Interface\\Buttons\\UI-ScrollBar-ScrollUpButton-Up",
	Pushed = "Interface\\Buttons\\UI-ScrollBar-ScrollUpButton-Down",
	Disabled = "Interface\\Buttons\\UI-ScrollBar-ScrollUpButton-Disabled",
	Highlight = "Interface\\Buttons\\UI-ScrollBar-ScrollUpButton-Highlight",
},
DOWN = {
	Normal = "Interface\\Buttons\\UI-ScrollBar-ScrollDownButton-Up",
	Pushed = "Interface\\Buttons\\UI-ScrollBar-ScrollDownButton-Down",
	Disabled = "Interface\\Buttons\\UI-ScrollBar-ScrollDownButton-Disabled",
	Highlight = "Interface\\Buttons\\UI-ScrollBar-ScrollDownButton-Highlight",
},
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 04-02-23 at 12:11 AM.
  Reply With Quote
04-02-23, 08:18 AM   #3
Benalish
A Flamescale Wyrmkin
 
Benalish's Avatar
Join Date: Dec 2012
Posts: 122
Very well! I extrated the BlizzardInterfaceCode. Now, where I can find the FauxScrollFrameTemplate related file?
  Reply With Quote
04-02-23, 08:53 AM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,857
Find a search tool and look for
Code:
name="FauxScrollFrameTemplate
or Interface\SharedXML\SecureUIPanelTemplates.xml and SecureUIPanelTemplates.lua

But it inherits other templates that interhit other templates ... so it's a bit of a hunt to bring it all together (like many things in the Blizzard UI)
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote
04-03-23, 04:02 AM   #5
Benalish
A Flamescale Wyrmkin
 
Benalish's Avatar
Join Date: Dec 2012
Posts: 122
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
04-03-23, 09:17 AM   #6
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,857
I don't think it will achieve exactly what you want, which would probably require custom textures, but something l ike:
Code:
local backdrop = {
	edgeFile = "Interface\\Tooltips\\UI-Tooltip-Border",
	edgeSize = 3,
	insets = {
		left = 0,
		right = 0,
		top = 0,
		bottom = 0,
	}
}
_G[self:GetName().."ScrollBarScrollUpButton"]:SetBackdrop(backdrop)
_G[self:GetName().."ScrollBarScrollUpButton"]:GetNormalTexture():SetTexCoord(-0.0015, 1.0015, -0.0015, 1.0015)
_G[self:GetName().."ScrollBarScrollUpButton"]:GetPushedTexture():SetTexCoord(-0.0015, 1.0015, -0.0015, 1.0015)
_G[self:GetName().."ScrollBarScrollUpButton"]:GetDisabledTexture():SetTexCoord(-0.0015, 1.0015, -0.0015, 1.0015)
_G[self:GetName().."ScrollBarScrollUpButton"]:GetHighlightTexture():SetTexCoord(-0.0015, 1.0015, -0.0015, 1.0015)
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 04-03-23 at 01:46 PM.
  Reply With Quote
04-08-23, 02:49 PM   #7
Benalish
A Flamescale Wyrmkin
 
Benalish's Avatar
Join Date: Dec 2012
Posts: 122
This is the result for the ButtonUp:



As you can see, there is a huge margin between the button and the edges. as you can see, there is a huge margin between the button and the edges. The frame has been scaled by a factor of 3 for better display
  Reply With Quote
04-08-23, 03:01 PM   #8
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,857
The reason for the "I don't think it will achieve exactly what you want, which would probably require custom textures" quote.

You might get slightly better by fiddling with the coords/edgesize etc. but, the Backdrop borders take up edge space, the beveled corners require it be more than just the border line width. You could export the FauxScroll button textures and resize the image/add a border and use those instead.

You could maybe add seperate "border" textures to the buttons.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 04-08-23 at 03:23 PM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » FauxScrollFrameTemplate source code

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off