View Single Post
02-26-24, 10:28 PM   #50
Hubb777
A Flamescale Wyrmkin
 
Hubb777's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2024
Posts: 122
Originally Posted by Fizzlemizz View Post
Because you refuse to read and consider what has been written. In the last post, not even considered what was asked.

Most parts of an addon are created, positioned, formatted etc. in relation to something else depending on what you want your addon to do and how you want it to look and work. Not being a mind reader (and I can't read you screen), I'm not about to decide that for you, all I can do is offer suggestions on how you might do things. It's up to you work that information (if you think it might be useful) into your addon.

With that in mind, not every code block is literal, someframe, somedrawlayer, somefont are for you to replace with whatever works for you and your addon.
Hello. Sorry for the misunderstanding. It’s just that English is not my native language (I’m writing from the Czech Republic). For some of the text I have to use Google Translate (which makes it even more difficult to understand).

I'll try to figure out the issue again.
As I understand it, I can place this part of the code in the code file db.lua
Lua Code:
  1. addon.Texts = {
  2.     Rewards = {
  3.         enUS = "Possible Rewards",
  4.         deDE = "German for Possible Rewards",
  5.     },
  6.     Pets = {
  7.         enUS = "List of pets",
  8.         deDE = "German List of pets",
  9.     },
  10. }
And this part in code table.lua
Lua Code:
  1. local Pets = someframe:CreateFontString(nil, somedrawlayer, somefont)
  2. Pets:SetText(addon.Texts.Rewards[GetLocal()] or addon.Texts.Rewards.enUS)
  Reply With Quote