瀏覽代碼

updated for 3.0.2

tags/2.0.9
SabinDeus 17 年之前
父節點
當前提交
d95260d48b
共有 3 個文件被更改,包括 59 次插入24 次删除
  1. 2
    2
      TurnIn.toc
  2. 57
    21
      TurnIn.xml
  3. 0
    1
      TurnInUI.lua

+ 2
- 2
TurnIn.toc 查看文件

## 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

+ 57
- 21
TurnIn.xml 查看文件

<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>
</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");
</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");
</Backdrop> </Backdrop>
<Scripts> <Scripts>
<OnMouseUp> <OnMouseUp>
if ( this.isMoving ) then
this:StopMovingOrSizing();
this.isMoving = false;
if ( self.isMoving ) then
self:StopMovingOrSizing();
self.isMoving = false;
end end
</OnMouseUp> </OnMouseUp>
<OnMouseDown> <OnMouseDown>
if ( arg1 == "LeftButton" ) then if ( arg1 == "LeftButton" ) then
this:StartMoving();
this.isMoving = true;
self:StartMoving();
self.isMoving = true;
end end
</OnMouseDown> </OnMouseDown>
<OnHide> <OnHide>
if ( this.isMoving ) then
this:StopMovingOrSizing();
this.isMoving = false;
if ( self.isMoving ) then
self:StopMovingOrSizing();
self.isMoving = false;
end end
</OnHide> </OnHide>
</Scripts> </Scripts>
</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);
this:SetBackdropColor(0.15, 0.15, 0.15);
getglobal(this:GetName().."Title"):SetText("Gossip Options Priority List");
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
getglobal(self:GetName().."Title"):SetText("Gossip Options Priority List");
</OnLoad> </OnLoad>
</Scripts> </Scripts>
<Anchors> <Anchors>
</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);
this:SetBackdropColor(0.15, 0.15, 0.15);
getglobal(this:GetName().."Title"):SetText("NPC Database");
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
getglobal(self:GetName().."Title"):SetText("NPC Database");
</OnLoad> </OnLoad>
</Scripts> </Scripts>
<Anchors> <Anchors>
</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();

+ 0
- 1
TurnInUI.lua 查看文件

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…
取消
儲存