morattack.blogg.se

What programming language are wow addons made in
What programming language are wow addons made in








Responding to events Main article: Handling eventsĪlmost every action in the game is an Event which tells the UI that something happened.

  • For VS Code the Lua extension by Sumneko adds IntelliSense features like code completion.
  • Not everything is documented so we generally look through the code from Blizzard or other addons. If you don't know what a specific API does it's best to just reference it in FrameXML.
  • Export, clone, download or bookmark Blizzard's user interface code a.k.a.
  • There is the /dump slash command for general debugging, /etrace for showing events and /fstack for debugging visible UI elements.
  • what programming language are wow addons made in

  • Get an error reporting addon like BugSack or turn on /console scriptErrors 1.
  • When updating addon code use /reload to test the new changes, you may want to put it on a macro hotkey as well as temporarily disabling any unnecessary addons that would increase loading time.
  • World of Warcraft\_retail_\Interface\AddOns\HelloWorld Go to your AddOns folder and create a new folder with the following files: We won't be using XML since most things that are possible in XML can also be done in Lua. To quickly turn scripts like this into an addon, just remove the "/run" part and paste it into Creating an AddOnĪn addon consists of Lua/XML files and a TOC file. You can execute Lua scripts from the chat window or in a macro with the /run or /script command.

    what programming language are wow addons made in

  • A simple text editor like VS Code or Notepad++.
  • You need a basic understanding of Lua, otherwise see Introduction to Lua or other tutorials.









  • What programming language are wow addons made in