noob question by one noob
hi all,
I have a question that may seem stupid in the eyes of many, but I am not a developer (I am nevertheless trying to improve), and I would like to know what it should be and should not do or put in files (basically, knowing a potential good practice or something like that): - controls.lua - function.lua Sorry for my english and thank you for your answers. |
Quote:
I'm not sure if I understand you. Do you want to know what a "best practice" for writing an addon should be? If you should split your addon into several lua files, one for controls, the other for functions, etc.? In my opinion it depends on the size of your project/addon. I'd start with a single file and local variables like Lua Code:
in there, and then advance it to using multiple files and global variables that can be used in several files Lua Code:
Check these links for eso addon development: http://wiki.esoui.com/Main_Page -> At the right side below "How-To Guides" http://wiki.esoui.com/Getting_Started http://wiki.esoui.com/Writing_your_first_addon |
My question was rather to understand the essence of the contents of the files "controls" and "function" that are found in many addon, and their real differences, and why to separate into two files their contents.
|
it's dev preference, nothing, more.
|
As written above:
Some developers split it up (better readability, whatever reason they got) and some don't. |
All times are GMT -6. The time now is 06:36 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI