WildStar:UI Snippets: Difference between revisions

(Created page with " This page is supposed to list lua practices that are frequently used and needed when writing addons. ==Examples== *Loading a extra library (and modify those which have bee...")
 
No edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This page is supposed to list lua practices that are frequently used and needed when writing addons.
__NOWYSIWYG__{{\|uiuser}}


==Concrete Code Examples==
This page list Lua code and idioms that are frequently needed when writing [[AddOn]]s.
 
*Loading a extra lua script / library: https://forums.wildstar-online.com/forums/index.php?/topic/145956-include-a-lib/?p=1448824
== Concrete code examples ==
**and modify those which have been written lua generic without ws-spec: https://forums.wildstar-online.com/forums/index.php?/topic/50951-question-more-lua-files-in-one-addon/
* Loading a extra Lua script / library: https://forums.wildstar-online.com/forums/index.php?/topic/145956-include-a-lib/?p=1448824
*Automatic save Window/Form position of your addon's frames (when the user moves them): https://forums.wildstar-online.com/forums/index.php?/topic/77580-need-assist-on-saving-frame-position-noob-here/
** and modify those which have been written Lua generic without wildstar-spec: https://forums.wildstar-online.com/forums/index.php?/topic/50951-question-more-lua-files-in-one-addon/
**in case the code in the upper link does not work, try this: https://gist.github.com/anonymous/bfe9d83596765db97af3
* Automatic save Window/Form position of your addon's frames (when the user moves them): https://forums.wildstar-online.com/forums/index.php?/topic/77580-need-assist-on-saving-frame-position-noob-here/
*Hooking into foreign addons functions (ger): https://forums.wildstar-online.com/forums/index.php?/topic/143803-event-reihenfolge-und-propagation-verhindern/?p=1434349
** in case the code in the upper link does not work, try this: https://gist.github.com/anonymous/bfe9d83596765db97af3
*Table and pointer / references: https://forums.wildstar-online.com/forums/index.php?/topic/146237-de-referencing-pointer-for-writing/
* Hooking into foreign addons functions (ger): https://forums.wildstar-online.com/forums/index.php?/topic/143803-event-reihenfolge-und-propagation-verhindern/?p=1434349
*Saving data for your addon: savedVariables:
* Table and pointer / references: https://forums.wildstar-online.com/forums/index.php?/topic/146237-de-referencing-pointer-for-writing/
**https://forums.wildstar-online.com/forums/index.php?/topic/93286-saving-data-in-my-addon
* Saving data for your addon - savedVariables:
*Preventing colisions with saved variables when you change savedVars data structure of your addon: https://forums.wildstar-online.com/forums/index.php?/topic/145622-resetting-savedvariables/
** https://forums.wildstar-online.com/forums/index.php?/topic/93286-saving-data-in-my-addon
==Guides==
* Preventing collisions with saved variables when you change savedVars data structure of your addon: https://forums.wildstar-online.com/forums/index.php?/topic/145622-resetting-savedvariables/
#Star off guide: http://wildstarnasa.com/2014/01/a-complete-newbies-guide-to-apollo-and-houston/
* Stopping recurring timers: https://gist.github.com/serjoscha87/917d4c8756d1ec90ce8f
 
* Using umlauts in your addon: http://www.esoui.com/forums/showthread.php?t=4188
==Libraries==
A collection of helpful developement addons and libs can be found wihin the NASA github repository: https://github.com/wildstarnasa
 
Most recommended Addon:
 
*'''Rover''': You can send any type of data to the ingame rover-table by using SendVarToRover("label", <the_data_you_want_to_inspect>) after installing this addon. Rover can then be opened with /rover and will come up with a really nice and super helpful data inspection window.

Latest revision as of 02:01, 13 August 2023

User defined code

This page list Lua code and idioms that are frequently needed when writing AddOns.

Concrete code examples