Advertisement
Xzempt

Untitled

Jan 4th, 2012
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.32 KB | None | 0 0
  1. <!--
  2. This file is part of TicketChaos. All TicketChaos code is Copyright (C) 2009 Chocochaos
  3.  
  4. TicketChaos is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8.  
  9. TicketChaos is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13.  
  14. You should have received a copy of the GNU General Public License
  15. along with TicketChaos. If not, see <http://www.gnu.org/licenses/>.
  16. -->
  17.  
  18. <Ui xmlns="http://www.blizzard.com/wow/ui/"
  19. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  20. xsi:schemaLocation="http://www.blizzard.com/wow/ui/
  21. ..\..\FrameXML\UI.xsd">
  22. <Button name="TicketTrackerColumnHeaderTemplate" virtual="true">
  23. <Size>
  24. <AbsDimension x="10" y="24"/>
  25. </Size>
  26. <Layers>
  27. <Layer level="BACKGROUND">
  28. <Texture name="$parentLeft" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
  29. <Size>
  30. <AbsDimension x="5" y="24"/>
  31. </Size>
  32. <Anchors>
  33. <Anchor point="TOPLEFT"/>
  34. </Anchors>
  35. <TexCoords left="0" right="0.078125" top="0" bottom="0.75"/>
  36. </Texture>
  37. <Texture name="$parentMiddle" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
  38. <Size>
  39. <AbsDimension x="53" y="24"/>
  40. </Size>
  41. <Anchors>
  42. <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
  43. </Anchors>
  44. <TexCoords left="0.078125" right="0.90625" top="0" bottom="0.75"/>
  45. </Texture>
  46. <Texture name="$parentRight" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
  47. <Size>
  48. <AbsDimension x="4" y="24"/>
  49. </Size>
  50. <Anchors>
  51. <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT"/>
  52. </Anchors>
  53. <TexCoords left="0.90625" right="0.96875" top="0" bottom="0.75"/>
  54. </Texture>
  55. </Layer>
  56. </Layers>
  57. <Scripts>
  58. <OnClick>
  59. if ( self.sortType ) then
  60. SortTicketList(self.sortType);
  61. end
  62. </OnClick>
  63. </Scripts>
  64. <ButtonText>
  65. <Anchors>
  66. <Anchor point="LEFT">
  67. <Offset>
  68. <AbsDimension x="8" y="0"/>
  69. </Offset>
  70. </Anchor>
  71. </Anchors>
  72. </ButtonText>
  73. <NormalFont style="GameFontHighlightSmall"/>
  74. <HighlightTexture name="$parentHighlightTexture" file="Interface\PaperDollInfoFrame\UI-Character-Tab-Highlight" alphaMode="ADD">
  75. <Anchors>
  76. <Anchor point="TOPLEFT" relativeTo="$parentLeft">
  77. <Offset>
  78. <AbsDimension x="-2" y="5"/>
  79. </Offset>
  80. </Anchor>
  81. <Anchor point="BOTTOMRIGHT" relativeTo="$parentRight">
  82. <Offset>
  83. <AbsDimension x="2" y="-7"/>
  84. </Offset>
  85. </Anchor>
  86. </Anchors>
  87. </HighlightTexture>
  88. </Button>
  89.  
  90. <Button name="TicketStatusTemplate" virtual="true" hidden='true'>
  91. <Size>
  92. <AbsDimension x="300" y="16"/>
  93. </Size>
  94. <Layers>
  95. <Layer level="BORDER">
  96. <FontString name="$parentNumber" inherits="GameFontHighlightSmall" justifyH="LEFT">
  97. <Size>
  98. <AbsDimension x="40" y="14"/>
  99. </Size>
  100. <Anchors>
  101. <Anchor point="TOPLEFT">
  102. <Offset>
  103. <AbsDimension x="14" y="-3"/>
  104. </Offset>
  105. </Anchor>
  106. </Anchors>
  107. </FontString>
  108. <FontString name="$parentName" inherits="GameFontNormalSmall" justifyH="LEFT">
  109. <Size>
  110. <AbsDimension x="120" y="14"/>
  111. </Size>
  112. <Anchors>
  113. <Anchor point="LEFT" relativeTo="$parentNumber" relativePoint="RIGHT">
  114. <Offset>
  115. <AbsDimension x="0" y="0"/>
  116. </Offset>
  117. </Anchor>
  118. </Anchors>
  119. </FontString>
  120. <FontString name="$parentLocation" inherits="GameFontHighlightSmall" justifyH="LEFT">
  121. <Size>
  122. <AbsDimension x="140" y="14"/>
  123. </Size>
  124. <Anchors>
  125. <Anchor point="LEFT" relativeTo="$parentName" relativePoint="RIGHT">
  126. <Offset>
  127. <AbsDimension x="0" y="0"/>
  128. </Offset>
  129. </Anchor>
  130. </Anchors>
  131. </FontString>
  132. </Layer>
  133. <Layer level="BACKGROUND">
  134. <Texture name="$parent_Texture" alphaMode="ADD">
  135. <Size>
  136. <AbsDimension x="298" y="16"/>
  137. </Size>
  138. <Anchors>
  139. <Anchor point="TOP">
  140. <Offset>
  141. <AbsDimension x="5" y="-2"/>
  142. </Offset>
  143. </Anchor>
  144. </Anchors>
  145. </Texture>
  146. </Layer>
  147. </Layers>
  148. <HighlightTexture file="Interface\FriendsFrame\UI-FriendsFrame-HighlightBar" alphaMode="ADD">
  149. <Size>
  150. <AbsDimension x="298" y="16"/>
  151. </Size>
  152. <Anchors>
  153. <Anchor point="TOP">
  154. <Offset>
  155. <AbsDimension x="5" y="-2"/>
  156. </Offset>
  157. </Anchor>
  158. </Anchors>
  159. </HighlightTexture>
  160. <Scripts>
  161. <OnLoad>
  162. self.charname = "";
  163. </OnLoad>
  164. <Onclick>
  165. if(CurTicketNum ~= 0) then
  166. getglobal("TicketStatusButton".. CurTicketNum .."_Texture"):SetTexture(0, 0, 0);
  167. end
  168. CurTicketNum = tonumber(string.sub(this:GetName(), 19));
  169. getglobal("TicketStatusButton".. CurTicketNum .."_Texture"):SetTexture("Interface\\FriendsFrame\\UI-FriendsFrame-HighlightBar");
  170. Show_Ticket(self.charname)
  171.  
  172. </Onclick>
  173. </Scripts>
  174. </Button>
  175.  
  176.  
  177. <Frame name="Ticket_Tracker" hidden="true" toplevel="true" frameStrata="HIGH" parent="UIParent" movable="true" enableMouse="true" clampedToScreen="true">
  178. <Size>
  179. <AbsDimension x="360" y="360"/>
  180. </Size>
  181. <Backdrop bgFile="Interface\TutorialFrame\TutorialFrameBackground" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
  182. <TileSize>
  183. <AbsValue val="32"/>
  184. </TileSize>
  185. <EdgeSize>
  186. <AbsValue val="32"/>
  187. </EdgeSize>
  188. <BackgroundInsets>
  189. <AbsInset left="11" right="12" top="12" bottom="11"/>
  190. </BackgroundInsets>
  191. </Backdrop>
  192. <Scripts>
  193. <OnMouseDown>this:StartMoving();</OnMouseDown>
  194. <OnMouseUp>this:StopMovingOrSizing();</OnMouseUp>
  195. <OnDragStop>this:StopMovingOrSizing();</OnDragStop>
  196. </Scripts>
  197. <Anchors>
  198. <Anchor point="CENTER">
  199. <Offset>
  200. <AbsDimension x="-150" y="0"/>
  201. </Offset>
  202. </Anchor>
  203. </Anchors>
  204. <Layers>
  205. <Layer>
  206. <Texture name="$parentTitleBorder" file="Interface\DialogFrame\UI-DialogBox-Header">
  207. <Size>
  208. <AbsDimension x="200" y="30" />
  209. </Size>
  210. <Anchors>
  211. <Anchor point="TOP">
  212. <Offset>
  213. <AbsDimension x="0" y="5" />
  214. </Offset>
  215. </Anchor>
  216. </Anchors>
  217. <TexCoords left="0.2" right="0.8" top="0" bottom="0.6" />
  218. </Texture>
  219. <FontString name="$parentTitleString" font="Fonts\FRIZQT__.TTF" text="TicketChaos">
  220. <Size>
  221. <AbsDimension x="140" y="0" />
  222. </Size>
  223. <Anchors>
  224. <Anchor point="TOP">
  225. <Offset>
  226. <AbsDimension x="0" y="-4" />
  227. </Offset>
  228. </Anchor>
  229. </Anchors>
  230. <FontHeight>
  231. <AbsValue val="12" />
  232. </FontHeight>
  233. <Color r="1" g="0.8196079" b="0" />
  234. <Shadow>
  235. <Color r="0" g="0" b="0" />
  236. <Offset>
  237. <AbsDimension x="1" y="-1" />
  238. </Offset>
  239. </Shadow>
  240. </FontString>
  241. <FontString name="$parent_Counter" font="Fonts\FRIZQT__.TTF" text="0 tickets done">
  242. <Anchors>
  243. <Anchor point="BOTTOM">
  244. <Offset>
  245. <AbsDimension x="0" y="23" />
  246. </Offset>
  247. </Anchor>
  248. </Anchors>
  249. <FontHeight>
  250. <AbsValue val="12" />
  251. </FontHeight>
  252. <Color r="1" g="0.8196079" b="0" />
  253. <Shadow>
  254. <Color r="0" g="0" b="0" />
  255. <Offset>
  256. <AbsDimension x="1" y="-1" />
  257. </Offset>
  258. </Shadow>
  259. </FontString>
  260. </Layer>
  261. </Layers>
  262. <Frames>
  263. <Button name="$parent_Button3" inherits="UIPanelCloseButton">
  264. <Anchors>
  265. <Anchor point="TOPRIGHT">
  266. <Offset>
  267. <AbsDimension x="-4" y="-4"/>
  268. </Offset>
  269. </Anchor>
  270. </Anchors>
  271. </Button>
  272. <Frame name="$parent_Tickets">
  273. <Size>
  274. <AbsDimension x="300" y="244"/>
  275. </Size>
  276. <Layers>
  277. <Layer level="BACKGROUND">
  278. <Texture name="$parentMiddle" file="Interface\FriendsFrame\WhoFrame-ColumnTabs">
  279. <Size>
  280. <AbsDimension x="300" y="240"/>
  281. </Size>
  282. <Anchors>
  283. <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT"/>
  284. </Anchors>
  285. <TexCoords left="0.078125" right="0.90625" top="0.5" bottom="0.75"/>
  286. </Texture>
  287. </Layer>
  288. </Layers>
  289. <Anchors>
  290. <Anchor point="CENTER">
  291. <Offset>
  292. <AbsDimension x="0" y="8"/>
  293. </Offset>
  294. </Anchor>
  295. </Anchors>
  296. <Frames>
  297. <Frame name="$parent_Header" >
  298. <Size>
  299. <AbsDimension x="300" y="30"/>
  300. </Size>
  301. <Anchors>
  302. <Anchor point="TOP">
  303. <Offset>
  304. <AbsDimension x="0" y="15"/>
  305. </Offset>
  306. </Anchor>
  307. </Anchors>
  308. <Frames>
  309. <Button name="$parent_Number" inherits="TicketTrackerColumnHeaderTemplate" text="#">
  310. <Anchors>
  311. <Anchor point="TOPLEFT">
  312. <Offset>
  313. <AbsDimension x="0" y="9"/>
  314. </Offset>
  315. </Anchor>
  316. </Anchors>
  317. <Scripts>
  318. <OnLoad>
  319. WhoFrameColumn_SetWidth(self, 40);
  320. self.sortType = "num";
  321. </OnLoad>
  322. </Scripts>
  323. </Button>
  324. <Button name="$parent_Name" inherits="TicketTrackerColumnHeaderTemplate" text="Name">
  325. <Anchors>
  326. <Anchor point="TOPLEFT">
  327. <Offset>
  328. <AbsDimension x="40" y="9"/>
  329. </Offset>
  330. </Anchor>
  331. </Anchors>
  332. <Scripts>
  333. <OnLoad>
  334. WhoFrameColumn_SetWidth(self, 120);
  335. self.sortType = "name";
  336. </OnLoad>
  337. </Scripts>
  338. </Button>
  339. <Button name="$parent_Location" inherits="TicketTrackerColumnHeaderTemplate" text="Location">
  340. <Anchors>
  341. <Anchor point="TOPRIGHT">
  342. <Offset>
  343. <AbsDimension x="0" y="9"/>
  344. </Offset>
  345. </Anchor>
  346. </Anchors>
  347. <Scripts>
  348. <OnLoad>
  349. WhoFrameColumn_SetWidth(self, 140);
  350. self.sortType = "location";
  351. </OnLoad>
  352. </Scripts>
  353. </Button>
  354. </Frames>
  355. </Frame>
  356. <Button name="TicketStatusButton1" inherits="TicketStatusTemplate" id="1">
  357. <Anchors>
  358. <Anchor point="TOPLEFT">
  359. <Offset>
  360. <AbsDimension x="-5" y="0"/>
  361. </Offset>
  362. </Anchor>
  363. </Anchors>
  364. </Button>
  365. <Button name="TicketStatusButton2" inherits="TicketStatusTemplate" id="2">
  366. <Anchors>
  367. <Anchor point="TOPLEFT" relativeTo="TicketStatusButton1" relativePoint="BOTTOMLEFT">
  368. <Offset>
  369. <AbsDimension x="0" y="0"/>
  370. </Offset>
  371. </Anchor>
  372. </Anchors>
  373. </Button>
  374. <Button name="TicketStatusButton3" inherits="TicketStatusTemplate" id="3">
  375. <Anchors>
  376. <Anchor point="TOPLEFT" relativeTo="TicketStatusButton2" relativePoint="BOTTOMLEFT">
  377. <Offset>
  378. <AbsDimension x="0" y="0"/>
  379. </Offset>
  380. </Anchor>
  381. </Anchors>
  382. </Button>
  383. <Button name="TicketStatusButton4" inherits="TicketStatusTemplate" id="4">
  384. <Anchors>
  385. <Anchor point="TOPLEFT" relativeTo="TicketStatusButton3" relativePoint="BOTTOMLEFT">
  386. <Offset>
  387. <AbsDimension x="0" y="0"/>
  388. </Offset>
  389. </Anchor>
  390. </Anchors>
  391. </Button>
  392. <Button name="TicketStatusButton5" inherits="TicketStatusTemplate" id="5">
  393. <Anchors>
  394. <Anchor point="TOPLEFT" relativeTo="TicketStatusButton4" relativePoint="BOTTOMLEFT">
  395. <Offset>
  396. <AbsDimension x="0" y="0"/>
  397. </Offset>
  398. </Anchor>
  399. </Anchors>
  400. </Button>
  401. <Button name="TicketStatusButton6" inherits="TicketStatusTemplate" id="6">
  402. <Anchors>
  403. <Anchor point="TOPLEFT" relativeTo="TicketStatusButton5" relativePoint="BOTTOMLEFT">
  404. <Offset>
  405. <AbsDimension x="0" y="0"/>
  406. </Offset>
  407. </Anchor>
  408. </Anchors>
  409. </Button>
  410. <Button name="TicketStatusButton7" inherits="TicketStatusTemplate" id="7">
  411. <Anchors>
  412. <Anchor point="TOPLEFT" relativeTo="TicketStatusButton6" relativePoint="BOTTOMLEFT">
  413. <Offset>
  414. <AbsDimension x="0" y="0"/>
  415. </Offset>
  416. </Anchor>
  417. </Anchors>
  418. </Button>
  419. <Button name="TicketStatusButton8" inherits="TicketStatusTemplate" id="8">
  420. <Anchors>
  421. <Anchor point="TOPLEFT" relativeTo="TicketStatusButton7" relativePoint="BOTTOMLEFT">
  422. <Offset>
  423. <AbsDimension x="0" y="0"/>
  424. </Offset>
  425. </Anchor>
  426. </Anchors>
  427. </Button>
  428. <Button name="TicketStatusButton9" inherits="TicketStatusTemplate" id="9">
  429. <Anchors>
  430. <Anchor point="TOPLEFT" relativeTo="TicketStatusButton8" relativePoint="BOTTOMLEFT">
  431. <Offset>
  432. <AbsDimension x="0" y="0"/>
  433. </Offset>
  434. </Anchor>
  435. </Anchors>
  436. </Button>
  437. <Button name="TicketStatusButton10" inherits="TicketStatusTemplate" id="10">
  438. <Anchors>
  439. <Anchor point="TOPLEFT" relativeTo="TicketStatusButton9" relativePoint="BOTTOMLEFT">
  440. <Offset>
  441. <AbsDimension x="0" y="0"/>
  442. </Offset>
  443. </Anchor>
  444. </Anchors>
  445. </Button>
  446. <Button name="TicketStatusButton11" inherits="TicketStatusTemplate" id="11">
  447. <Anchors>
  448. <Anchor point="TOPLEFT" relativeTo="TicketStatusButton10" relativePoint="BOTTOMLEFT">
  449. <Offset>
  450. <AbsDimension x="0" y="0"/>
  451. </Offset>
  452. </Anchor>
  453. </Anchors>
  454. </Button>
  455. <Button name="TicketStatusButton12" inherits="TicketStatusTemplate" id="12">
  456. <Anchors>
  457. <Anchor point="TOPLEFT" relativeTo="TicketStatusButton11" relativePoint="BOTTOMLEFT">
  458. <Offset>
  459. <AbsDimension x="0" y="0"/>
  460. </Offset>
  461. </Anchor>
  462. </Anchors>
  463. </Button>
  464. <Button name="TicketStatusButton13" inherits="TicketStatusTemplate" id="13">
  465. <Anchors>
  466. <Anchor point="TOPLEFT" relativeTo="TicketStatusButton12" relativePoint="BOTTOMLEFT">
  467. <Offset>
  468. <AbsDimension x="0" y="0"/>
  469. </Offset>
  470. </Anchor>
  471. </Anchors>
  472. </Button>
  473. <Button name="TicketStatusButton14" inherits="TicketStatusTemplate" id="14">
  474. <Anchors>
  475. <Anchor point="TOPLEFT" relativeTo="TicketStatusButton13" relativePoint="BOTTOMLEFT">
  476. <Offset>
  477. <AbsDimension x="0" y="0"/>
  478. </Offset>
  479. </Anchor>
  480. </Anchors>
  481. </Button>
  482. <Button name="TicketStatusButton15" inherits="TicketStatusTemplate" id="15">
  483. <Anchors>
  484. <Anchor point="TOPLEFT" relativeTo="TicketStatusButton14" relativePoint="BOTTOMLEFT">
  485. <Offset>
  486. <AbsDimension x="0" y="0"/>
  487. </Offset>
  488. </Anchor>
  489. </Anchors>
  490. </Button>
  491. </Frames>
  492. <Scripts>
  493. <OnMouseWheel>
  494. if arg1 == 1 then
  495. Previous_Page();
  496. else
  497. Next_Page();
  498. end
  499. </OnMouseWheel>
  500. </Scripts>
  501. </Frame>
  502. <Button name="$parent_Previous" inherits="UIPanelButtonTemplate" text=''>
  503. <Size>
  504. <AbsDimension x="20" y="22"/>
  505. </Size>
  506. <Anchors>
  507. <Anchor point="BOTTOMLEFT">
  508. <Offset>
  509. <AbsDimension x="31" y="40"/>
  510. </Offset>
  511. </Anchor>
  512. </Anchors>
  513. <Scripts>
  514. <OnClick>
  515. Previous_Page();
  516. </OnClick>
  517. </Scripts>
  518. </Button>
  519. <Button name="$parent_Next" inherits="UIPanelButtonTemplate" text=''>
  520. <Size>
  521. <AbsDimension x="20" y="22"/>
  522. </Size>
  523. <Anchors>
  524. <Anchor point="BOTTOMRIGHT">
  525. <Offset>
  526. <AbsDimension x="-31" y="40"/>
  527. </Offset>
  528. </Anchor>
  529. </Anchors>
  530. <Scripts>
  531. <OnClick>
  532. Next_Page();
  533. </OnClick>
  534. </Scripts>
  535. </Button>
  536. <Frame name="$parent_Info">
  537. <Size>
  538. <AbsDimension x="250" y="22"/>
  539. </Size>
  540. <Anchors>
  541. <Anchor point="BOTTOM">
  542. <Offset>
  543. <AbsDimension x="0" y="40"/>
  544. </Offset>
  545. </Anchor>
  546. </Anchors>
  547. <Layers>
  548. <Layer>
  549. <FontString name="$parent_Text" font="Fonts\FRIZQT__.TTF" text="">
  550. <Size>
  551. <AbsDimension x="240" y="0" />
  552. </Size>
  553. <Anchors>
  554. <Anchor point="TOP">
  555. <Offset>
  556. <AbsDimension x="0" y="-4" />
  557. </Offset>
  558. </Anchor>
  559. </Anchors>
  560. <FontHeight>
  561. <AbsValue val="12" />
  562. </FontHeight>
  563. <Color r="1" g="0.8196079" b="0" />
  564. <Shadow>
  565. <Color r="0" g="0" b="0" />
  566. <Offset>
  567. <AbsDimension x="1" y="-1" />
  568. </Offset>
  569. </Shadow>
  570. </FontString>
  571. </Layer>
  572. </Layers>
  573. </Frame>
  574. <Button name="$parent_Refresh" inherits="UIPanelButtonTemplate" text='Refresh'>
  575. <Size>
  576. <AbsDimension x="80" y="22"/>
  577. </Size>
  578. <Anchors>
  579. <Anchor point="BOTTOMRIGHT">
  580. <Offset>
  581. <AbsDimension x="-30" y="17"/>
  582. </Offset>
  583. </Anchor>
  584. </Anchors>
  585. <Scripts>
  586. <OnClick>
  587. Refresh_Tickets();
  588. </OnClick>
  589. </Scripts>
  590. </Button>
  591. <Button name="$parent_Whispers" inherits="UIPanelButtonTemplate" text='Whispers'>
  592. <Size>
  593. <AbsDimension x="80" y="22"/>
  594. </Size>
  595. <Anchors>
  596. <Anchor point="BOTTOMLEFT">
  597. <Offset>
  598. <AbsDimension x="30" y="17"/>
  599. </Offset>
  600. </Anchor>
  601. </Anchors>
  602. <Scripts>
  603. <OnClick>
  604. Toggle_Whisper_Macros();
  605. </OnClick>
  606. </Scripts>
  607. </Button>
  608. </Frames>
  609. </Frame>
  610.  
  611.  
  612. <Frame name="View_Tickets" hidden="true" toplevel="true" frameStrata="HIGH" parent="UIParent" movable="true" enableMouse="true" clampedToScreen="true">
  613. <Size>
  614. <AbsDimension x="360" y="360"/>
  615. </Size>
  616. <Backdrop bgFile="Interface\TutorialFrame\TutorialFrameBackground" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
  617. <TileSize>
  618. <AbsValue val="32"/>
  619. </TileSize>
  620. <EdgeSize>
  621. <AbsValue val="32"/>
  622. </EdgeSize>
  623. <BackgroundInsets>
  624. <AbsInset left="11" right="12" top="12" bottom="11"/>
  625. </BackgroundInsets>
  626. </Backdrop>
  627. <Scripts>
  628. <OnMouseDown>this:StartMoving();</OnMouseDown>
  629. <OnMouseUp>this:StopMovingOrSizing();</OnMouseUp>
  630. <OnDragStop>this:StopMovingOrSizing();</OnDragStop>
  631. </Scripts>
  632. <Anchors>
  633. <Anchor point="LEFT" relativeTo="Ticket_Tracker" relativePoint="RIGHT">
  634. <Offset>
  635. <AbsDimension x="0" y="0"/>
  636. </Offset>
  637. </Anchor>
  638. </Anchors>
  639. <Layers>
  640. <Layer>
  641. <Texture name="$parentTitleBorder" file="Interface\DialogFrame\UI-DialogBox-Header">
  642. <Size>
  643. <AbsDimension x="200" y="30" />
  644. </Size>
  645. <Anchors>
  646. <Anchor point="TOP">
  647. <Offset>
  648. <AbsDimension x="0" y="5" />
  649. </Offset>
  650. </Anchor>
  651. </Anchors>
  652. <TexCoords left="0.2" right="0.8" top="0" bottom="0.6" />
  653. </Texture>
  654. <FontString name="$parent_TitleString" font="Fonts\FRIZQT__.TTF" text="Viewing Ticket">
  655. <Size>
  656. <AbsDimension x="140" y="0" />
  657. </Size>
  658. <Anchors>
  659. <Anchor point="TOP">
  660. <Offset>
  661. <AbsDimension x="0" y="-4" />
  662. </Offset>
  663. </Anchor>
  664. </Anchors>
  665. <FontHeight>
  666. <AbsValue val="12" />
  667. </FontHeight>
  668. <Color r="1" g="0.8196079" b="0" />
  669. <Shadow>
  670. <Color r="0" g="0" b="0" />
  671. <Offset>
  672. <AbsDimension x="1" y="-1" />
  673. </Offset>
  674. </Shadow>
  675. </FontString>
  676. </Layer>
  677. </Layers>
  678. <Frames>
  679. <Button name="$parent_Button3" inherits="UIPanelCloseButton">
  680. <Anchors>
  681. <Anchor point="TOPRIGHT">
  682. <Offset>
  683. <AbsDimension x="-4" y="-4"/>
  684. </Offset>
  685. </Anchor>
  686. </Anchors>
  687. <Scripts>
  688. <OnClick>
  689. CloseTicket();
  690. HideUIPanel(self:GetParent());
  691. </OnClick>
  692. </Scripts>
  693. </Button>
  694. <Frame name="$parent_Ticket">
  695. <Size>
  696. <AbsDimension x="300" y="245" />
  697. </Size>
  698. <Anchors>
  699. <Anchor point="TOP">
  700. <Offset>
  701. <AbsDimension x="0" y="-30" />
  702. </Offset>
  703. </Anchor>
  704. </Anchors>
  705. <Layers>
  706. <Layer level="BACKGROUND">
  707. <Texture name="$parent_Background" setAllPoints="true">
  708. <Color r="0" g="0" b="0" a="0.5" />
  709. </Texture>
  710. </Layer>
  711. <Layer>
  712. <FontString name="$parent_Text" inherits="GameFontHighlightSmall" font="Fonts\FRIZQT__.TTF" justifyH="LEFT" justifyV="TOP">
  713. <Size>
  714. <AbsDimension x="280"/>
  715. </Size>
  716. <Anchors>
  717. <Anchor point="TOPLEFT">
  718. <Offset>
  719. <AbsDimension x="10" y="-10"/>
  720. </Offset>
  721. </Anchor>
  722. </Anchors>
  723. <FontHeight>
  724. <AbsValue val="11" />
  725. </FontHeight>
  726. </FontString>
  727. <FontString name="$parent_Reading" inherits="GameFontNormalSmall" font="Fonts\FRIZQT__.TTF" justifyH="CENTER" hidden='true'>
  728. <Size>
  729. <AbsDimension x="280"/>
  730. </Size>
  731. <Anchors>
  732. <Anchor point="BOTTOM">
  733. <Offset>
  734. <AbsDimension x="0" y="10"/>
  735. </Offset>
  736. </Anchor>
  737. </Anchors>
  738. <FontHeight>
  739. <AbsValue val="11" />
  740. </FontHeight>
  741. </FontString>
  742. </Layer>
  743. </Layers>
  744. </Frame>
  745.  
  746. <Button name="$parent_Dropdown">
  747. <Size>
  748. <AbsDimension x="164" y="32" />
  749. </Size>
  750. <Anchors>
  751. <Anchor point="BOTTOM">
  752. <Offset>
  753. <AbsDimension x="-2" y="47" />
  754. </Offset>
  755. </Anchor>
  756. </Anchors>
  757. <Layers>
  758. <Layer>
  759. <Texture name="$parentLeft" file="Interface\Glues\CharacterCreate\CharacterCreate-LabelFrame">
  760. <Size>
  761. <AbsDimension x="25" y="64" />
  762. </Size>
  763. <Anchors>
  764. <Anchor point="TOPLEFT">
  765. <Offset>
  766. <AbsDimension x="0" y="17" />
  767. </Offset>
  768. </Anchor>
  769. </Anchors>
  770. <TexCoords left="0" right="0.1953125" top="0" bottom="1" />
  771. </Texture>
  772. <Texture name="$parentMiddle" file="Interface\Glues\CharacterCreate\CharacterCreate-LabelFrame">
  773. <Size>
  774. <AbsDimension x="118" y="64" />
  775. </Size>
  776. <Anchors>
  777. <Anchor point="LEFT" relativeTo="$parentLeft" relativePoint="RIGHT" />
  778. </Anchors>
  779. <TexCoords left="0.1953125" right="0.8046875" top="0" bottom="1" />
  780. </Texture>
  781. <Texture name="$parentRight" file="Interface\Glues\CharacterCreate\CharacterCreate-LabelFrame">
  782. <Size>
  783. <AbsDimension x="25" y="64" />
  784. </Size>
  785. <Anchors>
  786. <Anchor point="LEFT" relativeTo="$parentMiddle" relativePoint="RIGHT" />
  787. </Anchors>
  788. <TexCoords left="0.8046875" right="1" top="0" bottom="1" />
  789. </Texture>
  790. <FontString name="$parentText" font="Fonts\FRIZQT__.TTF" text="Whisper Macros" justifyH="RIGHT">
  791. <Size>
  792. <AbsDimension x="125" y="10" />
  793. </Size>
  794. <Anchors>
  795. <Anchor point="RIGHT" relativeTo="$parentRight">
  796. <Offset>
  797. <AbsDimension x="-43" y="2" />
  798. </Offset>
  799. </Anchor>
  800. </Anchors>
  801. <FontHeight>
  802. <AbsValue val="10" />
  803. </FontHeight>
  804. <Color r="1" g="1" b="1" />
  805. <Shadow>
  806. <Color r="0" g="0" b="0" />
  807. <Offset>
  808. <AbsDimension x="1" y="-1" />
  809. </Offset>
  810. </Shadow>
  811. </FontString>
  812. </Layer>
  813. </Layers>
  814. <Frames>
  815. <Button name="$parent_Button">
  816. <Size>
  817. <AbsDimension x="24" y="24" />
  818. </Size>
  819. <Anchors>
  820. <Anchor point="TOPRIGHT" relativeTo="$parentRight">
  821. <Offset>
  822. <AbsDimension x="-16" y="-18" />
  823. </Offset>
  824. </Anchor>
  825. </Anchors>
  826. <Scripts>
  827. <OnClick>
  828. ToggleDropDownMenu(1, nil, View_Tickets_Dropdownbuttons, View_Tickets_Dropdownbuttons, 0, 0);
  829. PlaySound("igMainMenuOptionCheckBoxOn");
  830. </OnClick>
  831. </Scripts>
  832. <NormalTexture name="$parentNormalTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up">
  833. <Size>
  834. <AbsDimension x="24" y="24" />
  835. </Size>
  836. <Anchors>
  837. <Anchor point="RIGHT" />
  838. </Anchors>
  839. </NormalTexture>
  840. <PushedTexture name="$parentPushedTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down">
  841. <Size>
  842. <AbsDimension x="24" y="24" />
  843. </Size>
  844. <Anchors>
  845. <Anchor point="RIGHT" />
  846. </Anchors>
  847. </PushedTexture>
  848. <DisabledTexture name="$parentDisabledTexture" file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Disabled">
  849. <Size>
  850. <AbsDimension x="24" y="24" />
  851. </Size>
  852. <Anchors>
  853. <Anchor point="RIGHT" />
  854. </Anchors>
  855. </DisabledTexture>
  856. <HighlightTexture name="$parentHighlightTexture" file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD">
  857. <Size>
  858. <AbsDimension x="24" y="24" />
  859. </Size>
  860. <Anchors>
  861. <Anchor point="RIGHT" />
  862. </Anchors>
  863. </HighlightTexture>
  864. </Button>
  865. </Frames>
  866. <Scripts>
  867. <OnHide>CloseDropDownMenus();</OnHide>
  868. </Scripts>
  869. </Button>
  870. <Frame name="$parent_Dropdownbuttons" inherits="UIDropDownMenuTemplate" id="2">
  871. <Scripts>
  872. <OnLoad>
  873. UIDropDownMenu_Initialize(this, WhispersDropdown_OnLoad, "MENU");
  874. </OnLoad>
  875. </Scripts>
  876. <Anchors>
  877. <Anchor point="BOTTOM">
  878. <Offset>
  879. <AbsDimension x="-45" y="55" />
  880. </Offset>
  881. </Anchor>
  882. </Anchors>
  883. </Frame>
  884.  
  885. <Button name="$parent_Whisper" inherits="UIPanelButtonTemplate" text="Whisper">
  886. <Size>
  887. <AbsDimension x="66" y="22"/>
  888. </Size>
  889. <Anchors>
  890. <Anchor point="BOTTOMLEFT">
  891. <Offset>
  892. <AbsDimension x="30" y="54"/>
  893. </Offset>
  894. </Anchor>
  895. </Anchors>
  896. <Scripts>
  897. <OnClick>
  898. TicketWhisper();
  899. </OnClick>
  900. <OnEnter>
  901. GameTooltip:SetOwner(this, "ANCHOR_NONE");
  902. GameTooltip:SetPoint("BOTTOMRIGHT", "UIParent", "BOTTOMRIGHT", -CONTAINER_OFFSET_X - 13, CONTAINER_OFFSET_Y);
  903. GameTooltip:AddLine("Whisper");
  904. GameTooltip:AddLine("Send a whisper to ".. CurName ..".");
  905. GameTooltip:Show();
  906. </OnEnter>
  907. <OnLeave>
  908. GameTooltip:Hide();
  909. </OnLeave>
  910. </Scripts>
  911. </Button>
  912. <Button name="$parent_Close" inherits="UIPanelButtonTemplate" text='Close'>
  913. <Size>
  914. <AbsDimension x="66" y="22"/>
  915. </Size>
  916. <Anchors>
  917. <Anchor point="BOTTOMLEFT">
  918. <Offset>
  919. <AbsDimension x="264" y="21"/>
  920. </Offset>
  921. </Anchor>
  922. </Anchors>
  923. <Scripts>
  924. <OnClick>
  925. CloseTicket();
  926. HideUIPanel(self:GetParent());
  927. </OnClick>
  928. </Scripts>
  929. </Button>
  930. <Button name="$parent_Revive" inherits="UIPanelButtonTemplate" text='Revive'>
  931. <Size>
  932. <AbsDimension x="66" y="22"/>
  933. </Size>
  934. <Anchors>
  935. <Anchor point="BOTTOMLEFT">
  936. <Offset>
  937. <AbsDimension x="30" y="21"/>
  938. </Offset>
  939. </Anchor>
  940. </Anchors>
  941. <Scripts>
  942. <OnClick>
  943. Ticket_Revive();
  944. </OnClick>
  945. <OnEnter>
  946. GameTooltip:SetOwner(this, "ANCHOR_NONE");
  947. GameTooltip:SetPoint("BOTTOMRIGHT", "UIParent", "BOTTOMRIGHT", -CONTAINER_OFFSET_X - 13, CONTAINER_OFFSET_Y);
  948. GameTooltip:AddLine("Revive");
  949. GameTooltip:AddLine("Revive player ".. CurName ..".");
  950. GameTooltip:Show();
  951. </OnEnter>
  952. <OnLeave>
  953. GameTooltip:Hide();
  954. </OnLeave>
  955. </Scripts>
  956. </Button>
  957. <Button name="$parent_Root" inherits="SecureActionButtonTemplate" text="(Un)root">
  958. <Attributes>
  959. <Attribute name="type" type="string" value="macro"/>
  960. <Attribute name="macrotext1" type="string" value=""/>
  961. <Attribute name="macrotext2" type="string" value=""/>
  962. </Attributes>
  963. <Size>
  964. <AbsDimension x="66" y="22"/>
  965. </Size>
  966. <ButtonText name="$parentText">
  967. <Anchors>
  968. <Anchor point="CENTER">
  969. <Offset>
  970. <AbsDimension x="0" y="1"/>
  971. </Offset>
  972. </Anchor>
  973. </Anchors>
  974. </ButtonText>
  975. <NormalFont style="GameFontNormal"/>
  976. <HighlightFont style="GameFontHighlight"/>
  977. <DisabledFont style="GameFontDisable"/>
  978. <NormalTexture inherits="UIPanelButtonUpTexture"/>
  979. <PushedTexture inherits="UIPanelButtonDownTexture"/>
  980. <DisabledTexture inherits="UIPanelButtonDisabledTexture"/>
  981. <HighlightTexture inherits="UIPanelButtonHighlightTexture"/>
  982. <Anchors>
  983. <Anchor point="BOTTOMLEFT">
  984. <Offset>
  985. <AbsDimension x="108" y="21"/>
  986. </Offset>
  987. </Anchor>
  988. </Anchors>
  989. <Scripts>
  990. <OnLoad>
  991. this:RegisterForClicks("LeftButtonUp","RightButtonUp");
  992. </OnLoad>
  993. <OnEnter>
  994. GameTooltip:SetOwner(this, "ANCHOR_NONE");
  995. GameTooltip:SetPoint("BOTTOMRIGHT", "UIParent", "BOTTOMRIGHT", -CONTAINER_OFFSET_X - 13, CONTAINER_OFFSET_Y);
  996. GameTooltip:AddLine("Root/Unroot");
  997. GameTooltip:AddLine("Left click to root.");
  998. GameTooltip:AddLine("Right click to unroot.");
  999. GameTooltip:Show();
  1000. </OnEnter>
  1001. <OnLeave>
  1002. GameTooltip:Hide();
  1003. </OnLeave>
  1004. </Scripts>
  1005. </Button>
  1006. <Button name="$parent_Appear" inherits="UIPanelButtonTemplate" text='App/Sum'>
  1007. <Size>
  1008. <AbsDimension x="66" y="22"/>
  1009. </Size>
  1010. <Anchors>
  1011. <Anchor point="BOTTOMLEFT">
  1012. <Offset>
  1013. <AbsDimension x="186" y="21"/>
  1014. </Offset>
  1015. </Anchor>
  1016. </Anchors>
  1017. <Scripts>
  1018. <OnLoad>
  1019. this:RegisterForClicks("LeftButtonUp","RightButtonUp");
  1020. </OnLoad>
  1021. <OnClick>
  1022. if (button == "RightButton") then
  1023. Ticket_Summon();
  1024. else
  1025. Ticket_Appear();
  1026. end
  1027. </OnClick>
  1028. <OnEnter>
  1029. GameTooltip:SetOwner(this, "ANCHOR_NONE");
  1030. GameTooltip:SetPoint("BOTTOMRIGHT", "UIParent", "BOTTOMRIGHT", -CONTAINER_OFFSET_X - 13, CONTAINER_OFFSET_Y);
  1031. GameTooltip:AddLine("Appear/Summon");
  1032. GameTooltip:AddLine("Left click to appear.");
  1033. GameTooltip:AddLine("Right click to summon.");
  1034. GameTooltip:Show();
  1035. </OnEnter>
  1036. <OnLeave>
  1037. GameTooltip:Hide();
  1038. </OnLeave>
  1039. </Scripts>
  1040. </Button>
  1041. <Button name="$parent_Delete" inherits="UIPanelButtonTemplate" text='Delete'>
  1042. <Size>
  1043. <AbsDimension x="66" y="22"/>
  1044. </Size>
  1045. <Anchors>
  1046. <Anchor point="BOTTOMLEFT">
  1047. <Offset>
  1048. <AbsDimension x="264" y="54"/>
  1049. </Offset>
  1050. </Anchor>
  1051. </Anchors>
  1052. <Scripts>
  1053. <OnClick>
  1054. Ticket_Delete();
  1055. </OnClick>
  1056. </Scripts>
  1057. </Button>
  1058. </Frames>
  1059. </Frame>
  1060. </Ui>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement