Quantcast
Download
(50 Kb)
Download
Updated: 07/15/19 11:57 AM
Pictures
File Info
Compatibility:
Scalebreaker (5.1.5)
Elsweyr (5.0.5)
Wrathstone (4.3)
Updated:07/15/19 11:57 AM
Created:05/27/18 12:46 PM
Monthly downloads:47
Total downloads:680
Favorites:6
MD5:
Categories:Developer Utilities, Utility Mods
5.1.5
New Addon Template
Version: 1.26
by: Phuein [More]
Gift me @phuein in-game, if you have extra crowns and appreciate my addons. (Can even ask which DLC I missed.) Thank you!

This is not a game addon and it does nothing meaningful.

This is a template for new addons. I often use these features when making or upgrading an addon. It is intended to be a "blank slate" to work with quickly and efficiently. Easier to remove a few code blocks, than it is to write them from scratch.

Included in this template are the following:
  • Manifest.
  • Keybinding.
  • LibStub & LibAddonMenu-2.0 with all the default menu options.
  • Multiple language support.
  • Chat output, an animated announcement (center), and an alert (top-right.)
  • A slash command: "/newaddon".
  • Colors.
  • XML UI elements.
  • Notification when loaded for the first time.
  • Events handled: EVENT_ADD_ON_LOADED, EVENT_PLAYER_ACTIVATED, zo_callLater() [which uses RegisterForUpdate().]
  • Toggle savedVars per character or account-wide.

More useful features can be added in time. I welcome all code input, improvements, and requests. I suggest opening all of the project's files together (except the external libraries,) to see how they interact; from language, to hotkeys, to menus.

Writing addons shouldn't be about hunting for code online, but rather focusing on functionality and aesthetics.
1.26
- Fix.

1.25
- Minor tweaks.
- Added support for character/account savedVariables, with a toggle in settings.

1.23
- Minor tweaks.

1.2
- Settings code is easier to modify and improved.

1.1
- Bugfixes.
- Separated Settings menu to its own file.
- Changed some code format for readability.

1.0
- Core functionality for most addons. Full list in the description page.
Optional Files (0)


Archived Files (7)
File Name
Version
Size
Uploader
Date
1.25
50kB
Phuein
06/15/19 09:22 PM
1.23
48kB
Phuein
03/28/19 04:00 AM
1.22
48kB
Phuein
03/26/19 02:58 PM
1.21
48kB
Phuein
03/25/19 09:54 PM
1.2
48kB
Phuein
08/16/18 12:42 PM
1.1
48kB
Phuein
06/09/18 01:08 AM
1.0
47kB
05/27/18 12:46 PM


Post A Reply Comment Options
Unread 07/15/19, 11:56 AM  
Phuein
 
Phuein's Avatar
AddOn Author - Click to view AddOns

Forum posts: 95
File comments: 172
Uploads: 9
Originally Posted by SkidBrain
Thanks for the template! It's quite helpful and has encouraged me to start poking at things.

I just needed to change "Junkee" on line 84 to "NewAddon" and was good to go.

Cheers.
Whoops! Thanks for informing me, updating now to fix that.

Enjoy!
__________________

Author of beloved and rejuvenated addons:

• ShowMount            • PvP FPS 2018

• Notebook 2018        • Junkee 2018

• BestFriends 2018      • New Addon
Report comment to moderator  
Reply With Quote
Unread 07/15/19, 11:27 AM  
SkidBrain
 
SkidBrain's Avatar

Forum posts: 0
File comments: 1
Uploads: 0
Thanks for the template! It's quite helpful and has encouraged me to start poking at things.

I just needed to change "Junkee" on line 84 to "NewAddon" and was good to go.

Cheers.
Report comment to moderator  
Reply With Quote
Unread 06/16/19, 09:38 AM  
Phuein
 
Phuein's Avatar
AddOn Author - Click to view AddOns

Forum posts: 95
File comments: 172
Uploads: 9
Originally Posted by kesoapa
Second that @RavenMind

This might just be the push to take the leap.

Thanks for your great work @Phuein
Glad to hear that! Enjoy!
__________________

Author of beloved and rejuvenated addons:

• ShowMount            • PvP FPS 2018

• Notebook 2018        • Junkee 2018

• BestFriends 2018      • New Addon
Report comment to moderator  
Reply With Quote
Unread 06/16/19, 04:40 AM  
kesoapa
 
kesoapa's Avatar

Forum posts: 0
File comments: 8
Uploads: 0
Second that @RavenMind

This might just be the push to take the leap.

Thanks for your great work @Phuein
__________________
Don't let the keso go hδrskna
Report comment to moderator  
Reply With Quote
Unread 09/15/18, 10:31 PM  
Phuein
 
Phuein's Avatar
AddOn Author - Click to view AddOns

Forum posts: 95
File comments: 172
Uploads: 9
Originally Posted by RavenMind
Nice work! I've been thinking about learning LUA & trying my hand at addons, and this template looks to be very useful! Thank you for taking the time to post it!
I enjoy others' addons, so go ahead!
Report comment to moderator  
Reply With Quote
Unread 09/15/18, 12:14 AM  
RavenMind
 
RavenMind's Avatar

Forum posts: 0
File comments: 340
Uploads: 0
Nice work! I've been thinking about learning LUA & trying my hand at addons, and this template looks to be very useful! Thank you for taking the time to post it!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: