View Single Post
05/18/18, 09:48 AM   #1
ziggr
 
ziggr's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 27
[outdated] Are any of the strings from an addon's .txt file available within Lua?

Are any of the strings from an addon's .txt file available within Lua?

Specifically, I'd love to reuse some of the strings from WritWorthy.txt:

Code:
## Title: WritWorthy 4.0.6  <-- version here
## Version 4.0.6            <-- and here
## Last Updated: 2018-05-04
## APIVersion: 100022 100023
## Description: Master Writs: calculate material costs and automate crafting.
## Author: ziggr
...
as parameters to LibAddonMenu
Lua Code:
  1. local panelData = {
  2.     type                = "panel"
  3. ,   name                = "WritWorthy"
  4. ,   displayName         = "WritWorthy"
  5. ,   author              = "ziggr"
  6. ,   version             = "4.0.6"   <-- repeated here
  7. ,   registerForRefresh  = false
  8. ,   registerForDefaults = false
  9. }
  10. local panel = LAM2:RegisterAddonPanel(lam_addon_id, panelData)
  Reply With Quote