vanilla-wow-addons – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | <Ui xmlns="http://www.blizzard.com/wow/ui/" |
2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||
3 | xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd"> |
||
4 | |||
5 | <Script file="paging.lua"/> |
||
6 | |||
7 | <CheckButton name="BOptionsPagingButton" inherits="BongosCheckButtonTemplate" virtual="true"> |
||
8 | <Scripts> |
||
9 | <OnClick> |
||
10 | BActionBar.SetPaging(tonumber(this:GetText()), this:GetChecked()); |
||
11 | </OnClick> |
||
12 | <OnMouseWheel> |
||
13 | BOptionsPaging_OnMousewheel(BOptionsPanelPagingScrollFrame, arg1); |
||
14 | </OnMouseWheel> |
||
15 | </Scripts> |
||
16 | </CheckButton> |
||
17 | |||
18 | <Frame name="BongosOptionsPaging" inherits="BongosOptionsPanel" virtual="true"> |
||
19 | <Frames> |
||
20 | <ScrollFrame name="$parentScrollFrame" inherits="FauxScrollFrameTemplate"> |
||
21 | <Anchors> |
||
22 | <Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPRIGHT"> |
||
23 | <Offset x="-48" y="-32"/> |
||
24 | </Anchor> |
||
25 | <Anchor point="BOTTOMRIGHT"> |
||
26 | <Offset x="-24" y="48"/> |
||
27 | </Anchor> |
||
28 | </Anchors> |
||
29 | <Scripts> |
||
30 | <OnVerticalScroll> |
||
31 | FauxScrollFrame_OnVerticalScroll(18, BOptionsPagingScrollBar_Update); |
||
32 | </OnVerticalScroll> |
||
33 | </Scripts> |
||
34 | </ScrollFrame> |
||
35 | |||
36 | <Slider name="$parentSkip" inherits="BongosOptionsSlider" minValue="0" maxValue="9" valuestep="1"> |
||
37 | <Anchors> |
||
38 | <Anchor point="BOTTOMLEFT"> |
||
39 | <Offset x="8" y="18"/> |
||
40 | </Anchor> |
||
41 | </Anchors> |
||
42 | <Scripts> |
||
43 | <OnLoad> |
||
44 | getglobal(this:GetName() .. "Text"):SetText("Page Skip"); |
||
45 | getglobal(this:GetName() .. "Low"):SetText(0); |
||
46 | getglobal(this:GetName() .. "High"):SetText(9); |
||
47 | </OnLoad> |
||
48 | <OnValueChanged> |
||
49 | if not this.onShow then |
||
50 | if this:GetValue() == 0 then |
||
51 | BActionSets.g.skip = nil |
||
52 | else |
||
53 | BActionSets.g.skip = this:GetValue(); |
||
54 | end |
||
55 | BActionMain_UpdatePage(); |
||
56 | end |
||
57 | getglobal(this:GetName() .. "ValText"):SetText(this:GetValue()); |
||
58 | </OnValueChanged> |
||
59 | </Scripts> |
||
60 | </Slider> |
||
61 | </Frames> |
||
62 | |||
63 | <Scripts> |
||
64 | <OnLoad> |
||
65 | BOptionsPaging_OnLoad(); |
||
66 | </OnLoad> |
||
67 | <OnShow> |
||
68 | BOptionsPaging_OnShow(); |
||
69 | </OnShow> |
||
70 | <OnMouseWheel> |
||
71 | BOptionsPaging_OnMousewheel(BOptionsPanelPagingScrollFrame, arg1); |
||
72 | </OnMouseWheel> |
||
73 | </Scripts> |
||
74 | </Frame> |
||
75 | </Ui> |