/
FauxScrollFrame_SetOffset(explorerScrollBar, 0); |
FauxScrollFrame_SetOffset(clScrollBar, 0); |
mainWindow:SetMinResize(600, 400); |
mainWindow:SetMinResize(610, 450); |
PanelTemplates_SetNumTabs(mainWindow, 3); |
Torta.gui:OnTabClicked(1); |
</Layer> |
</Layers> |
<Frames> |
<ScrollFrame name="$parentScrollBar" inherits="FauxScrollFrameTemplate"> |
<ScrollFrame name="$parentScrollBar" inherits="TortaFauxScrollFrameTemplate"> |
<Anchors> |
<Anchor point="TOPLEFT" relativeTo="$parentHeaderTexture" relativePoint="BOTTOMLEFT"> |
<Offset y="-1"/> |
</OnVerticalScroll> |
<OnShow> |
Torta.gui:UpdateExplorerScrollBar(); |
getglobal(self:GetName() .. "ScrollBar"):SetValue(0); |
local scrollBar = getglobal(self:GetName() .. "ScrollBar"); |
scrollBar:SetValue(scrollBar:GetValue()); |
</OnShow> |
</Scripts> |
</ScrollFrame> |
<Anchor point="BOTTOM"/> |
</Anchors> |
</FontString> |
<Texture name="$parentNPPLogo" file="Interface\AddOns\Torta\Media\NPP"> |
<Size x="110" y="32"/> |
<Anchors> |
<Anchor point="BOTTOM"> |
<Offset y="10"/> |
</Anchor> |
</Anchors> |
</Texture> |
</Layer> |
</Layers> |
</Frame> |
</Layer> |
</Layers> |
<Frames> |
<ScrollFrame name="$parentScrollBar" inherits="FauxScrollFrameTemplate"> |
<ScrollFrame name="$parentScrollBar" inherits="TortaFauxScrollFrameTemplate"> |
<Anchors> |
<Anchor point="TOPLEFT" relativeTo="$parentHeaderTexture" relativePoint="BOTTOMLEFT"> |
<Offset y="-1"/> |
<OnShow> |
Torta.gui:CheckCLButtons(); |
Torta.gui:UpdateCLScrollBar(true); |
getglobal(self:GetName() .. "ScrollBar"):SetValue(0); |
-- print(getglobal(self:GetName() .. "ScrollBar"):GetValue()); |
local scrollBar = _G[self:GetName() .. "ScrollBar"]; |
-- When the UI first loads, the scrollbar's slider is set to 0 |
-- but the slider marker thing (referred to as the "thumb texture" |
-- in UIPanelTemplates.xml) is invisible. This fixes that. |
if scrollBar:GetValue() == 0 then |
scrollBar:SetValue(0); |
end |
</OnShow> |
<OnUpdate> |
Torta.gui:CheckCLButtons(); |
self:GetParent().check = self; |
</OnLoad> |
<OnUpdate> |
-- This is retardedly hackish, but the anchors trick doesnt work for some reason (WTF?!?!?!) |
-- This is retardedly hackish, but the anchors trick doesnt work for some reason (WTF!) |
-- This is roughly how Checklist2 does it. |
self:GetParent().text:SetWidth(self:GetParent():GetWidth() - 38); |
</OnUpdate> |
</Frames> |
</Button> |
<ScrollFrame name="TortaFauxScrollFrameTemplate" inherits="FauxScrollFrameTemplate" virtual="true"> |
<Layers> |
<Layer level="BACKDROP"> |
<Texture> |
<Color a="0.25"/> |
<Anchors> |
<Anchor point="TOPLEFT" relativePoint="TOPRIGHT"> |
<Offset x="6"/> |
</Anchor> |
<Anchor point="BOTTOMRIGHT" relativePoint="BOTTOMRIGHT"> |
<Offset x="22"/> |
</Anchor> |
</Anchors> |
</Texture> |
</Layer> |
</Layers> |
</ScrollFrame> |
</Ui> |