Download
(80 Kb)
Download
Updated: 05/22/14 08:37 PM
Compatibility:
Live (1.0)
Updated:05/22/14 08:37 PM
Created:04/24/14 10:34 PM
Monthly downloads:14
Total downloads:2,371
Favorites:12
MD5:
Sample Application (For new developers)
Version: 1.2
by: awesomebilly [More]
Sample Application

Updated
Changelog:
1. Included UI Examples for FPS
2. Included List Example Using Unicorn + List
3. Include Localization (only a few strings)
4. Included API calls

Major Feature.
This sample app will scan all of your guilds, it will check who hasn't logged in for over 3 weeks and give you the option to kick them. If you have permissions, they will be kicked. If you don't you'll get a msg.

Hello New Developers!
ESO UI is a great place to get started making your first Addon, they have a great Wiki already setup.

This App is a base framework that I use when I develop my addons.
I'm fairly new myself, everything I do might not be best practices, but hey, we're all learning


Feel free to download this Sample App, or clone the repo
https://github.com/williamrussellajb/SampleApp.git.


So please, install this addon check out the basic features
and then dive into the code and start tweaking it!

SampleApp

=========

What does this app do?
----------------

This addon will show a few basic features that can be troublesome for new LUA addon developers.



How does it work?
-----------------
(Not necessarily in this order)
1. Example of Creating UI elements -- Implemented
2. Example of using LibAddonMenu from @Seerah (Settings Menu) -Implemented
3. Example of Saved Variables -Implemented
4. Global vs Local variables -Implemented
5. Using Events -Implemented
6. Localization -- Implemented
7. Example of Unicorn framework. --Implemented
8. Adding SLASHCOMMANDS -Implemented
9. OnAddonLoaded Example -Implemented
10. OnUpdate Example -Implemented



Changelog
---------

0.01 Inital Idea.
Create basic framework for new developers to follow.


TODO / ideas
------------
9. Show example of overriding buttons


Notes:
--------------

Not everything I do is best practices, if you're more experienced in LUA than me, please feel free to contribute to this addon.

Example:
ruby_variables_are_usually_like_this
javaVariablesAreCamelCased.
I prefer camelCasedVariables.




SampleApp.txt
## Title: SampleApp --Name of your application. This needs to also be the actual file name

## Author: @awesomebilly
## APIVersion: 100003 -- if ESO API updates, and this doesn't update.. your addon will become out of date.
## SavedVariables: SampleApp_Saved_Variable -- this is how to save variables between logout or /reloadui
## Version: 1.1 -- Version of your application
## OptionalDependsOn: LibAddonMenu-1.0, LibAnimation-1.0, LibStub.lua, Unicorn.lua, List.lua --Varios libs this addon will use.

libs/Unicorn.lua -- implemented.
libs/List.lua --- implemented
libs/LibAddonMenu-1.0 --- Addonmenu
libs/LibAnimation-1.0 --- Not implemented yet.
libs/LibStub.lua -- Used with AddonMenu

SampleAppGlobals.lua --- Notice I load my globals in .txt before the rest of the files. Not sure if this is best practices but it works for me. try moving it to the bottom of the list.. see what happens.
core/SI.lua -- Load SI before localizations
localization/$(language).lua -- Depending on what the client is in, EN, FR, DE this file will be chosen.

core/SampleAppUI.lua
core/SampCommons.lua
core/SampleDebug.lua
core/SampleSlashCommands.lua
SampleApp.xml
SampleApp.lua -- I like to load this last, since it has OnAddonLoaded event in it.


As always.. you can learn more from
Here: http://wiki.esoui.com/Main_Page
updated to version 100004
Optional Files (0)


Archived Files (3)
File Name
Version
Size
Uploader
Date
1.1
80kB
awesomebilly
04/30/14 10:27 PM
1.0
54kB
awesomebilly
04/25/14 01:25 AM
0
17kB
04/24/14 10:34 PM


Post A Reply Comment Options
Unread 05/23/14, 01:28 AM  
Kraeius
 
Kraeius's Avatar
AddOn Author - Click to view AddOns

Forum posts: 25
File comments: 249
Uploads: 3
Originally Posted by awesomebilly
Originally Posted by Kraeius
Originally Posted by awesomebilly
Originally Posted by Kraeius
Hey Awesomebilly,

I will also start coding lua to make ESO addons and your app looks very promising to get started with basics. It's a very good idea and thank you for your efforts.

I have a question about .txt file. There is a line like "Sam p leApp/SI.lua" there. Is this a typo? I've checked SI.lua and its in SampleAPP/core/SI.lua. You meant to write it?
I've fixed the SI (implemented it)
Hey again,

Planning new updates and additions for this one?
Sure, anything specific you would like to see?
Things that I've little info are;

- SCENE_MANAGER
- Timers
- Animation-like Stuff (Changing opacity of a control/texture with given time etc. )
- and IsHidden controls for ESO created panels, windows etc. I mean, for example I want to check if World Map is open or not. Things like that.

