updated for 3.0.2
This commit is contained in:
parent
37659d2451
commit
d95260d48b
@ -1,6 +1,6 @@
|
|||||||
## Interface: 20400
|
## Interface: 20003
|
||||||
## Title: Turn In
|
## Title: Turn In
|
||||||
## Description: Automates the selection of quest and gossip options.
|
## Description: Automates the selection of quest and gossip options.
|
||||||
## SavedVariables: TI_status, TI_NPCDB, TI_NPCIndex
|
## SavedVariables: TI_status, TI_NPCDB, TI_NPCIndex
|
||||||
## Version: 2.0.8
|
## Version: 2.0rc7
|
||||||
TurnIn.xml
|
TurnIn.xml
|
||||||
78
TurnIn.xml
78
TurnIn.xml
@ -2,16 +2,51 @@
|
|||||||
<Script file="TurnIn.lua" />
|
<Script file="TurnIn.lua" />
|
||||||
<Script file="TurnInUI.lua" />
|
<Script file="TurnInUI.lua" />
|
||||||
|
|
||||||
|
<Frame name="TI_OptionFrameBoxTemplate" virtual="true">
|
||||||
|
<!-- shamelessly stolen from blizzard -->
|
||||||
|
<Layers>
|
||||||
|
<Layer level="BACKGROUND">
|
||||||
|
<FontString name="$parentTitle" inherits="GameFontHighlight">
|
||||||
|
<Anchors>
|
||||||
|
<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT">
|
||||||
|
<Offset>
|
||||||
|
<AbsDimension x="9" y="0"/>
|
||||||
|
</Offset>
|
||||||
|
</Anchor>
|
||||||
|
</Anchors>
|
||||||
|
</FontString>
|
||||||
|
</Layer>
|
||||||
|
</Layers>
|
||||||
|
<Backdrop bgFile="Interface\Tooltips\UI-Tooltip-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true">
|
||||||
|
<EdgeSize>
|
||||||
|
<AbsValue val="16"/>
|
||||||
|
</EdgeSize>
|
||||||
|
<TileSize>
|
||||||
|
<AbsValue val="16"/>
|
||||||
|
</TileSize>
|
||||||
|
<BackgroundInsets>
|
||||||
|
<AbsInset left="5" right="5" top="5" bottom="5"/>
|
||||||
|
</BackgroundInsets>
|
||||||
|
</Backdrop>
|
||||||
|
<Scripts>
|
||||||
|
<OnLoad>
|
||||||
|
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
|
||||||
|
self:SetBackdropColor(0.5, 0.5, 0.5);
|
||||||
|
</OnLoad>
|
||||||
|
</Scripts>
|
||||||
|
</Frame>
|
||||||
|
|
||||||
|
|
||||||
<Button name="TI_PriorityList" virtual="true" hidden="false">
|
<Button name="TI_PriorityList" virtual="true" hidden="false">
|
||||||
<Size>
|
<Size>
|
||||||
<AbsDimension x="235" y="20" />
|
<AbsDimension x="235" y="20" />
|
||||||
</Size>
|
</Size>
|
||||||
<Scripts><!--
|
<Scripts><!--
|
||||||
<OnEnter>
|
<OnEnter>
|
||||||
getglobal(this:GetName() .. "_Background"):SetVertexColor(1,1,1,0.4);
|
getglobal(self:GetName() .. "_Background"):SetVertexColor(1,1,1,0.4);
|
||||||
</OnEnter>
|
</OnEnter>
|
||||||
<OnLeave>
|
<OnLeave>
|
||||||
getglobal(this:GetName() .. "_Background"):SetVertexColor(0,0,0,0.4);
|
getglobal(self:GetName() .. "_Background"):SetVertexColor(0,0,0,0.4);
|
||||||
</OnLeave>
|
</OnLeave>
|
||||||
-->
|
-->
|
||||||
</Scripts>
|
</Scripts>
|
||||||
@ -262,7 +297,7 @@
|
|||||||
</Size>
|
</Size>
|
||||||
<Scripts>
|
<Scripts>
|
||||||
<OnClick>
|
<OnClick>
|
||||||
TI_DeleteTempNPCIndex(this:GetParent():GetID());
|
TI_DeleteTempNPCIndex(self:GetParent():GetID());
|
||||||
</OnClick>
|
</OnClick>
|
||||||
<OnEnter>
|
<OnEnter>
|
||||||
TI_TooltipMessage("Delete");
|
TI_TooltipMessage("Delete");
|
||||||
@ -285,7 +320,7 @@
|
|||||||
</Size>
|
</Size>
|
||||||
<Scripts>
|
<Scripts>
|
||||||
<OnClick>
|
<OnClick>
|
||||||
TI_AddTempNPCIndex(this:GetParent():GetID());
|
TI_AddTempNPCIndex(self:GetParent():GetID());
|
||||||
</OnClick>
|
</OnClick>
|
||||||
<OnEnter>
|
<OnEnter>
|
||||||
TI_TooltipMessage("Add this NPC to the database");
|
TI_TooltipMessage("Add this NPC to the database");
|
||||||
@ -381,21 +416,21 @@
|
|||||||
</Backdrop>
|
</Backdrop>
|
||||||
<Scripts>
|
<Scripts>
|
||||||
<OnMouseUp>
|
<OnMouseUp>
|
||||||
if ( this.isMoving ) then
|
if ( self.isMoving ) then
|
||||||
this:StopMovingOrSizing();
|
self:StopMovingOrSizing();
|
||||||
this.isMoving = false;
|
self.isMoving = false;
|
||||||
end
|
end
|
||||||
</OnMouseUp>
|
</OnMouseUp>
|
||||||
<OnMouseDown>
|
<OnMouseDown>
|
||||||
if ( arg1 == "LeftButton" ) then
|
if ( arg1 == "LeftButton" ) then
|
||||||
this:StartMoving();
|
self:StartMoving();
|
||||||
this.isMoving = true;
|
self.isMoving = true;
|
||||||
end
|
end
|
||||||
</OnMouseDown>
|
</OnMouseDown>
|
||||||
<OnHide>
|
<OnHide>
|
||||||
if ( this.isMoving ) then
|
if ( self.isMoving ) then
|
||||||
this:StopMovingOrSizing();
|
self:StopMovingOrSizing();
|
||||||
this.isMoving = false;
|
self.isMoving = false;
|
||||||
end
|
end
|
||||||
</OnHide>
|
</OnHide>
|
||||||
</Scripts>
|
</Scripts>
|
||||||
@ -620,12 +655,12 @@
|
|||||||
</Scripts>
|
</Scripts>
|
||||||
</Frame>
|
</Frame>
|
||||||
|
|
||||||
<Frame name="TI_OptionsPriorityContainer" inherits="OptionFrameBoxTemplate">
|
<Frame name="TI_OptionsPriorityContainer" inherits="TI_OptionFrameBoxTemplate">
|
||||||
<Scripts>
|
<Scripts>
|
||||||
<OnLoad>
|
<OnLoad>
|
||||||
this:SetBackdropBorderColor(0.4, 0.4, 0.4);
|
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
|
||||||
this:SetBackdropColor(0.15, 0.15, 0.15);
|
self:SetBackdropColor(0.15, 0.15, 0.15);
|
||||||
getglobal(this:GetName().."Title"):SetText("Gossip Options Priority List");
|
getglobal(self:GetName().."Title"):SetText("Gossip Options Priority List");
|
||||||
</OnLoad>
|
</OnLoad>
|
||||||
</Scripts>
|
</Scripts>
|
||||||
<Anchors>
|
<Anchors>
|
||||||
@ -827,12 +862,12 @@
|
|||||||
</Frames>
|
</Frames>
|
||||||
</Frame>
|
</Frame>
|
||||||
|
|
||||||
<Frame name="TI_OptionsNPCContainer" inherits="OptionFrameBoxTemplate">
|
<Frame name="TI_OptionsNPCContainer" inherits="TI_OptionFrameBoxTemplate">
|
||||||
<Scripts>
|
<Scripts>
|
||||||
<OnLoad>
|
<OnLoad>
|
||||||
this:SetBackdropBorderColor(0.4, 0.4, 0.4);
|
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
|
||||||
this:SetBackdropColor(0.15, 0.15, 0.15);
|
self:SetBackdropColor(0.15, 0.15, 0.15);
|
||||||
getglobal(this:GetName().."Title"):SetText("NPC Database");
|
getglobal(self:GetName().."Title"):SetText("NPC Database");
|
||||||
</OnLoad>
|
</OnLoad>
|
||||||
</Scripts>
|
</Scripts>
|
||||||
<Anchors>
|
<Anchors>
|
||||||
@ -862,7 +897,8 @@
|
|||||||
</Anchors>
|
</Anchors>
|
||||||
<Scripts>
|
<Scripts>
|
||||||
<OnVerticalScroll>
|
<OnVerticalScroll>
|
||||||
FauxScrollFrame_OnVerticalScroll(20, TI_NPCListScrollBarUpdate);
|
--FauxScrollFrame_OnVerticalScroll(20, TI_NPCListScrollBarUpdate);
|
||||||
|
FauxScrollFrame_OnVerticalScroll(self, offset, 20, TI_NPCListScrollBarUpdate);
|
||||||
</OnVerticalScroll>
|
</OnVerticalScroll>
|
||||||
<OnShow>
|
<OnShow>
|
||||||
TI_NPCListScrollBarUpdate();
|
TI_NPCListScrollBarUpdate();
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
function TI_PopulateOptions(arg)
|
function TI_PopulateOptions(arg)
|
||||||
--this is a comment
|
|
||||||
TI_debug(arg);
|
TI_debug(arg);
|
||||||
local CurrOpts;
|
local CurrOpts;
|
||||||
local last=1;
|
local last=1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user