Download
(2 Kb)
Download
Updated: 06/13/24 04:46 AM
Pictures
File Info
Compatibility:
Gold Road (10.0.0)
Scions of Ithelia (9.3.0)
Endless Archive (9.2.5)
base-game patch (9.1.5)
Necrom (9.0.0)
Scribes of Fate (8.3.5)
Updated:06/13/24 04:46 AM
Created:02/13/24 06:15 AM
Monthly downloads:171
Total downloads:716
Favorites:1
MD5:
10.0.0
ToggleQuestTracker
Version: 1.1.3
by: Saint-Ange [More]
Show/Hide the quest tracker with a keybind or the command /questtracker
1.1.3 API Update 42
1.1.2 API Update 41
1.1.1 Should follow a propper and more structured approach to load this addon's code, thank you Baertram! Added comments to the lua and xml codes.
1.1.0 Hide the Quest Tracker by default at the start of the game or after a reloadui.
1.0.0 Release.
Optional Files (0)


Archived Files (3)
File Name
Version
Size
Uploader
Date
1.1.2
2kB
Saint-Ange
03/17/24 07:17 AM
1.1.1
2kB
Saint-Ange
02/14/24 02:03 AM
1.0.0
1kB
02/13/24 06:15 AM


Post A Reply Comment Options
Unread 02/14/24, 02:19 AM  
Saint-Ange
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 27
Uploads: 4
Hi Baertram,

Again, thank you very much for your help! Glad we have you.

Lua code is typically executed in a sequential manner, starting from the top of the script and moving down line by line. However, there are nuances to this process:

1. **Sequential Execution**: Lua executes code sequentially by default, meaning it starts at the top of the script and moves down, line by line, executing each statement or block of code as it encounters them.

2. **Control Structures**: Lua supports control structures like loops (for, while) and conditionals (if-else), which can alter the flow of execution. When Lua encounters these structures, it may jump to different parts of the script based on certain conditions or iterate over sections of code multiple times.

3. **Function Calls**: Lua allows defining and calling functions. When a function is called, Lua temporarily suspends execution of the current code block, executes the function's body, and then returns to where it left off in the original code.

4. **Callbacks and Event Handling**: In Lua environments like game development or GUI programming, code may not follow a strictly sequential execution model. Instead, certain parts of the code may be executed in response to events triggered by user input, system events, or other asynchronous processes.

5. **Coroutines**: Lua also supports coroutines, which are a way to achieve cooperative multitasking. Coroutines allow suspending and resuming execution at certain points, enabling more complex control flows and concurrency patterns.

So, while Lua typically executes code from top to bottom, the presence of control structures, function calls, event handling mechanisms, and coroutines can introduce non-linear execution paths.
Report comment to moderator  
Reply With Quote
Unread 02/13/24, 12:01 PM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 5098
File comments: 6181
Uploads: 78
Hi,

your addon should not put the code directly into the lua file but you must use the EVENT_ADD_ON_LOADED properly for YOUR addon to load, and in there do your addon stuff then.
Else it could be that code your addon needs was not finished yet and it fails to work properly, and or libraries you might add won't work.

Described here for example:
https://wiki.esoui.com/SimpleNotebookTutorial/part3


Remember to unregister your EVENT_ADD_ON_LOADED again after your addon was loaded, else it fires again and again for each other addon.

Please change that code lines accordingly, should be easily doable.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: