Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998
  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="235" 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();
  64. </OnEnter>
  65. <OnLeave>
  66. TI_TooltipHide();
  67. </OnLeave>
  68. <OnClick>
  69. TI_OptionToggle();
  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("Decrease this option's priority.");
  87. </OnEnter>
  88. <OnLeave>
  89. TI_TooltipHide();
  90. </OnLeave>
  91. <OnClick>
  92. TI_OptionMove(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(-1);
  114. </OnClick>
  115. <OnEnter>
  116. TI_TooltipMessage("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();
  199. TI_NPCListCheckboxTooltip();
  200. </OnClick>
  201. <OnEnter>
  202. TI_NPCListCheckboxTooltip();
  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("Delete this NPC.");
  223. </OnEnter>
  224. <OnLeave>
  225. TI_TooltipHide();
  226. </OnLeave>
  227. <OnClick>
  228. TI_DeleteNPCIndex();
  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();
  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();
  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("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("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 ( arg1 == "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" frameStrata="DIALOG" toplevel="true" enableMouse="true" enableMouseWheel="true" movable="true" parent="UIParent">
  431. <TitleRegion>
  432. <Size>
  433. <AbsDimension x="128" y="64"/>
  434. </Size>
  435. <Anchors>
  436. <Anchor point="TOP">
  437. <Offset>
  438. <AbsDimension x="0" y="12"/>
  439. </Offset>
  440. </Anchor>
  441. </Anchors>
  442. </TitleRegion>
  443. <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
  444. <BackgroundInsets>
  445. <AbsInset left="11" right="12" top="12" bottom="11"/>
  446. </BackgroundInsets>
  447. <TileSize>
  448. <AbsValue val="32"/>
  449. </TileSize>
  450. <EdgeSize>
  451. <AbsValue val="32"/>
  452. </EdgeSize>
  453. </Backdrop>
  454. <Scripts>
  455. <OnShow>
  456. </OnShow>
  457. </Scripts>
  458. <Size>
  459. <AbsDimension x="300" y="500"/>
  460. </Size>
  461. <Anchors>
  462. <Anchor point="CENTER"/>
  463. </Anchors>
  464. <Layers>
  465. <Layer level="ARTWORK">
  466. <Texture name="$parentOptionFrameHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
  467. <Size>
  468. <AbsDimension x="256" y="64"/>
  469. </Size>
  470. <Anchors>
  471. <Anchor point="TOP">
  472. <Offset>
  473. <AbsDimension x="0" y="12"/>
  474. </Offset>
  475. </Anchor>
  476. </Anchors>
  477. </Texture>
  478. <FontString inherits="GameFontNormal" text="Turn In Options">
  479. <Anchors>
  480. <Anchor point="TOP" relativeTo="$parentOptionFrameHeader">
  481. <Offset>
  482. <AbsDimension x="0" y="-14"/>
  483. </Offset>
  484. </Anchor>
  485. </Anchors>
  486. </FontString>
  487. </Layer>
  488. </Layers>
  489. <Frames>
  490. <Button name="$parent_Close" inherits="UIPanelCloseButton">
  491. <Anchors>
  492. <Anchor point="TOPRIGHT">
  493. <Offset>
  494. <AbsDimension x="0" y="0"/>
  495. </Offset>
  496. </Anchor>
  497. </Anchors>
  498. </Button>
  499. <Frame name="TI_StatusIndicator" hidden="false">
  500. <Anchors>
  501. <Anchor point="TOPLEFT">
  502. <Offset>
  503. <AbsDimension x="16" y="-24" />
  504. </Offset>
  505. </Anchor>
  506. </Anchors>
  507. <Size>
  508. <AbsDimension x="200" y="20" />
  509. </Size>
  510. <Frames>
  511. <CheckButton name="$parent_Checkbox" hidden="false" inherits="OptionsCheckButtonTemplate">
  512. <Anchors>
  513. <Anchor point="TOPLEFT">
  514. <Offset>
  515. <AbsDimension x="0" y="0" />
  516. </Offset>
  517. </Anchor>
  518. </Anchors>
  519. <HitRectInsets>
  520. <AbsInset left="0" right="0" top="0" bottom="0"/>
  521. </HitRectInsets>
  522. <Size>
  523. <AbsDimension x="20" y="22"/>
  524. </Size>
  525. <Scripts>
  526. <OnClick>
  527. TI_StatusIndicator_CheckFn();
  528. </OnClick>
  529. </Scripts>
  530. </CheckButton>
  531. </Frames>
  532. <Layers>
  533. <Layer level="OVERLAY">
  534. <FontString name="$parent_Text" inherits="GameFontNormal" text="Turn In is ">
  535. <Anchors>
  536. <Anchor point="LEFT">
  537. <Offset>
  538. <AbsDimension x="20" y="0" />
  539. </Offset>
  540. </Anchor>
  541. </Anchors>
  542. </FontString>
  543. <FontString name="$parent_Status" inherits="GameFontNormal">
  544. <Anchors>
  545. <Anchor point="LEFT" relativeTo="$parent_Text" relativePoint="RIGHT">
  546. <Offset>
  547. <AbsDimension x="1" y="0" />
  548. </Offset>
  549. </Anchor>
  550. </Anchors>
  551. </FontString>
  552. </Layer>
  553. </Layers>
  554. <Scripts>
  555. <OnShow>
  556. TI_StatusIndicatorUpdate();
  557. </OnShow>
  558. </Scripts>
  559. </Frame>
  560. <Frame name="TI_SettingCheckboxes" hidden="false">
  561. <Anchors>
  562. <Anchor point="TOPLEFT" relativeTo="TI_StatusIndicator" relativePoint="BOTTOMLEFT">
  563. <Offset>
  564. <AbsDimension x="0" y="-10" />
  565. </Offset>
  566. </Anchor>
  567. </Anchors>
  568. <Size>
  569. <AbsDimension x="200" y="40" />
  570. </Size>
  571. <Frames>
  572. <CheckButton name="$parent_UseDefault" hidden="false" inherits="OptionsCheckButtonTemplate">
  573. <Anchors>
  574. <Anchor point="TOPLEFT">
  575. <Offset>
  576. <AbsDimension x="0" y="0" />
  577. </Offset>
  578. </Anchor>
  579. </Anchors>
  580. <HitRectInsets>
  581. <AbsInset left="0" right="0" top="0" bottom="0"/>
  582. </HitRectInsets>
  583. <Size>
  584. <AbsDimension x="20" y="22"/>
  585. </Size>
  586. <Scripts>
  587. <OnClick>
  588. TI_SettingCheckboxFn("usedefault");
  589. </OnClick>
  590. </Scripts>
  591. </CheckButton>
  592. <CheckButton name="$parent_AddAutomatically" hidden="false" inherits="OptionsCheckButtonTemplate">
  593. <Anchors>
  594. <Anchor point="TOPLEFT" relativeTo="$parent_UseDefault" relativePoint="BOTTOMLEFT">
  595. <Offset>
  596. <AbsDimension x="0" y="0" />
  597. </Offset>
  598. </Anchor>
  599. </Anchors>
  600. <HitRectInsets>
  601. <AbsInset left="0" right="0" top="0" bottom="0"/>
  602. </HitRectInsets>
  603. <Size>
  604. <AbsDimension x="20" y="22"/>
  605. </Size>
  606. <Scripts>
  607. <OnClick>
  608. TI_SettingCheckboxFn("autoadd");
  609. </OnClick>
  610. </Scripts>
  611. </CheckButton>
  612. </Frames>
  613. <Layers>
  614. <Layer level="OVERLAY">
  615. <FontString name="$parent_UseDefault_Text" inherits="GameFontNormal" text="Use default options for unlisted NPCs">
  616. <Anchors>
  617. <Anchor point="TOPLEFT">
  618. <Offset>
  619. <AbsDimension x="20" y="-4" />
  620. </Offset>
  621. </Anchor>
  622. </Anchors>
  623. </FontString>
  624. <FontString name="$parent_AddAutomatically_Text" inherits="GameFontNormal" text="Automatically add new NPCs">
  625. <Anchors>
  626. <Anchor point="TOPLEFT" relativeTo="$parent_UseDefault_Text" relativePoint="BOTTOMLEFT">
  627. <Offset>
  628. <AbsDimension x="0" y="-10" />
  629. </Offset>
  630. </Anchor>
  631. </Anchors>
  632. </FontString>
  633. </Layer>
  634. </Layers>
  635. <Scripts>
  636. <OnShow>
  637. TI_SettingCheckboxUpdate();
  638. </OnShow>
  639. </Scripts>
  640. </Frame>
  641. <Frame name="TI_OptionsPriorityContainer" inherits="TI_OptionFrameBoxTemplate">
  642. <Scripts>
  643. <OnLoad>
  644. self:SetBackdropBorderColor(0.4, 0.4, 0.4);
  645. self:SetBackdropColor(0.15, 0.15, 0.15);
  646. getglobal(self:GetName().."Title"):SetText("Gossip Options Priority List");
  647. </OnLoad>
  648. </Scripts>
  649. <Anchors>
  650. <Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT">
  651. <Offset>
  652. <AbsDimension x="16" y="16" />
  653. </Offset>
  654. </Anchor>
  655. </Anchors>
  656. <Size>
  657. <AbsDimension x="264" y="176" />
  658. </Size>
  659. <Frames>
  660. <ScrollFrame name="TI_OptionsPriorityScrollFrame" hidden="false" inherits="UIPanelScrollFrameTemplate">
  661. <Anchors>
  662. <Anchor point="TOPLEFT">
  663. <Offset>
  664. <AbsDimension x="4" y="-8" />
  665. </Offset>
  666. </Anchor>
  667. <Anchor point="BOTTOMRIGHT">
  668. <Offset>
  669. <AbsDimension x="-28" y="8" />
  670. </Offset>
  671. </Anchor>
  672. </Anchors>
  673. <ScrollChild>
  674. <Frame name="TI_OptionsPriority">
  675. <Anchors>
  676. <Anchor point="TOPLEFT" />
  677. </Anchors>
  678. <Size>
  679. <AbsDimension x="200" y="30"/>
  680. </Size>
  681. <!--<Layers>
  682. <Layer level="OVERLAY">
  683. <FontString name="$parentText" justifyV="top" justifyH="left" inherits="GameFontNormal" text="Gossip Options">
  684. <Anchors>
  685. <Anchor point="TOPLEFT" />
  686. </Anchors>
  687. </FontString>
  688. </Layer>
  689. <Layer level="BACKGROUND">
  690. <Texture name="$parent_Background" setAllPoints="true">
  691. <Color r="0" g="1" b="0" a="0.0"/>
  692. </Texture>
  693. </Layer>
  694. </Layers>-->
  695. <Frames>
  696. <Button name="$parent1" id="1" hidden="true" inherits="TI_PriorityList">
  697. <Anchors>
  698. <Anchor point="TOPLEFT">
  699. <Offset>
  700. <AbsDimension x="0" y="0" />
  701. </Offset>
  702. </Anchor>
  703. </Anchors>
  704. </Button>
  705. <Button name="$parent2" id="2" hidden="true" inherits="TI_PriorityList">
  706. <Anchors>
  707. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent1">
  708. <Offset>
  709. <AbsDimension x="0" y="0" />
  710. </Offset>
  711. </Anchor>
  712. </Anchors>
  713. </Button>
  714. <Button name="$parent3" id="3" hidden="true" inherits="TI_PriorityList">
  715. <Anchors>
  716. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent2">
  717. <Offset>
  718. <AbsDimension x="0" y="0" />
  719. </Offset>
  720. </Anchor>
  721. </Anchors>
  722. </Button>
  723. <Button name="$parent4" id="4" hidden="true" inherits="TI_PriorityList">
  724. <Anchors>
  725. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent3">
  726. <Offset>
  727. <AbsDimension x="0" y="0" />
  728. </Offset>
  729. </Anchor>
  730. </Anchors>
  731. </Button>
  732. <Button name="$parent5" id="5" hidden="true" inherits="TI_PriorityList">
  733. <Anchors>
  734. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent4">
  735. <Offset>
  736. <AbsDimension x="0" y="0" />
  737. </Offset>
  738. </Anchor>
  739. </Anchors>
  740. </Button>
  741. <Button name="$parent6" id="6" hidden="true" inherits="TI_PriorityList">
  742. <Anchors>
  743. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent5">
  744. <Offset>
  745. <AbsDimension x="0" y="0" />
  746. </Offset>
  747. </Anchor>
  748. </Anchors>
  749. </Button>
  750. <Button name="$parent7" id="7" hidden="true" inherits="TI_PriorityList">
  751. <Anchors>
  752. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent6">
  753. <Offset>
  754. <AbsDimension x="0" y="0" />
  755. </Offset>
  756. </Anchor>
  757. </Anchors>
  758. </Button>
  759. <Button name="$parent8" id="8" hidden="true" inherits="TI_PriorityList">
  760. <Anchors>
  761. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent7">
  762. <Offset>
  763. <AbsDimension x="0" y="0" />
  764. </Offset>
  765. </Anchor>
  766. </Anchors>
  767. </Button>
  768. <Button name="$parent9" id="9" hidden="true" inherits="TI_PriorityList">
  769. <Anchors>
  770. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent8">
  771. <Offset>
  772. <AbsDimension x="0" y="0" />
  773. </Offset>
  774. </Anchor>
  775. </Anchors>
  776. </Button>
  777. <Button name="$parent10" id="10" hidden="true" inherits="TI_PriorityList">
  778. <Anchors>
  779. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent9">
  780. <Offset>
  781. <AbsDimension x="0" y="0" />
  782. </Offset>
  783. </Anchor>
  784. </Anchors>
  785. </Button>
  786. <Button name="$parent11" id="11" hidden="true" inherits="TI_PriorityList">
  787. <Anchors>
  788. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent10">
  789. <Offset>
  790. <AbsDimension x="0" y="0" />
  791. </Offset>
  792. </Anchor>
  793. </Anchors>
  794. </Button>
  795. <Button name="$parent12" id="12" hidden="true" inherits="TI_PriorityList">
  796. <Anchors>
  797. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent11">
  798. <Offset>
  799. <AbsDimension x="0" y="0" />
  800. </Offset>
  801. </Anchor>
  802. </Anchors>
  803. </Button>
  804. <Button name="$parent13" id="13" hidden="true" inherits="TI_PriorityList">
  805. <Anchors>
  806. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent12">
  807. <Offset>
  808. <AbsDimension x="0" y="0" />
  809. </Offset>
  810. </Anchor>
  811. </Anchors>
  812. </Button>
  813. <Button name="$parent14" id="14" hidden="true" inherits="TI_PriorityList">
  814. <Anchors>
  815. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent13">
  816. <Offset>
  817. <AbsDimension x="0" y="0" />
  818. </Offset>
  819. </Anchor>
  820. </Anchors>
  821. </Button>
  822. <Button name="$parent15" id="15" hidden="true" inherits="TI_PriorityList">
  823. <Anchors>
  824. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent14">
  825. <Offset>
  826. <AbsDimension x="0" y="0" />
  827. </Offset>
  828. </Anchor>
  829. </Anchors>
  830. </Button>
  831. <Button name="$parent16" id="16" hidden="true" inherits="TI_PriorityList">
  832. <Anchors>
  833. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent15">
  834. <Offset>
  835. <AbsDimension x="0" y="0" />
  836. </Offset>
  837. </Anchor>
  838. </Anchors>
  839. </Button>
  840. </Frames>
  841. </Frame>
  842. </ScrollChild>
  843. </ScrollFrame>
  844. </Frames>
  845. </Frame>
  846. <Frame name="TI_OptionsNPCContainer" inherits="TI_OptionFrameBoxTemplate">
  847. <Scripts>
  848. <OnLoad>
  849. self:SetBackdropBorderColor(0.4, 0.4, 0.4);
  850. self:SetBackdropColor(0.15, 0.15, 0.15);
  851. getglobal(self:GetName().."Title"):SetText("NPC Database");
  852. </OnLoad>
  853. </Scripts>
  854. <Anchors>
  855. <Anchor point="BOTTOMLEFT" relativeTo="TI_OptionsPriorityContainer" relativePoint="TOPLEFT">
  856. <Offset>
  857. <AbsDimension x="0" y="16" />
  858. </Offset>
  859. </Anchor>
  860. </Anchors>
  861. <Size>
  862. <AbsDimension x="264" y="176" />
  863. </Size>
  864. <Frames>
  865. <ScrollFrame name="TI_NPCListScrollFrame" inherits="FauxScrollFrameTemplate" hidden="false" enableMouseWheel="true">
  866. <Anchors>
  867. <Anchor point="TOPLEFT">
  868. <Offset>
  869. <AbsDimension x="-28" y="-8" />
  870. </Offset>
  871. </Anchor>
  872. <Anchor point="BOTTOMRIGHT">
  873. <Offset>
  874. <AbsDimension x="-28" y="8" />
  875. </Offset>
  876. </Anchor>
  877. </Anchors>
  878. <Scripts>
  879. <OnVerticalScroll>
  880. --FauxScrollFrame_OnVerticalScroll(20, TI_NPCListScrollBarUpdate);
  881. FauxScrollFrame_OnVerticalScroll(self, offset, 20, TI_NPCListScrollBarUpdate);
  882. </OnVerticalScroll>
  883. <OnShow>
  884. TI_NPCListScrollBarUpdate();
  885. </OnShow>
  886. </Scripts>
  887. </ScrollFrame>
  888. <Button name="$parent1" hidden="true" inherits="TI_NPCList">
  889. <Anchors>
  890. <Anchor point="TOPLEFT">
  891. <Offset>
  892. <AbsDimension x="4" y="-8" />
  893. </Offset>
  894. </Anchor>
  895. </Anchors>
  896. </Button>
  897. <Button name="$parent2" hidden="true" inherits="TI_NPCList">
  898. <Anchors>
  899. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent1">
  900. <Offset>
  901. <AbsDimension x="0" y="0" />
  902. </Offset>
  903. </Anchor>
  904. </Anchors>
  905. </Button>
  906. <Button name="$parent3" hidden="true" inherits="TI_NPCList">
  907. <Anchors>
  908. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent2">
  909. <Offset>
  910. <AbsDimension x="0" y="0" />
  911. </Offset>
  912. </Anchor>
  913. </Anchors>
  914. </Button>
  915. <Button name="$parent4" hidden="true" inherits="TI_NPCList">
  916. <Anchors>
  917. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent3">
  918. <Offset>
  919. <AbsDimension x="0" y="0" />
  920. </Offset>
  921. </Anchor>
  922. </Anchors>
  923. </Button>
  924. <Button name="$parent5" hidden="true" inherits="TI_NPCList">
  925. <Anchors>
  926. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent4">
  927. <Offset>
  928. <AbsDimension x="0" y="0" />
  929. </Offset>
  930. </Anchor>
  931. </Anchors>
  932. </Button>
  933. <Button name="$parent6" hidden="true" inherits="TI_NPCList">
  934. <Anchors>
  935. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent5">
  936. <Offset>
  937. <AbsDimension x="0" y="0" />
  938. </Offset>
  939. </Anchor>
  940. </Anchors>
  941. </Button>
  942. <Button name="$parent7" hidden="true" inherits="TI_NPCList">
  943. <Anchors>
  944. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent6">
  945. <Offset>
  946. <AbsDimension x="0" y="0" />
  947. </Offset>
  948. </Anchor>
  949. </Anchors>
  950. </Button>
  951. <Button name="$parent8" hidden="true" inherits="TI_NPCList">
  952. <Anchors>
  953. <Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT" relativeTo="$parent7">
  954. <Offset>
  955. <AbsDimension x="0" y="0" />
  956. </Offset>
  957. </Anchor>
  958. </Anchors>
  959. </Button>
  960. </Frames>
  961. </Frame>
  962. </Frames>
  963. </Frame>
  964. <Frame name="TurnIn" hidden="true" frameStrata="LOW" enableMouse="false">
  965. <Scripts>
  966. <OnLoad>
  967. TI_OnLoad();
  968. </OnLoad>
  969. <OnEvent>
  970. TI_OnEvent(event);
  971. </OnEvent>
  972. </Scripts>
  973. </Frame>
  974. </Ui>