Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

TurnIn.xml 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915
  1. <Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/..\FrameXML\UI.xsd">
  2. <Script file="TurnIn.lua" />
  3. <Script file="TurnInUI.lua" />
  4. <Frame name="TI_OptionFrameBoxTemplate" virtual="true">
  5. <!-- shamelessly stolen from blizzard -->
  6. <Layers>
  7. <Layer level="BACKGROUND">
  8. <FontString name="$parentTitle" inherits="GameFontHighlight">
  9. <Anchors>
  10. <Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
  11. <Offset>
  12. <AbsDimension x="9" y="0"/>
  13. </Offset>
  14. </Anchor>
  15. </Anchors>
  16. </FontString>
  17. </Layer>
  18. </Layers>
  19. <Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
  20. <EdgeSize>
  21. <AbsValue val="16"/>
  22. </EdgeSize>
  23. <TileSize>
  24. <AbsValue val="16"/>
  25. </TileSize>
  26. <BackgroundInsets>
  27. <AbsInset left="5" right="5" top="5" bottom="5"/>
  28. </BackgroundInsets>
  29. </Backdrop>
  30. <Scripts>
  31. <OnLoad>
  32. self:SetBackdropBorderColor(0.4, 0.4, 0.4);
  33. self:SetBackdropColor(0.5, 0.5, 0.5);
  34. </OnLoad>
  35. </Scripts>
  36. </Frame>
  37. <Button name="TI_PriorityList" virtual="true" hidden="false">
  38. <Size>
  39. <AbsDimension x="270" y="20" />
  40. </Size>
  41. <Scripts><!--
  42. <OnEnter>
  43. getglobal(self:GetName() .. "_Background"):SetVertexColor(1,1,1,0.4);
  44. </OnEnter>
  45. <OnLeave>
  46. getglobal(self:GetName() .. "_Background"):SetVertexColor(0,0,0,0.4);
  47. </OnLeave>
  48. -->
  49. </Scripts>
  50. <Frames>
  51. <CheckButton name="$parent_Check" hidden="false" inherits="OptionsCheckButtonTemplate">
  52. <Anchors>
  53. <Anchor point="TOPLEFT"/>
  54. </Anchors>
  55. <HitRectInsets>
  56. <AbsInset left="0" right="0" top="0" bottom="0"/>
  57. </HitRectInsets>
  58. <Size>
  59. <AbsDimension x="20" y="22"/>
  60. </Size>
  61. <Scripts>
  62. <OnEnter>
  63. TI_OptionListCheckboxTooltip(self);
  64. </OnEnter>
  65. <OnLeave>
  66. TI_TooltipHide();
  67. </OnLeave>
  68. <OnClick>
  69. TI_OptionToggle(self);
  70. </OnClick>
  71. </Scripts>
  72. </CheckButton>
  73. <Button name="$parent_MoveDown" hidden="false">
  74. <Size>
  75. <AbsDimension x="24" y="24"/>
  76. </Size>
  77. <Anchors>
  78. <Anchor point="TOPRIGHT">
  79. <Offset>
  80. <AbsDimension x="0" y="0"/>
  81. </Offset>
  82. </Anchor>
  83. </Anchors>
  84. <Scripts>
  85. <OnEnter>
  86. TI_TooltipMessage(self, "Decrease this option's priority.");
  87. </OnEnter>
  88. <OnLeave>
  89. TI_TooltipHide();
  90. </OnLeave>
  91. <OnClick>
  92. TI_OptionMove(self, 1);
  93. </OnClick>
  94. </Scripts>
  95. <NormalTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Up"/>
  96. <PushedTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Down"/>
  97. <DisabledTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollDown-Disabled"/>
  98. <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
  99. </Button>
  100. <Button name="$parent_MoveUp" hidden="false">
  101. <Size>
  102. <AbsDimension x="24" y="24"/>
  103. </Size>
  104. <Anchors>
  105. <Anchor point="RIGHT" relativePoint="LEFT" relativeTo="$parent_MoveDown">
  106. <Offset>
  107. <AbsDimension x="3" y="0"/>
  108. </Offset>
  109. </Anchor>
  110. </Anchors>
  111. <Scripts>
  112. <OnClick>
  113. TI_OptionMove(self, -1);
  114. </OnClick>
  115. <OnEnter>
  116. TI_TooltipMessage(self, "Increase this option's priority.");
  117. </OnEnter>
  118. <OnLeave>
  119. TI_TooltipHide();
  120. </OnLeave>
  121. </Scripts>
  122. <NormalTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollUp-Up"/>
  123. <PushedTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollUp-Down"/>
  124. <DisabledTexture file="Interface\ChatFrame\UI-ChatIcon-ScrollUp-Disabled"/>
  125. <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/>
  126. </Button>
  127. </Frames>
  128. <Layers>
  129. <Layer level="ARTWORK">
  130. <Texture name="$parent_Icon" file="Interface\QuestFrame\UI-Quest-BulletPoint">
  131. <Size>
  132. <AbsDimension x="16" y="16"/>
  133. </Size>
  134. <Anchors>
  135. <Anchor point="TOPLEFT">
  136. <Offset>
  137. <AbsDimension x="20" y="-3"/>
  138. </Offset>
  139. </Anchor>
  140. </Anchors>
  141. </Texture>
  142. <FontString name="$parent_Text" inherits="GameFontNormal" justifyV="top" justifyH="left">
  143. <Anchors>
  144. <Anchor point="TOPLEFT" relativeTo="$parent_Icon" relativePoint="TOPRIGHT">
  145. <Offset>
  146. <AbsDimension x="0" y="-1"/>
  147. </Offset>
  148. </Anchor>
  149. <Anchor point="TOPRIGHT" relativeTo="$parent_MoveUp" relativePoint="TOPLEFT">
  150. <Offset>
  151. <AbsDimension x="0" y="0"/>
  152. </Offset>
  153. </Anchor>
  154. </Anchors>
  155. </FontString>
  156. </Layer>
  157. <Layer level="BACKGROUND">
  158. <Texture name="$parent_Background" setAllPoints="true">
  159. <Color r="0.2" g="0.2" b="1" a="0.0" />
  160. </Texture>
  161. </Layer>
  162. </Layers>
  163. <!--<NormalText name="$parent_Text" justifyV="top" justifyH="left" inherits="GameFontNormal" nonspacewrap="true">
  164. <Anchors>
  165. <Anchor point="TOPLEFT" relativeTo="$parent_Icon" relativePoint="TOPRIGHT">
  166. <Offset>
  167. <AbsDimension x="0" y="-1"/>
  168. </Offset>
  169. </Anchor>
  170. <Anchor point="TOPRIGHT" relativeTo="$parent_MoveUp" relativePoint="TOPLEFT">
  171. <Offset>
  172. <AbsDimension x="0" y="0"/>
  173. </Offset>
  174. </Anchor>
  175. </Anchors>
  176. <Size>
  177. <AbsDimension x="156" y="0" />
  178. </Size>
  179. </NormalText>-->
  180. </Button>
  181. <Button name="TI_NPCList" virtual="true" hidden="false">
  182. <Size>
  183. <AbsDimension x="232" y="20" />
  184. </Size>
  185. <Frames>
  186. <CheckButton name="$parent_Check" hidden="false" inherits="OptionsCheckButtonTemplate">
  187. <Anchors>
  188. <Anchor point="TOPLEFT"/>
  189. </Anchors>
  190. <HitRectInsets>
  191. <AbsInset left="0" right="0" top="0" bottom="0"/>
  192. </HitRectInsets>
  193. <Size>
  194. <AbsDimension x="20" y="22"/>
  195. </Size>
  196. <Scripts>
  197. <OnClick>
  198. TI_NPCToggle(self);
  199. TI_NPCListCheckboxTooltip(self);
  200. </OnClick>
  201. <OnEnter>
  202. TI_NPCListCheckboxTooltip(self);
  203. </OnEnter>
  204. <OnLeave>
  205. TI_TooltipHide();
  206. </OnLeave>
  207. </Scripts>
  208. </CheckButton>
  209. <Button name="$parent_Delete" hidden="false" inherits="OptionsButtonTemplate" text="X">
  210. <Anchors>
  211. <Anchor point="RIGHT">
  212. <Offset>
  213. <AbsDimension x="3" y="0"/>
  214. </Offset>
  215. </Anchor>
  216. </Anchors>
  217. <Size>
  218. <AbsDimension x="20" y="20" />
  219. </Size>
  220. <Scripts>
  221. <OnEnter>
  222. TI_TooltipMessage(self, "Delete this NPC.");
  223. </OnEnter>
  224. <OnLeave>
  225. TI_TooltipHide();
  226. </OnLeave>
  227. <OnClick>
  228. TI_DeleteNPCIndex(self);
  229. </OnClick>
  230. </Scripts>
  231. </Button>
  232. </Frames>
  233. <Layers>
  234. <Layer level="ARTWORK">
  235. <FontString name="$parent_Text" justifyV="top" justifyH="left" inherits="GameFontNormal" text="">
  236. <Anchors>
  237. <Anchor point="LEFT">
  238. <Offset>
  239. <AbsDimension x="20" y="0"/>
  240. </Offset>
  241. </Anchor>
  242. </Anchors>
  243. </FontString>
  244. </Layer>
  245. </Layers>
  246. <Scripts>
  247. <OnClick>
  248. TI_SelectNPCIndex(self);
  249. </OnClick>
  250. </Scripts>
  251. <HighlightTexture file="Interface\QuestFrame\UI-QuestTitleHighlight" alphaMode="ADD"/>
  252. </Button>
  253. <GameTooltip name="TI_Tooltip" hidden="true" inherits="GameTooltipTemplate" />
  254. <Frame Name="TI_TempNPCListEntry" virtual="true" hidden="true">
  255. <Scripts>
  256. <OnEnter>
  257. TI_TempNPCListTooltipShow(self);
  258. </OnEnter>
  259. <OnLeave>
  260. TI_TooltipHide();
  261. </OnLeave>
  262. </Scripts>
  263. <Size>
  264. <AbsDimension x="188" y="20" />
  265. </Size>
  266. <Layers>
  267. <Layer level="ARTWORK">
  268. <FontString name="$parent_Text" justifyV="top" justifyH="left" inherits="GameFontNormal" text="">
  269. <Anchors>
  270. <Anchor point="LEFT">
  271. <Offset>
  272. <AbsDimension x="0" y="0"/>
  273. </Offset>
  274. </Anchor>
  275. </Anchors>
  276. </FontString>
  277. </Layer>
  278. </Layers>
  279. <Frames>
  280. <Button name="$parent_Delete" hidden="false" inherits="OptionsButtonTemplate" text="X">
  281. <Anchors>
  282. <Anchor point="TOPRIGHT">
  283. <Offset>
  284. <AbsDimension x="0" y="2"/>
  285. </Offset>
  286. </Anchor>
  287. </Anchors>
  288. <Size>
  289. <AbsDimension x="20" y="20" />
  290. </Size>
  291. <Scripts>
  292. <OnClick>
  293. TI_DeleteTempNPCIndex(self:GetParent():GetID());
  294. </OnClick>
  295. <OnEnter>
  296. TI_TooltipMessage(self, "Delete");
  297. </OnEnter>
  298. <OnLeave>
  299. TI_TooltipHide();
  300. </OnLeave>
  301. </Scripts>
  302. </Button>
  303. <Button name="$parent_Add" hidden="false" inherits="OptionsButtonTemplate" text="+">
  304. <Anchors>
  305. <Anchor point="RIGHT" relativeTo="$parent_Delete" relativePoint="LEFT">
  306. <Offset>
  307. <AbsDimension x="0" y="0"/>
  308. </Offset>
  309. </Anchor>
  310. </Anchors>
  311. <Size>
  312. <AbsDimension x="20" y="20" />
  313. </Size>
  314. <Scripts>
  315. <OnClick>
  316. TI_AddTempNPCIndex(self:GetParent():GetID());
  317. </OnClick>
  318. <OnEnter>
  319. TI_TooltipMessage(self, "Add this NPC to the database");
  320. </OnEnter>
  321. <OnLeave>
  322. TI_TooltipHide();
  323. </OnLeave>
  324. </Scripts>
  325. </Button>
  326. </Frames>
  327. </Frame>
  328. <Frame Name="TI_TempNPCListWindow" parent="UIParent" frameStrata="DIALOG" toplevel="true" enableMouse="true" movable="true" hidden="true">
  329. <Size>
  330. <AbsDimension x="200" y="130" />
  331. </Size>
  332. <Anchors>
  333. <Anchor point="CENTER"/>
  334. </Anchors>
  335. <Layers>
  336. <Layer level="ARTWORK">
  337. <FontString inherits="GameFontNormal" text="Recently Visited NPCs">
  338. <Anchors>
  339. <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
  340. <Offset><AbsDimension x="6" y="-7" /></Offset>
  341. </Anchor>
  342. <Anchor point="TOPRIGHT">
  343. <Offset><AbsDimension x="-6" y="-7" /></Offset>
  344. </Anchor>
  345. </Anchors>
  346. </FontString>
  347. </Layer>
  348. </Layers>
  349. <Frames>
  350. <Button name="$parent_Close" inherits="UIPanelCloseButton">
  351. <Anchors>
  352. <Anchor point="TOPRIGHT">
  353. <Offset>
  354. <AbsDimension x="0" y="0"/>
  355. </Offset>
  356. </Anchor>
  357. </Anchors>
  358. </Button>
  359. <Frame name="$parent1" id="1" hidden="true" inherits="TI_TempNPCListEntry">
  360. <Anchors>
  361. <Anchor point="TOPLEFT" relativePoint="TOPLEFT">
  362. <Offset><AbsDimension x="6" y="-27" /></Offset>
  363. </Anchor>
  364. <!--<Anchor point="TOPRIGHT">
  365. <Offset><AbsDimension x="-6" y="-27" /></Offset>
  366. </Anchor>-->
  367. </Anchors>
  368. </Frame>
  369. <Frame name="$parent2" id="2" hidden="true" inherits="TI_TempNPCListEntry">
  370. <Anchors>
  371. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent1">
  372. <Offset><AbsDimension x="0" y="0" /></Offset>
  373. </Anchor>
  374. </Anchors>
  375. </Frame>
  376. <Frame name="$parent3" id="3" hidden="true" inherits="TI_TempNPCListEntry">
  377. <Anchors>
  378. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent2">
  379. <Offset><AbsDimension x="0" y="0" /></Offset>
  380. </Anchor>
  381. </Anchors>
  382. </Frame>
  383. <Frame name="$parent4" id="4" hidden="true" inherits="TI_TempNPCListEntry">
  384. <Anchors>
  385. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent3">
  386. <Offset><AbsDimension x="0" y="0" /></Offset>
  387. </Anchor>
  388. </Anchors>
  389. </Frame>
  390. <Frame name="$parent5" id="5" hidden="true" inherits="TI_TempNPCListEntry">
  391. <Anchors>
  392. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent4">
  393. <Offset><AbsDimension x="0" y="0" /></Offset>
  394. </Anchor>
  395. </Anchors>
  396. </Frame>
  397. </Frames>
  398. <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
  399. <EdgeSize>
  400. <AbsValue val="16"/>
  401. </EdgeSize>
  402. <TileSize>
  403. <AbsValue val="16"/>
  404. </TileSize>
  405. <BackgroundInsets>
  406. <AbsInset left="5" right="5" top="5" bottom="5"/>
  407. </BackgroundInsets>
  408. </Backdrop>
  409. <Scripts>
  410. <OnMouseUp>
  411. if ( self.isMoving ) then
  412. self:StopMovingOrSizing();
  413. self.isMoving = false;
  414. end
  415. </OnMouseUp>
  416. <OnMouseDown>
  417. if ( button == "LeftButton" ) then
  418. self:StartMoving();
  419. self.isMoving = true;
  420. end
  421. </OnMouseDown>
  422. <OnHide>
  423. if ( self.isMoving ) then
  424. self:StopMovingOrSizing();
  425. self.isMoving = false;
  426. end
  427. </OnHide>
  428. </Scripts>
  429. </Frame>
  430. <Frame Name="TI_OptionsFrame">
  431. <!--
  432. <TitleRegion>
  433. <Size>
  434. <AbsDimension x="128" y="64"/>
  435. </Size>
  436. <Anchors>
  437. <Anchor point="TOP">
  438. <Offset>
  439. <AbsDimension x="0" y="12"/>
  440. </Offset>
  441. </Anchor>
  442. </Anchors>
  443. </TitleRegion>
  444. <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
  445. <BackgroundInsets>
  446. <AbsInset left="11" right="12" top="12" bottom="11"/>
  447. </BackgroundInsets>
  448. <TileSize>
  449. <AbsValue val="32"/>
  450. </TileSize>
  451. <EdgeSize>
  452. <AbsValue val="32"/>
  453. </EdgeSize>
  454. </Backdrop>
  455. -->
  456. <Scripts>
  457. <OnLoad>
  458. TI_LoadInterfaceOptions(self);
  459. </OnLoad>
  460. </Scripts>
  461. <!--
  462. <Size>
  463. <AbsDimension x="300" y="500"/>
  464. </Size>
  465. -->
  466. <Anchors>
  467. <Anchor point="CENTER"/>
  468. </Anchors>
  469. <Layers>
  470. <Layer level="ARTWORK">
  471. <!--
  472. <Texture name="$parentOptionFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
  473. <Size>
  474. <AbsDimension x="256" y="64"/>
  475. </Size>
  476. <Anchors>
  477. <Anchor point="TOP">
  478. <Offset>
  479. <AbsDimension x="0" y="12"/>
  480. </Offset>
  481. </Anchor>
  482. </Anchors>
  483. </Texture>
  484. <FontString inherits="GameFontNormal" text="Turn In Options">
  485. <Anchors>
  486. <Anchor point="TOP" relativeTo="$parentOptionFrameHeader">
  487. <Offset>
  488. <AbsDimension x="0" y="-14"/>
  489. </Offset>
  490. </Anchor>
  491. </Anchors>
  492. </FontString>
  493. -->
  494. </Layer>
  495. </Layers>
  496. <Frames>
  497. <!--
  498. <Button name="$parent_Close" inherits="UIPanelCloseButton">
  499. <Anchors>
  500. <Anchor point="TOPRIGHT">
  501. <Offset>
  502. <AbsDimension x="0" y="0"/>
  503. </Offset>
  504. </Anchor>
  505. </Anchors>
  506. </Button>
  507. -->
  508. <Frame name="TI_StatusIndicator" hidden="false">
  509. <Anchors>
  510. <Anchor point="TOPLEFT">
  511. <Offset>
  512. <AbsDimension x="16" y="-24" />
  513. </Offset>
  514. </Anchor>
  515. </Anchors>
  516. <Size>
  517. <AbsDimension x="200" y="20" />
  518. </Size>
  519. <Frames>
  520. <CheckButton name="$parent_Checkbox" hidden="false" inherits="OptionsCheckButtonTemplate">
  521. <Anchors>
  522. <Anchor point="TOPLEFT">
  523. <Offset>
  524. <AbsDimension x="0" y="0" />
  525. </Offset>
  526. </Anchor>
  527. </Anchors>
  528. <HitRectInsets>
  529. <AbsInset left="0" right="0" top="0" bottom="0"/>
  530. </HitRectInsets>
  531. <Size>
  532. <AbsDimension x="20" y="22"/>
  533. </Size>
  534. <Scripts>
  535. <OnClick>
  536. TI_StatusIndicator_CheckFn(self);
  537. </OnClick>
  538. </Scripts>
  539. </CheckButton>
  540. </Frames>
  541. <Layers>
  542. <Layer level="OVERLAY">
  543. <FontString name="$parent_Text" inherits="GameFontNormal" text="Turn In is ">
  544. <Anchors>
  545. <Anchor point="LEFT">
  546. <Offset>
  547. <AbsDimension x="20" y="0" />
  548. </Offset>
  549. </Anchor>
  550. </Anchors>
  551. </FontString>
  552. <FontString name="$parent_Status" inherits="GameFontNormal">
  553. <Anchors>
  554. <Anchor point="LEFT" relativeTo="$parent_Text" relativePoint="RIGHT">
  555. <Offset>
  556. <AbsDimension x="1" y="0" />
  557. </Offset>
  558. </Anchor>
  559. </Anchors>
  560. </FontString>
  561. </Layer>
  562. </Layers>
  563. <Scripts>
  564. <OnShow>
  565. TI_StatusIndicatorUpdate();
  566. </OnShow>
  567. </Scripts>
  568. </Frame>
  569. <Frame name="TI_SettingCheckboxes" hidden="false">
  570. <Anchors>
  571. <Anchor point="TOPLEFT" relativeTo="TI_StatusIndicator" relativePoint="BOTTOMLEFT">
  572. <Offset>
  573. <AbsDimension x="0" y="-10" />
  574. </Offset>
  575. </Anchor>
  576. </Anchors>
  577. <Size>
  578. <AbsDimension x="200" y="40" />
  579. </Size>
  580. <Frames>
  581. <CheckButton name="$parent_UseDefault" hidden="false" inherits="OptionsCheckButtonTemplate">
  582. <Anchors>
  583. <Anchor point="TOPLEFT">
  584. <Offset>
  585. <AbsDimension x="0" y="0" />
  586. </Offset>
  587. </Anchor>
  588. </Anchors>
  589. <HitRectInsets>
  590. <AbsInset left="0" right="0" top="0" bottom="0"/>
  591. </HitRectInsets>
  592. <Size>
  593. <AbsDimension x="20" y="22"/>
  594. </Size>
  595. <Scripts>
  596. <OnClick>
  597. TI_SettingCheckboxFn(self, "usedefault");
  598. </OnClick>
  599. </Scripts>
  600. </CheckButton>
  601. <CheckButton name="$parent_AddAutomatically" hidden="false" inherits="OptionsCheckButtonTemplate">
  602. <Anchors>
  603. <Anchor point="TOPLEFT" relativeTo="$parent_UseDefault" relativePoint="BOTTOMLEFT">
  604. <Offset>
  605. <AbsDimension x="0" y="0" />
  606. </Offset>
  607. </Anchor>
  608. </Anchors>
  609. <HitRectInsets>
  610. <AbsInset left="0" right="0" top="0" bottom="0"/>
  611. </HitRectInsets>
  612. <Size>
  613. <AbsDimension x="20" y="22"/>
  614. </Size>
  615. <Scripts>
  616. <OnClick>
  617. TI_SettingCheckboxFn(self, "autoadd");
  618. </OnClick>
  619. </Scripts>
  620. </CheckButton>
  621. </Frames>
  622. <Layers>
  623. <Layer level="OVERLAY">
  624. <FontString name="$parent_UseDefault_Text" inherits="GameFontNormal" text="Use default options for unlisted NPCs">
  625. <Anchors>
  626. <Anchor point="TOPLEFT">
  627. <Offset>
  628. <AbsDimension x="20" y="-4" />
  629. </Offset>
  630. </Anchor>
  631. </Anchors>
  632. </FontString>
  633. <FontString name="$parent_AddAutomatically_Text" inherits="GameFontNormal" text="Automatically add new NPCs">
  634. <Anchors>
  635. <Anchor point="TOPLEFT" relativeTo="$parent_UseDefault_Text" relativePoint="BOTTOMLEFT">
  636. <Offset>
  637. <AbsDimension x="0" y="-10" />
  638. </Offset>
  639. </Anchor>
  640. </Anchors>
  641. </FontString>
  642. </Layer>
  643. </Layers>
  644. <Scripts>
  645. <OnShow>
  646. TI_SettingCheckboxUpdate();
  647. </OnShow>
  648. </Scripts>
  649. </Frame>
  650. <Frame name="TI_OptionsPriorityContainer" inherits="TI_OptionFrameBoxTemplate">
  651. <Scripts>
  652. <OnLoad>
  653. self:SetBackdropBorderColor(0.4, 0.4, 0.4);
  654. self:SetBackdropColor(0.15, 0.15, 0.15);
  655. getglobal(self:GetName().."Title"):SetText("Gossip Options Priority List");
  656. </OnLoad>
  657. </Scripts>
  658. <Anchors>
  659. <Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT">
  660. <Offset>
  661. <AbsDimension x="-10" y="10" />
  662. </Offset>
  663. </Anchor>
  664. </Anchors>
  665. <Size>
  666. <AbsDimension x="300" y="430" />
  667. </Size>
  668. <Frames>
  669. <ScrollFrame name="TI_OptionsPriorityScrollFrame" hidden="false" inherits="UIPanelScrollFrameTemplate">
  670. <Anchors>
  671. <Anchor point="TOPLEFT">
  672. <Offset>
  673. <AbsDimension x="4" y="-8" />
  674. </Offset>
  675. </Anchor>
  676. <Anchor point="BOTTOMRIGHT">
  677. <Offset>
  678. <AbsDimension x="-28" y="8" />
  679. </Offset>
  680. </Anchor>
  681. </Anchors>
  682. <ScrollChild>
  683. <Frame name="TI_OptionsPriority">
  684. <Anchors>
  685. <Anchor point="TOPLEFT" />
  686. </Anchors>
  687. <Size>
  688. <AbsDimension x="200" y="30"/>
  689. </Size>
  690. <Frames>
  691. <Button name="$parent1" id="1" hidden="true" inherits="TI_PriorityList">
  692. <Anchors>
  693. <Anchor point="TOPLEFT">
  694. <Offset>
  695. <AbsDimension x="0" y="0" />
  696. </Offset>
  697. </Anchor>
  698. </Anchors>
  699. </Button>
  700. <Button name="$parent2" id="2" hidden="true" inherits="TI_PriorityList">
  701. <Anchors>
  702. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent1">
  703. <Offset>
  704. <AbsDimension x="0" y="0" />
  705. </Offset>
  706. </Anchor>
  707. </Anchors>
  708. </Button>
  709. <Button name="$parent3" id="3" hidden="true" inherits="TI_PriorityList">
  710. <Anchors>
  711. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent2">
  712. <Offset>
  713. <AbsDimension x="0" y="0" />
  714. </Offset>
  715. </Anchor>
  716. </Anchors>
  717. </Button>
  718. <Button name="$parent4" id="4" hidden="true" inherits="TI_PriorityList">
  719. <Anchors>
  720. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent3">
  721. <Offset>
  722. <AbsDimension x="0" y="0" />
  723. </Offset>
  724. </Anchor>
  725. </Anchors>
  726. </Button>
  727. <Button name="$parent5" id="5" hidden="true" inherits="TI_PriorityList">
  728. <Anchors>
  729. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent4">
  730. <Offset>
  731. <AbsDimension x="0" y="0" />
  732. </Offset>
  733. </Anchor>
  734. </Anchors>
  735. </Button>
  736. <Button name="$parent6" id="6" hidden="true" inherits="TI_PriorityList">
  737. <Anchors>
  738. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent5">
  739. <Offset>
  740. <AbsDimension x="0" y="0" />
  741. </Offset>
  742. </Anchor>
  743. </Anchors>
  744. </Button>
  745. <Button name="$parent7" id="7" hidden="true" inherits="TI_PriorityList">
  746. <Anchors>
  747. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent6">
  748. <Offset>
  749. <AbsDimension x="0" y="0" />
  750. </Offset>
  751. </Anchor>
  752. </Anchors>
  753. </Button>
  754. <Button name="$parent8" id="8" hidden="true" inherits="TI_PriorityList">
  755. <Anchors>
  756. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent7">
  757. <Offset>
  758. <AbsDimension x="0" y="0" />
  759. </Offset>
  760. </Anchor>
  761. </Anchors>
  762. </Button>
  763. <Button name="$parent9" id="9" hidden="true" inherits="TI_PriorityList">
  764. <Anchors>
  765. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent8">
  766. <Offset>
  767. <AbsDimension x="0" y="0" />
  768. </Offset>
  769. </Anchor>
  770. </Anchors>
  771. </Button>
  772. <Button name="$parent10" id="10" hidden="true" inherits="TI_PriorityList">
  773. <Anchors>
  774. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent9">
  775. <Offset>
  776. <AbsDimension x="0" y="0" />
  777. </Offset>
  778. </Anchor>
  779. </Anchors>
  780. </Button>
  781. <Button name="$parent11" id="11" hidden="true" inherits="TI_PriorityList">
  782. <Anchors>
  783. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent10">
  784. <Offset>
  785. <AbsDimension x="0" y="0" />
  786. </Offset>
  787. </Anchor>
  788. </Anchors>
  789. </Button>
  790. <Button name="$parent12" id="12" hidden="true" inherits="TI_PriorityList">
  791. <Anchors>
  792. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent11">
  793. <Offset>
  794. <AbsDimension x="0" y="0" />
  795. </Offset>
  796. </Anchor>
  797. </Anchors>
  798. </Button>
  799. <Button name="$parent13" id="13" hidden="true" inherits="TI_PriorityList">
  800. <Anchors>
  801. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent12">
  802. <Offset>
  803. <AbsDimension x="0" y="0" />
  804. </Offset>
  805. </Anchor>
  806. </Anchors>
  807. </Button>
  808. <Button name="$parent14" id="14" hidden="true" inherits="TI_PriorityList">
  809. <Anchors>
  810. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent13">
  811. <Offset>
  812. <AbsDimension x="0" y="0" />
  813. </Offset>
  814. </Anchor>
  815. </Anchors>
  816. </Button>
  817. <Button name="$parent15" id="15" hidden="true" inherits="TI_PriorityList">
  818. <Anchors>
  819. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent14">
  820. <Offset>
  821. <AbsDimension x="0" y="0" />
  822. </Offset>
  823. </Anchor>
  824. </Anchors>
  825. </Button>
  826. <Button name="$parent16" id="16" hidden="true" inherits="TI_PriorityList">
  827. <Anchors>
  828. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent15">
  829. <Offset>
  830. <AbsDimension x="0" y="0" />
  831. </Offset>
  832. </Anchor>
  833. </Anchors>
  834. </Button>
  835. </Frames>
  836. </Frame>
  837. </ScrollChild>
  838. </ScrollFrame>
  839. </Frames>
  840. </Frame>
  841. <Frame name="TI_OptionsNPCContainer" inherits="TI_OptionFrameBoxTemplate">
  842. <Scripts>
  843. <OnLoad>
  844. self:SetBackdropBorderColor(0.4, 0.4, 0.4);
  845. self:SetBackdropColor(0.15, 0.15, 0.15);
  846. getglobal(self:GetName().."Title"):SetText("NPC Database");
  847. TI_GenerateFauxScrollFrameButtons(self, "TI_NPCList");
  848. </OnLoad>
  849. </Scripts>
  850. <Anchors>
  851. <Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
  852. <Offset>
  853. <AbsDimension x="10" y="10" />
  854. </Offset>
  855. </Anchor>
  856. </Anchors>
  857. <Size>
  858. <AbsDimension x="300" y="430" />
  859. </Size>
  860. <Frames>
  861. <ScrollFrame name="TI_NPCListScrollFrame" inherits="FauxScrollFrameTemplate" hidden="false" enableMouseWheel="true">
  862. <Anchors>
  863. <Anchor point="TOPLEFT">
  864. <Offset>
  865. <AbsDimension x="-28" y="-8" />
  866. </Offset>
  867. </Anchor>
  868. <Anchor point="BOTTOMRIGHT">
  869. <Offset>
  870. <AbsDimension x="-28" y="8" />
  871. </Offset>
  872. </Anchor>
  873. </Anchors>
  874. <Scripts>
  875. <OnVerticalScroll>
  876. --FauxScrollFrame_OnVerticalScroll(20, TI_NPCListScrollBarUpdate);
  877. FauxScrollFrame_OnVerticalScroll(self, offset, 20, TI_NPCListScrollBarUpdate);
  878. </OnVerticalScroll>
  879. <OnShow>
  880. TI_NPCListScrollBarUpdate();
  881. </OnShow>
  882. </Scripts>
  883. </ScrollFrame>
  884. </Frames>
  885. </Frame>
  886. </Frames>
  887. </Frame>
  888. <Frame name="TurnIn" hidden="true" frameStrata="LOW" enableMouse="false">
  889. <Scripts>
  890. <OnLoad function="TI_OnLoad"/>
  891. <OnEvent function="TI_OnEvent"/>
  892. </Scripts>
  893. </Frame>
  894. </Ui>