Compare with Previous | Blame | View Log
<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/C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd"> <Script file="Notes.lua"/> <Script file="Notes_Export.lua"/> <Font name="NotesSmallButtonText" font="Fonts\FRIZQT__.TTF" virtual="true"> <FontHeight> <AbsValue val="9"/> </FontHeight> </Font> <Font name="NotesLargeButtonText" font="Fonts\FRIZQT__.TTF" virtual="true"> <FontHeight> <AbsValue val="11"/> </FontHeight> </Font> <Button name="NotesSmallButtonTemplate" inherits="UIPanelButtonTemplate" virtual="true"> <Size> <AbsDimension x="68" y="14"/> </Size> <NormalFont inherits="NotesSmallButtonText"/> <PushedFont inherits="NotesSmallButtonText"/> <HighlightFont inherits="NotesSmallButtonText"/> <DisabledFont inherits="NotesSmallButtonText"/> </Button> <Button name="NotesLargeButtonTemplate" inherits="UIPanelButtonTemplate" virtual="true"> <Size> <AbsDimension x="122" y="18"/> </Size> <NormalFont inherits="NotesLargeButtonText"/> <PushedFont inherits="NotesLargeButtonText"/> <HighlightFont inherits="NotesLargeButtonText"/> <DisabledFont inherits="NotesLargeButtonText"/> </Button> <CheckButton name="NotesCheckButtonTemplate" inherits="OptionsCheckButtonTemplate" checked="false" virtual="true"> <Size> <AbsDimension x="15" y="15"/> </Size> </CheckButton> <Button name="PrevPageButtonTemplate" virtual="true"> <Size> <AbsDimension x="25" y="25"/> </Size> <Layers> <Layer level="ARTWORK"> <FontString name="$parentText" inherits="GameFontNormalSmall" justifyH="LEFT" text="PREV"> <Anchors> <Anchor point="LEFT" relativePoint="RIGHT"/> </Anchors> </FontString> </Layer> </Layers> <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Up"/> <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Down"/> <DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-PrevPage-Disabled"/> <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/> </Button> <Button name="NextPageButtonTemplate" virtual="true"> <Size> <AbsDimension x="25" y="25"/> </Size> <Layers> <Layer level="ARTWORK"> <FontString name="$parentText" inherits="GameFontNormalSmall" justifyH="RIGHT" text="NEXT"> <Anchors> <Anchor point="RIGHT" relativePoint="LEFT"/> </Anchors> </FontString> </Layer> </Layers> <NormalTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Up"/> <PushedTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Down"/> <DisabledTexture file="Interface\Buttons\UI-SpellbookIcon-NextPage-Disabled"/> <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/> </Button> <Button name="CommButtonTemplate" virtual="true"> <Size> <AbsDimension x="22" y="22"/> </Size> <NormalTexture file="Interface\ChatFrame\UI-ChatIcon-Chat-Down"/> <PushedTexture file="Interface\ChatFrame\UI-ChatIcon-Chat-Down"/> <DisabledTexture file="Interface\ChatFrame\UI-ChatIcon-Chat-Disabled"/> <HighlightTexture file="Interface\Buttons\UI-Common-MouseHilight" alphaMode="ADD"/> </Button> <Button name="NotesIconFrame" frameStrata="MEDIUM" parent="Minimap" enableMouse="true" movable="true" hidden="false"> <Size> <AbsDimension x="33" y="33"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="-15" y="0"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="BACKGROUND"> <Texture name="NotesIconFrame_Icon" file="Interface\Icons\INV_Misc_Book_09"> <Size> <AbsDimension x="19" y="19"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="7" y="-6"/> </Offset> </Anchor> </Anchors> <TexCoords left="0.075" right="0.925" top="0.075" bottom="0.925"/> </Texture> </Layer> <Layer level="OVERLAY"> <Texture name="NotesIconFrame_Border" file="Interface\Minimap\MiniMap-TrackingBorder"> <Size> <AbsDimension x="56" y="56"/> </Size> <Anchors> <Anchor point="TOPLEFT"/> </Anchors> </Texture> </Layer> </Layers> <HighlightTexture alphaMode="ADD" file="Interface\Minimap\UI-Minimap-ZoomButton-Highlight"/> <Scripts> <OnLoad> this:RegisterForClicks("LeftButtonUp","RightButtonUp") this:RegisterForDrag("LeftButton") </OnLoad> <OnEnter> GameTooltip:SetOwner(NotesIconFrame,"ANCHOR_LEFT") GameTooltip:ClearLines() GameTooltip:AddLine("Notes") GameTooltip:AddLine("Version: 1.4",.5,.5,.5) GameTooltip:AddLine("Click: Toggle UI",.8,.8,.8,1) GameTooltip:AddLine("Drag: Move button",.8,.8,.8,1) GameTooltip:Show() </OnEnter> <OnMouseDown> NotesIconFrame_Icon:SetTexCoord(0,1,0,1) </OnMouseDown> <OnMouseUp> NotesIconFrame_Icon:SetTexCoord(.075,.925,.075,.925) </OnMouseUp> <OnLeave> GameTooltip_SetDefaultAnchor(GameTooltip,UIParent) GameTooltip:Hide() </OnLeave> <OnDragStart> this:LockHighlight() Notes_IconDrag = true </OnDragStart> <OnDragStop> this:UnlockHighlight() Notes_IconDrag = false NotesIconFrame_Icon:SetTexCoord(.075,.925,.075,.925) </OnDragStop> <OnClick> Notes_UIToggle() NotesIconFrame_Icon:SetTexCoord(.075,.925,.075,.925) </OnClick> <OnUpdate> Notes_IconMove() </OnUpdate> </Scripts> </Button> <Button name="NotesNoteTemplate" virtual="true"> <Size> <AbsDimension x="295" y="16"/> </Size> <Layers> <Layer level="ARTWORK"> <FontString name="$parent_Text" inherits="GameFontNormal" wraponspaces="false" justifyH="LEFT" text="entry" width="15"/> <FontString name="$parent_Description" inherits="GameFontDisableSmall" wraponspaces="false" justifyH="RIGHT" text="decription"/> </Layer> <Layer level="OVERLAY"> <Texture name="$parent_BookIcon" hidden="true" alphaMode="ADD"> <Size> <AbsDimension x="15" y="15"/> </Size> <Anchors> <Anchor point="LEFT"> <Offset> <AbsDimension x="1" y="0"/> </Offset> </Anchor> </Anchors> <TexCoords left="0.075" right="0.925" top="0.075" bottom="0.925"/> </Texture> </Layer> </Layers> <Scripts> <OnClick> Notes_ToggleSelected(this:GetName()); </OnClick> <OnEnter> getglobal(this:GetName().."_Text"):SetTextColor(1,1,1); </OnEnter> <OnLeave> local setcolor = Notes_GetColor(this:GetName()) getglobal(this:GetName().."_Text"):SetTextColor(setcolor[1],setcolor[2],setcolor[3]); </OnLeave> </Scripts> <NormalTexture name="$parentNTex" file="Interface\QuestFrame\UI-QuestTitleHighlight"/> <PushedTexture file="Interface\QuestFrame\UI-QuestTitleHighlight"/> </Button> <Button name="NotesTOCTemplate" virtual="true"> <Size> <AbsDimension x="290" y="14"/> </Size> <Layers> <Layer level="ARTWORK"> <FontString name="$parent_Text" inherits="GameFontBlack" wraponspaces="false" justifyH="LEFT" text="Page X) LUA - Some Script Here" width="15"/> </Layer> </Layers> <Scripts> <OnClick> Notes_ToggleTOCSelected(this:GetName()); </OnClick> <OnEnter> getglobal(this:GetName().."_Text"):SetTextColor(0,0,0,.5); getglobal(this:GetName().."_Text"):SetShadowColor(0,0,0,.1); </OnEnter> <OnLeave> getglobal(this:GetName().."_Text"):SetTextColor(0,0,0,1); getglobal(this:GetName().."_Text"):SetShadowColor(0,0,0,0); </OnLeave> <OnLoad> getglobal(this:GetName().."_Text"):SetTextColor(0,0,0,1); getglobal(this:GetName().."_Text"):SetShadowColor(0,0,0,0); </OnLoad> </Scripts> </Button> <Frame name="NotesNoteScrollTemplate" enableMouse="true" virtual="true"> <Size> <AbsDimension x="310" y="110.5"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="15" y="-169.5"/> </Offset> </Anchor> </Anchors> <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> <BackgroundInsets> <AbsInset left="4" right="4" top="4" bottom="4" /> </BackgroundInsets> <TileSize> <AbsValue val="16" /> </TileSize> <EdgeSize> <AbsValue val="16" /> </EdgeSize> </Backdrop> <Scripts> <OnShow> Notes_PrepUndo() Notes_FixHiddenPages() Notes_SortNotes() Notes_ScrollBarUpdate() </OnShow> </Scripts> <Frames> <ScrollFrame name="$parentNoteScrollBar" inherits="FauxScrollFrameTemplate" hidden="true"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="0" y="-8"/> </Offset> </Anchor> <Anchor point="BOTTOMRIGHT"> <Offset> <AbsDimension x="-5.5" y="8"/> </Offset> </Anchor> </Anchors> <Scripts> <OnVerticalScroll> FauxScrollFrame_OnVerticalScroll(16, Notes_ScrollBarUpdate); </OnVerticalScroll> <OnShow> Notes_ScrollBarUpdate() </OnShow> </Scripts> </ScrollFrame> <Button name="$parentNote1" inherits="NotesNoteTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesNoteScrollBar" relativePoint="TOPLEFT"> <Offset> <AbsDimension x="8" y="0"/> </Offset> </Anchor> </Anchors> </Button> <Button name="$parentNote2" inherits="NotesNoteTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesNote1" relativePoint="BOTTOMLEFT"/> </Anchors> </Button> <Button name="$parentNote3" inherits="NotesNoteTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesNote2" relativePoint="BOTTOMLEFT"/> </Anchors> </Button> <Button name="$parentNote4" inherits="NotesNoteTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesNote3" relativePoint="BOTTOMLEFT"/> </Anchors> </Button> <Button name="$parentNote5" inherits="NotesNoteTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesNote4" relativePoint="BOTTOMLEFT"/> </Anchors> </Button> </Frames> </Frame> <ScrollFrame name="NotesScrollTextFrameTemplate" inherits="UIPanelScrollFrameTemplate" virtual="true"> <Size> <AbsDimension x="310" y="259"/> </Size> <Anchors> <Anchor point="BOTTOMLEFT"> <Offset> <AbsDimension x="9.5" y="-96"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="ARTWORK"> <Texture name="$parentTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar"> <Size> <AbsDimension x="30" y="50"/> </Size> <Anchors> <Anchor point="TOP" relativeTo="$parentScrollBarScrollUpButton"> <Offset> <AbsDimension x="0" y="5"/> </Offset> </Anchor> </Anchors> <TexCoords left="1" right="1" top="1" bottom="1"/> </Texture> <Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar"> <Size> <AbsDimension x="31" y="0"/> </Size> <Anchors> <Anchor point="BOTTOM" relativeTo="$parentScrollBarScrollDownButton"> <Offset> <AbsDimension x="50" y="-2"/> </Offset> </Anchor> </Anchors> <TexCoords left="1" right="1" top="1" bottom="1"/> </Texture> </Layer> </Layers> <ScrollChild> <Frame enableMouse="true"> <Size> <AbsDimension x="300" y="200"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> <Frames> <EditBox name="NotesTextEditBox" letters="7500" multiLine="true" enableMouse="true" autoFocus="false"> <Size> <AbsDimension x="290" y="200"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="15" y="-5"/> </Offset> </Anchor> </Anchors> <Scripts> <OnEscapePressed> this:ClearFocus() </OnEscapePressed> <OnTextChanged> local scrollBar = getglobal(this:GetParent():GetParent():GetName().."ScrollBar") this:GetParent():GetParent():UpdateScrollChildRect(); local min; local max; min, max = scrollBar:GetMinMaxValues(); if ( max > 0 and (this.max ~= max) and 13 > max-NotesText:GetVerticalScroll()) then this.max = max; scrollBar:SetValue(max); end Notes_SaveNote() </OnTextChanged> <OnClick> this:SetFocus(); </OnClick> </Scripts> <FontString inherits="GameFontBlack"/> </EditBox> </Frames> <Scripts> <OnMouseUp> NotesTextEditBox:SetFocus(); </OnMouseUp> </Scripts> </Frame> </ScrollChild> </ScrollFrame> <Frame name="NotesTOCScrollTemplate" enableMouse="true" virtual="true"> <Size> <AbsDimension x="310" y="275"/> </Size> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesTitleEditFrame" relativePoint="BOTTOMLEFT"> <Offset> <AbsDimension x="-52.5" y="6"/> </Offset> </Anchor> </Anchors> <Frames> <ScrollFrame name="NotesTOCScrollBar" inherits="FauxScrollFrameTemplate" hidden="true"> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="0" y="-6"/> </Offset> </Anchor> <Anchor point="BOTTOMRIGHT"> <Offset> <AbsDimension x="-7" y="10"/> </Offset> </Anchor> </Anchors> <Scripts> <OnVerticalScroll> FauxScrollFrame_OnVerticalScroll(16, Notes_TOCScrollBarUpdate); </OnVerticalScroll> <OnShow> Notes_TOCScrollBarUpdate() </OnShow> </Scripts> </ScrollFrame> <Button name="NotesTOCTitle" inherits="NotesTOCTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesTOCScrollBar" relativePoint="TOPLEFT"> <Offset> <AbsDimension x="8" y="-2"/> </Offset> </Anchor> </Anchors> <Scripts> <OnLoad> getglobal(this:GetName().."_Text"):SetText("[SOME BOOK] - Table of Contents"); </OnLoad> <OnClick> </OnClick> <OnEnter> </OnEnter> </Scripts> </Button> <Button name="NotesTOCBlank" inherits="NotesTOCTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesTOCTitle" relativePoint="BOTTOMLEFT"/> </Anchors> <Scripts> <OnLoad> getglobal(this:GetName().."_Text"):SetText(""); </OnLoad> <OnClick> </OnClick> <OnEnter> </OnEnter> </Scripts> </Button> <Button name="NotesTOC1" inherits="NotesTOCTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesTOCBlank" relativePoint="BOTTOMLEFT"/> </Anchors> </Button> <Button name="NotesTOC2" inherits="NotesTOCTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesTOC1" relativePoint="BOTTOMLEFT"/> </Anchors> </Button> <Button name="NotesTOC3" inherits="NotesTOCTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesTOC2" relativePoint="BOTTOMLEFT"/> </Anchors> </Button> <Button name="NotesTOC4" inherits="NotesTOCTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesTOC3" relativePoint="BOTTOMLEFT"/> </Anchors> </Button> <Button name="NotesTOC5" inherits="NotesTOCTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesTOC4" relativePoint="BOTTOMLEFT"/> </Anchors> </Button> <Button name="NotesTOC6" inherits="NotesTOCTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesTOC5" relativePoint="BOTTOMLEFT"/> </Anchors> </Button> <Button name="NotesTOC7" inherits="NotesTOCTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesTOC6" relativePoint="BOTTOMLEFT"/> </Anchors> </Button> <Button name="NotesTOC8" inherits="NotesTOCTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesTOC7" relativePoint="BOTTOMLEFT"/> </Anchors> </Button> <Button name="NotesTOC9" inherits="NotesTOCTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesTOC8" relativePoint="BOTTOMLEFT"/> </Anchors> </Button> <Button name="NotesTOC10" inherits="NotesTOCTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesTOC9" relativePoint="BOTTOMLEFT"/> </Anchors> </Button> <Button name="NotesTOC11" inherits="NotesTOCTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesTOC10" relativePoint="BOTTOMLEFT"/> </Anchors> </Button> <Button name="NotesTOC12" inherits="NotesTOCTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesTOC11" relativePoint="BOTTOMLEFT"/> </Anchors> </Button> <Button name="NotesTOC13" inherits="NotesTOCTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesTOC12" relativePoint="BOTTOMLEFT"/> </Anchors> </Button> <Button name="NotesTOC14" inherits="NotesTOCTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesTOC13" relativePoint="BOTTOMLEFT"/> </Anchors> </Button> <Button name="NotesTOC15" inherits="NotesTOCTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesTOC14" relativePoint="BOTTOMLEFT"/> </Anchors> </Button> <Button name="NotesTOC16" inherits="NotesTOCTemplate"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesTOC15" relativePoint="BOTTOMLEFT"/> </Anchors> </Button> </Frames> </Frame> <Frame name="NotesFrameTemplate" virtual="true"> <Size> <AbsDimension x="384" y="512"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="0" y="-104"/> </Offset> </Anchor> </Anchors> <HitRectInsets> <AbsInset left="0" right="35" top="0" bottom="75"/> </HitRectInsets> <Layers> <Layer level="BACKGROUND"> <Texture file="Interface\Spellbook\Spellbook-Icon"> <Size> <AbsDimension x="58" y="58"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="8" y="-8"/> </Offset> </Anchor> </Anchors> </Texture> </Layer> <Layer level="BORDER"> <Texture file="Interface\QuestFrame\UI-QuestLog-TopLeft"> <Size> <AbsDimension x="256" y="256"/> </Size> <Anchors> <Anchor point="TOPLEFT"/> </Anchors> </Texture> <Texture file="Interface\QuestFrame\UI-QuestLog-TopRight"> <Size> <AbsDimension x="128" y="256"/> </Size> <Anchors> <Anchor point="TOPRIGHT"/> </Anchors> </Texture> <Texture file="Interface\QuestFrame\UI-QuestLog-BotLeft"> <Size> <AbsDimension x="256" y="256"/> </Size> <Anchors> <Anchor point="BOTTOMLEFT"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> </Texture> <Texture file="Interface\QuestFrame\UI-QuestLog-BotRight"> <Size> <AbsDimension x="128" y="256"/> </Size> <Anchors> <Anchor point="BOTTOMRIGHT"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> </Texture> <FontString name="$parentTitleText" inherits="GameFontHighlight" text="Notes"> <Size> <AbsDimension x="300" y="15"/> </Size> <Anchors> <Anchor point="TOP" relativeTo="$parent" relativePoint="TOP"> <Offset> <AbsDimension x="-10" y="-17"/> </Offset> </Anchor> </Anchors> </FontString> </Layer> </Layers> <Frames> <Button name="NotesCloseButton" inherits="UIPanelCloseButton"> <Anchors> <Anchor point="TOPRIGHT"> <Offset> <AbsDimension x="-30" y="-8"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> Notes_UIToggle() </OnClick> </Scripts> </Button> <CheckButton name="NotesIconCheckButton" inherits="NotesCheckButtonTemplate" checked="false" hidden="true"> <Size> <AbsDimension x="15" y="15"></AbsDimension> </Size> <Scripts> <OnLoad> getglobal(this:GetName().."Text"):SetText("Map Button") </OnLoad> <OnClick> Notes_IconToggle() </OnClick> </Scripts> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="60" y="-2"/> </Offset> </Anchor> </Anchors> </CheckButton> <Button name="NotesDeleteButton" inherits="NotesSmallButtonTemplate" text="Delete"> <Anchors> <Anchor point="TOPRIGHT"> <Offset> <AbsDimension x="-38" y="-36"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> Notes_DeleteAndRebuild() </OnClick> </Scripts> </Button> <Button name="NotesDuplicateButton" inherits="NotesSmallButtonTemplate" text="Duplicate"> <Anchors> <Anchor point="RIGHT" relativeTo="NotesDeleteButton" relativePoint="LEFT"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> Notes_CopySelected(); </OnClick> </Scripts> </Button> <Button name="NotesCompileButton" inherits="NotesSmallButtonTemplate" text="Compile"> <Anchors> <Anchor point="RIGHT" relativeTo="NotesDuplicateButton" relativePoint="LEFT"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> Notes_CompileOrExtractSelected(); </OnClick> </Scripts> </Button> <Button name="NotesNewButton" inherits="NotesSmallButtonTemplate" text="New Note"> <Anchors> <Anchor point="RIGHT" relativeTo="NotesCompileButton" relativePoint="LEFT"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> Notes_NewNote(); </OnClick> </Scripts> </Button> <CheckButton name="NotesSyncCheckButton" inherits="NotesCheckButtonTemplate" checked="false" hidden="false"> <Size> <AbsDimension x="15" y="15"></AbsDimension> </Size> <Scripts> <OnLoad> getglobal(this:GetName().."Text"):SetText("Sync") </OnLoad> <OnClick> Notes_SyncSelected() </OnClick> </Scripts> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesNewButton" relativePoint="BOTTOMLEFT"> <Offset> <AbsDimension x="0" y="2"/> </Offset> </Anchor> </Anchors> </CheckButton> <CheckButton name="NotesLockedCheckButton" inherits="NotesCheckButtonTemplate" checked="false" hidden="false"> <Size> <AbsDimension x="15" y="15"></AbsDimension> </Size> <Scripts> <OnLoad> getglobal(this:GetName().."Text"):SetText("Locked") </OnLoad> <OnClick> Notes_LockedSelected() </OnClick> </Scripts> <Anchors> <Anchor point="TOP" relativeTo="NotesSyncCheckButton" relativePoint="BOTTOM"> <Offset> <AbsDimension x="0" y="4"/> </Offset> </Anchor> </Anchors> </CheckButton> <CheckButton name="NotesLUACheckButton" inherits="NotesCheckButtonTemplate" checked="false" hidden="false"> <Size> <AbsDimension x="15" y="15"></AbsDimension> </Size> <Scripts> <OnLoad> getglobal(this:GetName().."Text"):SetText("LUA Mode") </OnLoad> <OnClick> Notes_LUAUIToggle() </OnClick> </Scripts> <Anchors> <Anchor point="TOPRIGHT" relativeTo="NotesDeleteButton" relativePoint="BOTTOMRIGHT"> <Offset> <AbsDimension x="-70" y="2"/> </Offset> </Anchor> </Anchors> </CheckButton> <Button name="NotesStopPrintButton" inherits="NotesLargeButtonTemplate" text="Stop Printing"> <Size> <AbsDimension x="104" y="18"/> </Size> <Anchors> <Anchor point="BOTTOMLEFT"> <Offset> <AbsDimension x="18" y="56"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> Notes_StopPrinting(); </OnClick> </Scripts> </Button> <Button name="NotesCommButton" inherits="CommButtonTemplate" virtual="true"> <Anchors> <Anchor point="LEFT" relativeTo="NotesStopPrintButton" relativePoint="RIGHT"> <Offset> <AbsDimension x="-4" y="0"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> Notes_CommUIToggle() </OnClick> </Scripts> </Button> <Button name="NotesUndoButton" inherits="NotesLargeButtonTemplate" text="Undo Changes"> <Anchors> <Anchor point="LEFT" relativeTo="NotesCommButton" relativePoint="RIGHT"> <Offset> <AbsDimension x="1" y="0"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> Notes_RevertSelected() </OnClick> </Scripts> </Button> <Button name="NotesExitButton" inherits="NotesLargeButtonTemplate" text="Exit"> <Size> <AbsDimension x="77" y="18"/> </Size> <Anchors> <Anchor point="LEFT" relativeTo="NotesUndoButton" relativePoint="RIGHT"> <Offset> <AbsDimension x="1" y="0"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> Notes_UIToggle() </OnClick> </Scripts> </Button> </Frames> </Frame> <Frame name="NotesTitleEditBoxTemplate" enableMouse="true" virtual="true"> <Size> <AbsDimension x="250" y="20"/> </Size> <Anchors> <Anchor point="TOPRIGHT"> <Offset> <AbsDimension x="-65" y="-259"/> </Offset> </Anchor> </Anchors> <Frames> <EditBox name="NotesTitleEditBox" letters="80" autoFocus="false"> <Size> <AbsDimension x="250" y="20"/> </Size> <Anchors> <Anchor point="TOPRIGHT"/> </Anchors> <Layers> <Layer level="ARTWORK"> <Texture name="NotesTitleGroupBorderLeft" file="Interface\ChatFrame\UI-ChatInputBorder-Left"> <Size> <AbsDimension x="60" y="32"/> </Size> <Anchors> <Anchor point="LEFT"> <Offset> <AbsDimension x="-60" y="0"/> </Offset> </Anchor> </Anchors> <TexCoords left="0" right="0.2" top="0" bottom="1.0"/> </Texture> <Texture name="NotesTitleGroupBorderMid" file="Interface\ChatFrame\UI-ChatInputBorder-Right"> <Size> <AbsDimension x="200" y="32"/> </Size> <Anchors> <Anchor point="LEFT" relativeTo="NotesTitleGroupBorderLeft" relativePoint="RIGHT"/> </Anchors> <TexCoords left="0.4" right=".6" top="0" bottom="1.0"/> </Texture> <Texture name="NotesTitleGroupBorderRight" file="Interface\ChatFrame\UI-ChatInputBorder-Right"> <Size> <AbsDimension x="55" y="32"/> </Size> <Anchors> <Anchor point="LEFT" relativeTo="NotesTitleGroupBorderMid" relativePoint="RIGHT"/> </Anchors> <TexCoords left="0.8" right="1.0" top="0" bottom="1.0"/> </Texture> </Layer> <Layer level="ARTWORK"> <FontString inherits="GameFontNormal" text="Title: " justifyH="LEFT"> <Anchors> <Anchor point="LEFT" relativeTo="NotesTitleGroupBorderLeft"> <Offset> <AbsDimension x="20" y="0"/> </Offset> </Anchor> </Anchors> </FontString> </Layer> </Layers> <FontString inherits="ChatFontNormal"></FontString> <Scripts> <OnClick> this:SetFocus(); </OnClick> <OnEnterPressed> NotesTextEditBox:SetFocus(); </OnEnterPressed> <OnTabPressed> NotesTextEditBox:SetFocus(); </OnTabPressed> <OnEscapePressed> this:ClearFocus() </OnEscapePressed> <OnTextChanged> Notes_SaveNote() </OnTextChanged> <OnMouseUp> NotesTitleEditBox:SetFocus(); </OnMouseUp> </Scripts> </EditBox> </Frames> </Frame> <Frame name="NotesLuaFrameTemplate" enableMouse="true" virtual="true" hidden="true"> <Size> <AbsDimension x="330" y="46"/> </Size> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesBGFrame" relativePoint="BOTTOMLEFT"> <Offset> <AbsDimension x="16" y="56"/> </Offset> </Anchor> </Anchors> <Backdrop bgFile="Interface\TutorialFrame\TutorialFrameBackground" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> <EdgeSize> <AbsValue val="16"/> </EdgeSize> <TileSize> <AbsValue val="32"/> </TileSize> <BackgroundInsets> <AbsInset left="5" right="5" top="5" bottom="5"/> </BackgroundInsets> </Backdrop> <Frames> <Button name="NotesExecuteButton" inherits="NotesLargeButtonTemplate" text="Run LUA"> <Anchors> <Anchor point="BOTTOMLEFT"> <Offset> <AbsDimension x="5" y="6"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> Notes_ExecuteSelected(); </OnClick> </Scripts> </Button> <Button name="NotesLUASetupButton" inherits="NotesLargeButtonTemplate" text="Add LUA Book"> <Anchors> <Anchor point="LEFT" relativeTo="NotesExecuteButton" relativePoint="RIGHT"> <Offset> <AbsDimension x="-2" y="0"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> Notes_AddLUASetupNote(); </OnClick> </Scripts> </Button> <Button name="NotesLUACloseButton" inherits="NotesLargeButtonTemplate" text="Exit LUA"> <Size> <AbsDimension x="77" y="18"/> </Size> <Anchors> <Anchor point="LEFT" relativeTo="NotesLUASetupButton" relativePoint="RIGHT"> <Offset> <AbsDimension x="-1" y="0"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> Notes_LUAUIToggle("hide") </OnClick> </Scripts> </Button> <EditBox name="NotesMacroEditBox" letters="40" virtual="true" enableMouse="true" autoFocus="false" hidden="true"> <Size> <AbsDimension x="300" y="20"/> </Size> <Anchors> <Anchor point="BOTTOMLEFT"> <Offset> <AbsDimension x="55" y="23"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="ARTWORK"> <FontString inherits="GameFontNormal" text="Macro: " justifyH="LEFT"> <Anchors> <Anchor point="BOTTOMLEFT"> <Offset> <AbsDimension x="-45" y="5"/> </Offset> </Anchor> </Anchors> </FontString> </Layer> </Layers> <FontString inherits="GameFontHighlightSmall"/> <Scripts> <OnTextChanged> this:ClearFocus() Notes_SetButtonState() </OnTextChanged> <OnClick> this:SetFocus(); </OnClick> <OnEnterPressed> this:ClearFocus(); </OnEnterPressed> <OnEscapePressed> this:ClearFocus(); </OnEscapePressed> </Scripts> </EditBox> </Frames> </Frame> <Frame name="NotesBookFrameTemplate" enableMouse="true" virtual="true" hidden="true"> <Size> <AbsDimension x="330" y="32"/> </Size> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesBGFrame" relativePoint="BOTTOMLEFT"> <Offset> <AbsDimension x="16" y="55"/> </Offset> </Anchor> </Anchors> <Backdrop bgFile="Interface\TutorialFrame\TutorialFrameBackground" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> <EdgeSize> <AbsValue val="16"/> </EdgeSize> <TileSize> <AbsValue val="32"/> </TileSize> <BackgroundInsets> <AbsInset left="5" right="5" top="5" bottom="5"/> </BackgroundInsets> </Backdrop> <Frames> <Button name="NotesPrevPageButton" inherits="PrevPageButtonTemplate" virtual="true"> <Anchors> <Anchor point="BOTTOMLEFT"> <Offset> <AbsDimension x="3" y="3"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> Notes_LoadPrevPage(); </OnClick> </Scripts> </Button> <Button name="NotesNextPageButton" inherits="NextPageButtonTemplate" virtual="true"> <Anchors> <Anchor point="BOTTOMRIGHT"> <Offset> <AbsDimension x="-3" y="3"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> Notes_LoadNextPage(); </OnClick> </Scripts> </Button> <Button name="NotesGoPageButton" inherits="NotesSmallButtonTemplate" text="Index"> <Size> <AbsDimension x="57" y="18"/> </Size> <Anchors> <Anchor point="BOTTOMLEFT"> <Offset> <AbsDimension x="54" y="7"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> if NotesTOC:IsVisible() then Notes_GoToPage(NotesCurPageNumText:GetNumber()) else Notes_GoToPage(0) end </OnClick> </Scripts> </Button> <Button name="NotesReorderPageButton" inherits="NotesSmallButtonTemplate" text="Reorder"> <Size> <AbsDimension x="57" y="18"/> </Size> <Anchors> <Anchor point="BOTTOMRIGHT"> <Offset> <AbsDimension x="-58" y="7"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> Notes_ReorderPage(NotesCurPageNumText:GetNumber()) </OnClick> </Scripts> </Button> <EditBox name="NotesCurPageNumText" numeric="true" letters="3" enableMouse="true" autoFocus="false" justifyH="RIGHT"> <Size> <AbsDimension x="25" y="20"/> </Size> <Anchors> <Anchor point="BOTTOM"> <Offset> <AbsDimension x="2" y="6"/> </Offset> </Anchor> </Anchors> <FontString inherits="GameFontHighlight" justifyH="RIGHT"/> <Scripts> <OnClick> this:SetFocus(); </OnClick> <OnEnterPressed> this:ClearFocus(); Notes_GoToPage(NotesCurPageNumText:GetNumber()) </OnEnterPressed> <OnEscapePressed> this:ClearFocus(); </OnEscapePressed> </Scripts> </EditBox> </Frames> <Layers> <Layer level="ARTWORK"> <FontString name="NotesPageLabel" inherits="GameFontNormal" text="Page: " justifyH="RIGHT"> <Anchors> <Anchor point="BOTTOM"> <Offset> <AbsDimension x="-27" y="10"/> </Offset> </Anchor> </Anchors> </FontString> <FontString name="NotesPageSlash" inherits="GameFontNormal" text="/" justifyH="LEFT"> <Anchors> <Anchor point="BOTTOM"> <Offset> <AbsDimension x="20" y="10"/> </Offset> </Anchor> </Anchors> </FontString> <FontString name="NotesMaxPageNumText" inherits="GameFontNormal" justifyH="LEFT"> <Size> <AbsDimension x="28" y="12"/> </Size> <Anchors> <Anchor point="LEFT" relativeTo="NotesPageSlash" relativePoint="RIGHT"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> </FontString> </Layer> </Layers> </Frame> <Frame name="NotesCommFrameTemplate" enableMouse="true" virtual="true" hidden="true"> <Size> <AbsDimension x="330" y="50"/> </Size> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesBGFrame" relativePoint="BOTTOMLEFT"> <Offset> <AbsDimension x="16" y="55"/> </Offset> </Anchor> </Anchors> <Backdrop bgFile="Interface\TutorialFrame\TutorialFrameBackground" edgeFile="Interface\Tooltips\UI-Tooltip-Border" tile="true"> <EdgeSize> <AbsValue val="16"/> </EdgeSize> <TileSize> <AbsValue val="32"/> </TileSize> <BackgroundInsets> <AbsInset left="5" right="5" top="5" bottom="5"/> </BackgroundInsets> </Backdrop> <Frames> <Button name="NotesCommSendButton" inherits="NotesLargeButtonTemplate" text="Print Note"> <Size> <AbsDimension x="77" y="17"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="6" y="-24"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> Notes_PrintSelected() </OnClick> </Scripts> </Button> <Frame name="NotesCommDropDown" inherits="UIDropDownMenuTemplate" enableMouse="true" hidden="false"> <Anchors> <Anchor point="LEFT" relativeTo="NotesCommSendButton" relativePoint="RIGHT"> <Offset> <AbsDimension x="0" y="-2"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="BACKGROUND"> <FontString name="$parentLabel" inherits="GameFontNormalSmall" text="to" justifyH="RIGHT"> <Anchors> <Anchor point="RIGHT" relativePoint="LEFT"> <Offset> <AbsDimension x="15" y="2"/> </Offset> </Anchor> </Anchors> </FontString> </Layer> </Layers> </Frame> <Frame name="NotesChanSelectDropDown" inherits="UIDropDownMenuTemplate" enableMouse="true" hidden="false"> <Anchors> <Anchor point="LEFT" relativeTo="NotesCommDropDown" relativePoint="RIGHT"> <Offset> <AbsDimension x="-28" y="0"/> </Offset> </Anchor> </Anchors> </Frame> <EditBox name="NotesWhisperEditBox" letters="30" autoFocus="false"> <Size> <AbsDimension x="120" y="20"/> </Size> <Anchors> <Anchor point="LEFT" relativeTo="NotesCommDropDown" relativePoint="RIGHT"> <Offset> <AbsDimension x="-3" y="2"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="ARTWORK"> <Texture name="NotesWhisperGroupBorderLeft" file="Interface\ChatFrame\UI-ChatInputBorder-Left"> <Size> <AbsDimension x="26" y="28"/> </Size> <Anchors> <Anchor point="LEFT"> <Offset> <AbsDimension x="-12" y="0"/> </Offset> </Anchor> </Anchors> <TexCoords left="0" right="0.1" top="0" bottom="1.0"/> </Texture> <Texture name="NotesWhisperGroupBorderMid" file="Interface\ChatFrame\UI-ChatInputBorder-Right"> <Size> <AbsDimension x="90" y="28"/> </Size> <Anchors> <Anchor point="LEFT" relativeTo="NotesWhisperGroupBorderLeft" relativePoint="RIGHT"/> </Anchors> <TexCoords left="0.4" right=".6" top="0" bottom="1.0"/> </Texture> <Texture name="NotesWhisperGroupBorderRight" file="Interface\ChatFrame\UI-ChatInputBorder-Right"> <Size> <AbsDimension x="22" y="28"/> </Size> <Anchors> <Anchor point="LEFT" relativeTo="NotesWhisperGroupBorderMid" relativePoint="RIGHT"/> </Anchors> <TexCoords left="0.9" right="1.0" top="0" bottom="1.0"/> </Texture> </Layer> </Layers> <FontString inherits="GameFontHighlightSmall"></FontString> <Scripts> <OnClick> this:SetFocus(); </OnClick> <OnEnterPressed> this:ClearFocus(); </OnEnterPressed> <OnEscapePressed> this:ClearFocus(); </OnEscapePressed> <OnMouseUp> NotesWhisperEditBox:SetFocus(); </OnMouseUp> <OnTextChanged> Notes_SetButtonState(1) </OnTextChanged> </Scripts> </EditBox> <EditBox name="NotesPrintMacroEditBox" letters="40" virtual="true" enableMouse="true" autoFocus="false" hidden="true"> <Size> <AbsDimension x="270" y="20"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="55" y="-2"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="ARTWORK"> <FontString inherits="GameFontNormal" text="Macro: " justifyH="LEFT"> <Anchors> <Anchor point="BOTTOMLEFT"> <Offset> <AbsDimension x="-45" y="5"/> </Offset> </Anchor> </Anchors> </FontString> </Layer> </Layers> <FontString inherits="GameFontHighlightSmall"/> <Scripts> <OnTextChanged> this:ClearFocus() Notes_SetButtonState() </OnTextChanged> <OnClick> this:SetFocus(); </OnClick> <OnEnterPressed> this:ClearFocus(); </OnEnterPressed> <OnEscapePressed> this:ClearFocus(); </OnEscapePressed> </Scripts> </EditBox> <CheckButton name="NotesCommSpeedCheckButton" inherits="NotesCheckButtonTemplate" checked="false" hidden="false"> <Size> <AbsDimension x="15" y="15"></AbsDimension> </Size> <Scripts> <OnLoad> getglobal(this:GetName().."Text"):SetText("Speed") </OnLoad> <OnClick> Notes_CommSpeedUIToggle() </OnClick> </Scripts> <Anchors> <Anchor point="TOPRIGHT"> <Offset> <AbsDimension x="-37" y="-4"/> </Offset> </Anchor> </Anchors> </CheckButton> <Slider name="NotesCommSpeedSlider" inherits="OptionsSliderTemplate"> <Size> <AbsDimension x="236" y="17" /> </Size> <Anchors> <Anchor point="BOTTOMRIGHT"> <Offset> <AbsDimension x="-10" y="15" /> </Offset> </Anchor> </Anchors> <Layers> <Layer level="ARTWORK"> <FontString inherits="GameFontNormal" text="Max Delay: [Medium]" name="NotesCommSpeedLabel" justifyH="LEFT"> <Size> <AbsDimension x="160" y="15"/> </Size> <Anchors> <Anchor point="RIGHT" relativePoint="LEFT"> <Offset> <AbsDimension x="2" y="-4"/> </Offset> </Anchor> </Anchors> </FontString> </Layer> </Layers> <Scripts> <OnShow> getglobal(this:GetName().."Low"):SetText("Off"); getglobal(this:GetName().."High"):SetText("Long"); this:SetMinMaxValues(0, 20); this:SetValueStep(4); this:SetScale(.8); </OnShow> <OnValueChanged> Notes_PrintMaxInterval = this:GetValue() Notes_SetButtonState(1) </OnValueChanged> </Scripts> </Slider> </Frames> </Frame> <Frame name="NotesFrame" toplevel="true" enableMouse="true" movable="true" parent="UIParent" hidden="true"> <Scripts> <OnLoad> Notes_ScrollBarUpdate() this:RegisterForDrag("LeftButton"); tinsert(UISpecialFrames,this:GetName()); </OnLoad> <OnDragStart> this:StartMoving(); this.isMoving = true; </OnDragStart> <OnDragStop> this:StopMovingOrSizing(); this.isMoving = false; </OnDragStop> </Scripts> <Size> <AbsDimension x="384" y="442"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> <Frames> <Frame name="NotesBGFrame" inherits="NotesFrameTemplate" hidden="false"/> <Frame name="Notes" inherits="NotesNoteScrollTemplate" hidden="false"/> <Frame name="NotesTitleEditFrame" inherits="NotesTitleEditBoxTemplate" hidden="false"/> <ScrollFrame name="NotesText" inherits="NotesScrollTextFrameTemplate" hidden="false"/> <Frame name="NotesBookFrame" inherits="NotesBookFrameTemplate" hidden="false"/> <Frame name="NotesTOC" inherits="NotesTOCScrollTemplate" hidden="true"/> <Frame name="NotesCommFrame" inherits="NotesCommFrameTemplate" hidden="false"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesBookFrame" relativePoint="BOTTOMLEFT"> <Offset> <AbsDimension x="0" y="4"/> </Offset> </Anchor> </Anchors> </Frame> <Frame name="NotesLuaFrame" inherits="NotesLuaFrameTemplate" hidden="false"> <Anchors> <Anchor point="TOPLEFT" relativeTo="NotesCommFrame" relativePoint="BOTTOMLEFT"> <Offset> <AbsDimension x="0" y="4"/> </Offset> </Anchor> </Anchors> </Frame> </Frames> </Frame> <Frame name="NotesEvents" toplevel="false" enableMouse="false" movable="false" parent="UIParent" hidden="false"> <Size> <AbsDimension x="1" y="1"/> </Size> <Anchors> <Anchor point="TOPLEFT"/> </Anchors> <Scripts> <OnLoad> Notes_OnLoad(); </OnLoad> <OnEvent> Notes_ListenEvent(); Notes_OnEvent(); </OnEvent> <OnUpdate> Notes_ParseCache() Notes_OnUpdate(); </OnUpdate> </Scripts> </Frame> </Ui>