Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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