These are the subjects that I would like to see examples for. I'd be very grateful if you could implement them.
Last edited by Kraeius : 05/23/14 at 01:28 AM.
Report comment to moderator  
Reply With Quote
Unread 05/22/14, 08:38 PM  
awesomebilly
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 230
Uploads: 8
Originally Posted by Kraeius
Originally Posted by awesomebilly
Originally Posted by Kraeius
Hey Awesomebilly,

I will also start coding lua to make ESO addons and your app looks very promising to get started with basics. It's a very good idea and thank you for your efforts.

I have a question about .txt file. There is a line like "Sam p leApp/SI.lua" there. Is this a typo? I've checked SI.lua and its in SampleAPP/core/SI.lua. You meant to write it?
I've fixed the SI (implemented it)
Hey again,

Planning new updates and additions for this one?
Sure, anything specific you would like to see?
Report comment to moderator  
Reply With Quote
Unread 05/22/14, 11:08 AM  
Kraeius
 
Kraeius's Avatar
AddOn Author - Click to view AddOns

Forum posts: 25
File comments: 249
Uploads: 3
Originally Posted by awesomebilly
Originally Posted by Kraeius
Hey Awesomebilly,

I will also start coding lua to make ESO addons and your app looks very promising to get started with basics. It's a very good idea and thank you for your efforts.

I have a question about .txt file. There is a line like "Sam p leApp/SI.lua" there. Is this a typo? I've checked SI.lua and its in SampleAPP/core/SI.lua. You meant to write it?
I've fixed the SI (implemented it)
Hey again,

Planning new updates and additions for this one?
Report comment to moderator  
Reply With Quote
Unread 04/30/14, 10:30 PM  
awesomebilly
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 230
Uploads: 8
Originally Posted by Kraeius
Hey Awesomebilly,

I will also start coding lua to make ESO addons and your app looks very promising to get started with basics. It's a very good idea and thank you for your efforts.

I have a question about .txt file. There is a line like "Sam p leApp/SI.lua" there. Is this a typo? I've checked SI.lua and its in SampleAPP/core/SI.lua. You meant to write it?
I've fixed the SI (implemented it)
Report comment to moderator  
Reply With Quote
Unread 04/30/14, 10:30 PM  
awesomebilly
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 230
Uploads: 8
Major Update

Hello Everyone.

Major Update 1.1

I've changed a few things to make it a little more complex. If you're getting started download the first file. If you've already gone through this, grab the latest update.

Changes:
1. I've moved global variables into their own file.
2. Added Guild Kick Feature (Storing results from API calls into a table)
3. Show examples of UI for Unicorn (list)
4. Show examples of User Interface for FPS
5. Added callLater (not sure if I did anything with it
6. Added Localization.


Please review this sample app. It's getting much larger and can completely cover a new application.
Report comment to moderator  
Reply With Quote
Unread 04/26/14, 09:31 AM  
awesomebilly
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 230
Uploads: 8
Originally Posted by Kraeius
Hey Awesomebilly,

I will also start coding lua to make ESO addons and your app looks very promising to get started with basics. It's a very good idea and thank you for your efforts.

I have a question about .txt file. There is a line like "Sam p leApp/SI.lua" there. Is this a typo? I've checked SI.lua and its in SampleAPP/core/SI.lua. You meant to write it?
I added the spaces to prevent that file from loading, its for the localizations (Translations) which I hope to release early this upcoming week.

you could probably fix the SI.lua, but it it errors out give it a few spaces again.
Report comment to moderator  
Reply With Quote
Unread 04/26/14, 05:20 AM  
Kraeius
 
Kraeius's Avatar
AddOn Author - Click to view AddOns

Forum posts: 25
File comments: 249
Uploads: 3
Hey Awesomebilly,

I will also start coding lua to make ESO addons and your app looks very promising to get started with basics. It's a very good idea and thank you for your efforts.

I have a question about .txt file. There is a line like "Sam p leApp/SI.lua" there. Is this a typo? I've checked SI.lua and its in SampleAPP/core/SI.lua. You meant to write it?
Report comment to moderator  
Reply With Quote
Unread 04/25/14, 06:59 AM  
Teli
AddOn Author - Click to view AddOns

Forum posts: 19
File comments: 10
Uploads: 1
Great idea for an addon! I figured out a lot on my own but addons like this are really helpful when learning how to program in lua. There's still a ton left to learn I'm going to continue going over it.
Report comment to moderator  
Reply With Quote
Unread 04/25/14, 01:26 AM  
awesomebilly
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 230
Uploads: 8
Re: Feedback please

Originally Posted by awesomebilly
If you find bugs, or have feedback, please leave some comments
Stupid Nil bug! Why what where? lol.

Wrong global.
Report comment to moderator  
Reply With Quote
Unread 04/24/14, 11:59 PM  
awesomebilly
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 230
Uploads: 8
Feedback please

If you find bugs, or have feedback, please leave some comments
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: