Navigation menu

WildStar:UI Snippets: Difference between revisions

Jump to navigation Jump to search
Created page with "__NOWYSIWYG__{{../uiuser}} This page list Lua code and idioms that are frequently needed when writing AddOns. == Concrete code examples == * Loading a extra Lua script ..."
mNo edit summary
(Created page with "__NOWYSIWYG__{{../uiuser}} This page list Lua code and idioms that are frequently needed when writing AddOns. == Concrete code examples == * Loading a extra Lua script ...")
Line 1: Line 1:
__NOWYSIWYG__{{uiuser}}
__NOWYSIWYG__{{../uiuser}}


This page list Lua code and idioms that are frequently needed when writing [[AddOns]].
This page list Lua code and idioms that are frequently needed when writing [[AddOns]].
   
   
== Concrete code examples ==
== Concrete code examples ==
* Loading a extra lua script / library: https://forums.wildstar-online.com/forums/index.php?/topic/145956-include-a-lib/?p=1448824
* Loading a extra Lua script / library: https://forums.wildstar-online.com/forums/index.php?/topic/145956-include-a-lib/?p=1448824
** 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/
** 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/
* 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/
* 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/
** in case the code in the upper link does not work, try this: https://gist.github.com/anonymous/bfe9d83596765db97af3
** in case the code in the upper link does not work, try this: https://gist.github.com/anonymous/bfe9d83596765db97af3
Line 12: Line 12:
* Saving data for your addon - savedVariables:
* Saving data for your addon - savedVariables:
** https://forums.wildstar-online.com/forums/index.php?/topic/93286-saving-data-in-my-addon
** https://forums.wildstar-online.com/forums/index.php?/topic/93286-saving-data-in-my-addon
* 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/
* 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/
* Stopping recurring timers: https://gist.github.com/serjoscha87/917d4c8756d1ec90ce8f
* Stopping recurring timers: https://gist.github.com/serjoscha87/917d4c8756d1ec90ce8f
* Using umlauts in your addon: http://www.esoui.com/forums/showthread.php?t=4188
* Using umlauts in your addon: http://www.esoui.com/forums/showthread.php?t=4188