Download
(25 Kb)
Download
Updated: 02-19-12 01:18 PM
Pictures
File Info
Updated:02-19-12 01:18 PM
Created:02-19-12 01:22 AM
Downloads:218
Favorites:4
MD5:
Notepad
Version: 0.02
by: TimeBomb [More]
A simple notepad addon that allows you to save text notes.

Notes are saved in account-wide profiles, and thus one character's notes can be easily viewed/modified by another character.

Currently, the only way to open Notepad is to type: /notepad
To reset the UI(not the profiles) to default, type /notepad reset
Please note that resetting notepad will revert all unsaved changes.
V0.02
- Increased width and height of text area
- Darkened text area a bit
- Now, when you click anywhere on the text area, it will allow you to start editing the text. (You no longer have to click directly on the line of the text.)
- Some backend UI optimizations. (Thanks adelea.)

V0.01
Initial Release
Archived Files (1)
File Name
Version
Size
Author
Date
0.01
25kB
TimeBomb
02-19-12 01:22 AM


Post A Reply Comment Options
Old 06-29-12, 02:39 AM  
D-BorG

Forum posts: 0
File comments: 2
Uploads: 0
list of saved notes

is it possible to have slash command to list all saved notes?
D-BorG is offline Report comment to moderator  
Reply With Quote
Old 02-19-12, 01:51 PM  
adelea
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 266
Uploads: 6
Perfect - thanks - having the whole text area clickable to make it active makes it much much easier!
adelea is offline Report comment to moderator  
Reply With Quote
Old 02-19-12, 01:19 PM  
TimeBomb
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 21
File comments: 54
Uploads: 6
Quote:
Originally Posted by adelea
Very useful thank you!
-snip-
Thanks a lot for your feedback and help. I've just updated to V0.02, and I imagine it'll be approved soon.
Quote:
Originally Posted by V0.02
- Increased width and height of text area
- Darkened text area a bit
- Now, when you click anywhere on the text area, it will allow you to start editing the text. (You no longer have to click directly on the line of the text.)
- Some backend UI optimizations. (Thanks adelea.)
TimeBomb is offline Report comment to moderator  
Reply With Quote
Old 02-19-12, 08:29 AM  
adelea
Claw of Regulos
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 266
Uploads: 6
Very useful thank you!

One request - is it possible to make the text area a bit darker - sometimes seems a bit hit and miss as to whether I click in it to make it active.

And a note you may not be aware of (bearing in mind your commnet on the riftforums) =)

When you do a UI.CreateFrame(..., context)

You can pass in a frame as the context, which then parents the old frame to the new one. You can then hide/show everything by toggling the display of the parent frame.

Code:
gui.frame = UI.CreateFrame("SimpleWindow", "", Notepad.context)
gui.textArea = UI.CreateFrame("SimpleTextArea", "textarea", gui.frame)
gui.textField = UI.CreateFrame("RiftTextfield", "Textfield", gui.frame)
Then your ToggleVisibility() function can become much shorter:

Code:
function Notepad.ToggleVisibility()
    if not Notepad.visible then
        Notepad.interface.frame:SetVisible(true)
    else
        Notepad_Config.y = Notepad.interface.frame:GetTop()
        Notepad_Config.x = Notepad.interface.frame:GetLeft()
        Notepad.interface.frame:SetVisible(false)
    end
    Notepad.visible = not Notepad.visible
end
adelea is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: