Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984
  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. <!--<Layers>
  672. <Layer level="OVERLAY">
  673. <FontString name="$parentText" justifyV="top" justifyH="left" inherits="GameFontNormal" text="Gossip Options">
  674. <Anchors>
  675. <Anchor point="TOPLEFT" />
  676. </Anchors>
  677. </FontString>
  678. </Layer>
  679. <Layer level="BACKGROUND">
  680. <Texture name="$parent_Background" setAllPoints="true">
  681. <Color r="0" g="1" b="0" a="0.0"/>
  682. </Texture>
  683. </Layer>
  684. </Layers>-->
  685. <Frames>
  686. <Button name="$parent1" id="1" hidden="true" inherits="TI_PriorityList">
  687. <Anchors>
  688. <Anchor point="TOPLEFT">
  689. <Offset>
  690. <AbsDimension x="0" y="0" />
  691. </Offset>
  692. </Anchor>
  693. </Anchors>
  694. </Button>
  695. <Button name="$parent2" id="2" hidden="true" inherits="TI_PriorityList">
  696. <Anchors>
  697. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent1">
  698. <Offset>
  699. <AbsDimension x="0" y="0" />
  700. </Offset>
  701. </Anchor>
  702. </Anchors>
  703. </Button>
  704. <Button name="$parent3" id="3" hidden="true" inherits="TI_PriorityList">
  705. <Anchors>
  706. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent2">
  707. <Offset>
  708. <AbsDimension x="0" y="0" />
  709. </Offset>
  710. </Anchor>
  711. </Anchors>
  712. </Button>
  713. <Button name="$parent4" id="4" hidden="true" inherits="TI_PriorityList">
  714. <Anchors>
  715. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent3">
  716. <Offset>
  717. <AbsDimension x="0" y="0" />
  718. </Offset>
  719. </Anchor>
  720. </Anchors>
  721. </Button>
  722. <Button name="$parent5" id="5" hidden="true" inherits="TI_PriorityList">
  723. <Anchors>
  724. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent4">
  725. <Offset>
  726. <AbsDimension x="0" y="0" />
  727. </Offset>
  728. </Anchor>
  729. </Anchors>
  730. </Button>
  731. <Button name="$parent6" id="6" hidden="true" inherits="TI_PriorityList">
  732. <Anchors>
  733. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent5">
  734. <Offset>
  735. <AbsDimension x="0" y="0" />
  736. </Offset>
  737. </Anchor>
  738. </Anchors>
  739. </Button>
  740. <Button name="$parent7" id="7" hidden="true" inherits="TI_PriorityList">
  741. <Anchors>
  742. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent6">
  743. <Offset>
  744. <AbsDimension x="0" y="0" />
  745. </Offset>
  746. </Anchor>
  747. </Anchors>
  748. </Button>
  749. <Button name="$parent8" id="8" hidden="true" inherits="TI_PriorityList">
  750. <Anchors>
  751. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent7">
  752. <Offset>
  753. <AbsDimension x="0" y="0" />
  754. </Offset>
  755. </Anchor>
  756. </Anchors>
  757. </Button>
  758. <Button name="$parent9" id="9" hidden="true" inherits="TI_PriorityList">
  759. <Anchors>
  760. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent8">
  761. <Offset>
  762. <AbsDimension x="0" y="0" />
  763. </Offset>
  764. </Anchor>
  765. </Anchors>
  766. </Button>
  767. <Button name="$parent10" id="10" hidden="true" inherits="TI_PriorityList">
  768. <Anchors>
  769. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent9">
  770. <Offset>
  771. <AbsDimension x="0" y="0" />
  772. </Offset>
  773. </Anchor>
  774. </Anchors>
  775. </Button>
  776. <Button name="$parent11" id="11" hidden="true" inherits="TI_PriorityList">
  777. <Anchors>
  778. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent10">
  779. <Offset>
  780. <AbsDimension x="0" y="0" />
  781. </Offset>
  782. </Anchor>
  783. </Anchors>
  784. </Button>
  785. <Button name="$parent12" id="12" hidden="true" inherits="TI_PriorityList">
  786. <Anchors>
  787. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent11">
  788. <Offset>
  789. <AbsDimension x="0" y="0" />
  790. </Offset>
  791. </Anchor>
  792. </Anchors>
  793. </Button>
  794. <Button name="$parent13" id="13" hidden="true" inherits="TI_PriorityList">
  795. <Anchors>
  796. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent12">
  797. <Offset>
  798. <AbsDimension x="0" y="0" />
  799. </Offset>
  800. </Anchor>
  801. </Anchors>
  802. </Button>
  803. <Button name="$parent14" id="14" hidden="true" inherits="TI_PriorityList">
  804. <Anchors>
  805. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent13">
  806. <Offset>
  807. <AbsDimension x="0" y="0" />
  808. </Offset>
  809. </Anchor>
  810. </Anchors>
  811. </Button>
  812. <Button name="$parent15" id="15" hidden="true" inherits="TI_PriorityList">
  813. <Anchors>
  814. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent14">
  815. <Offset>
  816. <AbsDimension x="0" y="0" />
  817. </Offset>
  818. </Anchor>
  819. </Anchors>
  820. </Button>
  821. <Button name="$parent16" id="16" hidden="true" inherits="TI_PriorityList">
  822. <Anchors>
  823. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent15">
  824. <Offset>
  825. <AbsDimension x="0" y="0" />
  826. </Offset>
  827. </Anchor>
  828. </Anchors>
  829. </Button>
  830. </Frames>
  831. </Frame>
  832. </ScrollChild>
  833. </ScrollFrame>
  834. </Frames>
  835. </Frame>
  836. <Frame name="TI_OptionsNPCContainer" inherits="TI_OptionFrameBoxTemplate">
  837. <Scripts>
  838. <OnLoad>
  839. self:ApplyBackdrop();
  840. self:SetBackdropBorderColor(0.4, 0.4, 0.4);
  841. self:SetBackdropColor(0.15, 0.15, 0.15);
  842. getglobal(self:GetName().."Title"):SetText("NPC Database");
  843. </OnLoad>
  844. </Scripts>
  845. <Anchors>
  846. <Anchor point="BOTTOMLEFT" relativeTo="TI_OptionsPriorityContainer" relativePoint="TOPLEFT">
  847. <Offset>
  848. <AbsDimension x="0" y="16" />
  849. </Offset>
  850. </Anchor>
  851. </Anchors>
  852. <Size>
  853. <AbsDimension x="264" y="176" />
  854. </Size>
  855. <Frames>
  856. <ScrollFrame name="TI_NPCListScrollFrame" inherits="FauxScrollFrameTemplate" hidden="false" >
  857. <Anchors>
  858. <Anchor point="TOPLEFT">
  859. <Offset>
  860. <AbsDimension x="-28" y="-8" />
  861. </Offset>
  862. </Anchor>
  863. <Anchor point="BOTTOMRIGHT">
  864. <Offset>
  865. <AbsDimension x="-28" y="8" />
  866. </Offset>
  867. </Anchor>
  868. </Anchors>
  869. <Scripts>
  870. <OnVerticalScroll>
  871. --FauxScrollFrame_OnVerticalScroll(20, TI_NPCListScrollBarUpdate);
  872. FauxScrollFrame_OnVerticalScroll(self, offset, 20, TI_NPCListScrollBarUpdate);
  873. </OnVerticalScroll>
  874. <OnShow>
  875. TI_NPCListScrollBarUpdate();
  876. </OnShow>
  877. </Scripts>
  878. </ScrollFrame>
  879. <Button name="$parent1" hidden="true" inherits="TI_NPCList">
  880. <Anchors>
  881. <Anchor point="TOPLEFT">
  882. <Offset>
  883. <AbsDimension x="4" y="-8" />
  884. </Offset>
  885. </Anchor>
  886. </Anchors>
  887. </Button>
  888. <Button name="$parent2" hidden="true" inherits="TI_NPCList">
  889. <Anchors>
  890. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent1">
  891. <Offset>
  892. <AbsDimension x="0" y="0" />
  893. </Offset>
  894. </Anchor>
  895. </Anchors>
  896. </Button>
  897. <Button name="$parent3" hidden="true" inherits="TI_NPCList">
  898. <Anchors>
  899. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent2">
  900. <Offset>
  901. <AbsDimension x="0" y="0" />
  902. </Offset>
  903. </Anchor>
  904. </Anchors>
  905. </Button>
  906. <Button name="$parent4" hidden="true" inherits="TI_NPCList">
  907. <Anchors>
  908. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent3">
  909. <Offset>
  910. <AbsDimension x="0" y="0" />
  911. </Offset>
  912. </Anchor>
  913. </Anchors>
  914. </Button>
  915. <Button name="$parent5" hidden="true" inherits="TI_NPCList">
  916. <Anchors>
  917. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent4">
  918. <Offset>
  919. <AbsDimension x="0" y="0" />
  920. </Offset>
  921. </Anchor>
  922. </Anchors>
  923. </Button>
  924. <Button name="$parent6" hidden="true" inherits="TI_NPCList">
  925. <Anchors>
  926. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent5">
  927. <Offset>
  928. <AbsDimension x="0" y="0" />
  929. </Offset>
  930. </Anchor>
  931. </Anchors>
  932. </Button>
  933. <Button name="$parent7" hidden="true" inherits="TI_NPCList">
  934. <Anchors>
  935. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent6">
  936. <Offset>
  937. <AbsDimension x="0" y="0" />
  938. </Offset>
  939. </Anchor>
  940. </Anchors>
  941. </Button>
  942. <Button name="$parent8" hidden="true" inherits="TI_NPCList">
  943. <Anchors>
  944. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent7">
  945. <Offset>
  946. <AbsDimension x="0" y="0" />
  947. </Offset>
  948. </Anchor>
  949. </Anchors>
  950. </Button>
  951. </Frames>
  952. </Frame>
  953. </Frames>
  954. </Frame>
  955. <Frame name="TurnIn" hidden="true" frameStrata="LOW" enableMouse="false">
  956. <Scripts>
  957. <OnLoad function="TI_OnLoad"/>
  958. <OnEvent function="TI_OnEvent"/>
  959. </Scripts>
  960. </Frame>
  961. </Ui>