rendered paste body<!-- DaQ_Notepad v1.0 Written by Liquidor [Alliance|Ravencrest] (c)2005 dennis@cyklopstudio.com toplevel="true"--> <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="Hyper_Notepad.lua"/> <Frame name="Hyper_NotepadFrame" enableMouse="true" movable="true" parent="UIParent" hidden="true"> <TitleRegion setAllPoints="true"/> <Scripts> <OnLoad> Hyper_Notepad_OnLoad(); </OnLoad> <OnEvent> Hyper_Notepad_OnEvent(); </OnEvent> <OnShow> Hyper_Notepad_OnShow(); </OnShow> <OnHide> Hyper_Notepad_OnHide(); </OnHide> </Scripts> <Size> <AbsDimension x="384" y="512"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="0" y="-104"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="BACKGROUND"> <Texture name="Hyper_NotepadFramePortrait" file="Interface\Spellbook\Spellbook-Icon"> <Size> <AbsDimension x="58" y="58"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="8" y="-9"/> </Offset> </Anchor> </Anchors> </Texture> </Layer> <Layer level="ARTWORK"> <Texture file="Interface\QuestFrame\UI-QuestGreeting-TopLeft"> <Size> <AbsDimension x="256" y="256"/> </Size> <Anchors> <Anchor point="TOPLEFT"/> </Anchors> </Texture> <Texture file="Interface\QuestFrame\UI-QuestGreeting-TopRight"> <Size> <AbsDimension x="128" y="256"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="256" y="0"/> </Offset> </Anchor> </Anchors> </Texture> <Texture file="Interface\QuestFrame\UI-QuestGreeting-BotLeft"> <Size> <AbsDimension x="256" y="256"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="0" y="-256"/> </Offset> </Anchor> </Anchors> </Texture> <Texture file="Interface\QuestFrame\UI-QuestGreeting-BotRight"> <Size> <AbsDimension x="128" y="256"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="256" y="-256"/> </Offset> </Anchor> </Anchors> </Texture> <FontString name="Hyper_NotepadFrameTitle" inherits="GameFontHighlight" text="Hyper_Notepad v0.1"> <Size> <AbsDimension x="200" y="15"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="90" y="-23"/> </Offset> </Anchor> </Anchors> </FontString> </Layer> </Layers> <Frames> <Button name="Hyper_NotepadFrameCloseButton" inherits="UIPanelCloseButton"> <Anchors> <Anchor point="TOPRIGHT"> <Offset> <AbsDimension x="-26" y="-15"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> <!-- todo: save text Hyper_Notepad_SaveText();--> HideUIPanel(Hyper_NotepadFrame); </OnClick> </Scripts> </Button> <EditBox name="save_name" letters="80"> <Size> <AbsDimension x="150" y="32"></AbsDimension> </Size> <Anchors> <Anchor point="TOP"> <Offset> <AbsDimension x="-49" y="-44"></AbsDimension> </Offset> </Anchor> </Anchors> <Layers> <Layer level="BACKGROUND"> <Texture file="Interface\ChatFrame\UI-ChatInputBorder-Left"> <Size> <AbsDimension x="100" y="32"></AbsDimension> </Size> <Anchors> <Anchor point="LEFT"> <Offset> <AbsDimension x="-10" y="0"></AbsDimension> </Offset> </Anchor> </Anchors> <TexCoords left="0" right="0.2" top="0" bottom="1.0"></TexCoords> </Texture> <Texture file="Interface\ChatFrame\UI-ChatInputBorder-Right"> <Size> <AbsDimension x="100" y="32"></AbsDimension> </Size> <Anchors> <Anchor point="RIGHT"> <Offset> <AbsDimension x="10" y="0"></AbsDimension> </Offset> </Anchor> </Anchors> <TexCoords left="0.7" right="1.0" top="0" bottom="1.0"></TexCoords> </Texture> </Layer> </Layers> <Scripts> <OnLoad></OnLoad> </Scripts> <FontString inherits="ChatFontNormal"></FontString> </EditBox> <Button name="Hyper_NotepadFrameExitButton" inherits="UIPanelButtonTemplate" text="Exit"> <Size> <AbsDimension x="77" y="21"/> </Size> <Anchors> <Anchor point="BOTTOMRIGHT" relativeTo="Hyper_NotepadFrame" relativePoint="BOTTOMRIGHT"> <Offset> <AbsDimension x="-39" y="74"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> <!-- todo: save text Hyper_Notepad_SaveText();--> HideUIPanel(Hyper_NotepadFrame); </OnClick> </Scripts> </Button> <Button name="Hyper_NotepadFrameSaveButton" inherits="UIPanelButtonTemplate" text="Save"> <Size> <AbsDimension x="77" y="21"/> </Size> <Anchors> <Anchor point="BOTTOMLEFT" relativeTo="Hyper_NotepadFrame" relativePoint="BOTTOMLEFT"> <Offset> <AbsDimension x="20" y="74"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> <!-- todo: save text --> Hyper_Notepad_SaveText(); </OnClick> </Scripts> </Button> <Button name="Hyper_NotepadFrameLoadButton" inherits="UIPanelButtonTemplate" text="Load"> <Size> <AbsDimension x="77" y="21"/> </Size> <Anchors> <Anchor point="RIGHT" relativeTo="save_name" relativePoint="RIGHT"> <Offset> <AbsDimension x="100" y="0"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> <!-- todo: save text --> Hyper_LoadText(); </OnClick> </Scripts> </Button> <Button name="Hyper_NotepadFrameGetButton" inherits="UIPanelButtonTemplate" text="Reset"> <Size> <AbsDimension x="77" y="21"/> </Size> <Anchors> <Anchor point="BOTTOMLEFT" relativeTo="Hyper_NotepadFrame" relativePoint="BOTTOMLEFT"> <Offset> <AbsDimension x="100" y="74"/> </Offset> </Anchor> </Anchors> <Scripts> <OnClick> <!-- todo: get text --> Hyper_Notepad_GetText(); </OnClick> </Scripts> </Button> <ScrollFrame name="Hyper_NotepadScrollFrame" inherits="UIPanelScrollFrameTemplate"> <Size> <AbsDimension x="300" y="334"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="23" y="-81"/> </Offset> </Anchor> </Anchors> <Layers> <Layer level="ARTWORK"> <Texture name="$parentTop" file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar"> <Size> <AbsDimension x="30" y="256"/> </Size> <Anchors> <Anchor point="TOP" relativeTo="$parentScrollBarScrollUpButton"> <Offset> <AbsDimension x="0" y="5"/> </Offset> </Anchor> </Anchors> <!--<TexCoords left="0" right="0.484375" top="0" bottom="1.0"/>--> <TexCoords left="1" right="1" top="1" bottom="1"/> </Texture> <Texture file="Interface\PaperDollInfoFrame\UI-Character-ScrollBar"> <Size> <AbsDimension x="31" y="106"/> </Size> <Anchors> <Anchor point="BOTTOM" relativeTo="$parentScrollBarScrollDownButton"> <Offset> <AbsDimension x="0" y="-2"/> </Offset> </Anchor> </Anchors> <!--<TexCoords left="0.515625" right="1.0" top="0" bottom="0.4140625"/>--> <TexCoords left="1" right="1" top="1" bottom="1"/> </Texture> </Layer> </Layers> <ScrollChild> <Frame name="Hyper_NotepadScrollChildFrame" enableMouse="true"> <Size> <AbsDimension x="300" y="255"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="0" y="0"/> </Offset> </Anchor> </Anchors> <Frames> <EditBox name="Hyper_NotepadEditBox" letters="7500" multiLine="true" enableMouse="true" autoFocus="true" hidden="true"> <Size> <AbsDimension x="270" y="200"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="20" y="-10"/> </Offset> </Anchor> </Anchors> <Scripts> <OnEscapePressed> Hyper_NotepadEditBox:SetFocus(0); this:Hide(); Hyper_MessageFrame:Show(); </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) ) then this.max = max; scrollBar:SetValue(max); end Hyper_Notepad_UpdateText(); </OnTextChanged> </Scripts> <FontString inherits="ItemTextFontNormal"/> </EditBox> <MessageFrame name="Hyper_MessageFrame"> <Size> <AbsDimension x="270" y="200"/> </Size> <Anchors> <Anchor point="TOPLEFT"> <Offset> <AbsDimension x="20" y="-10"/> </Offset> </Anchor> </Anchors> <Scripts> <OnEscapePressed> HideUIPanel(Hyper_MessageFrame); </OnEscapePressed> <OnClick> this:Hide(); Hyper_NotepadEditBox:SetFocus(1); </OnClick> <OnLoad> this:SetAllPoints(Hyper_NotepadEditBox); this:AddMessage(Hyper_NotepadEditBox:GetText(),1.0,1.0,1.0,999) </OnLoad> </Scripts> <FontString inherits="ItemTextFontNormal"/> </MessageFrame> </Frames> <Scripts> <OnMouseUp> Hyper_NotepadEditBox:SetFocus(); </OnMouseUp> </Scripts> </Frame> </ScrollChild> </ScrollFrame> </Frames> </Frame></Ui>