you could do this with an AceConfig (not to be confused with AceGUI) and some Multiselect groups.... granted it be some strange function magic to make it work.
In non English locales they have a possibly of using what's called a Multi-byte Character.
However, for my experiance i have only seen patters that detect if the first byte is a multi as in character names.
local MULTIBYTE_FIRST_CHAR = "^([\192-\255]?%a?[\128-\191]*)" -- taken from LibAlts-1.0
however you should be able to modify it by simply removing the ^ char at the beggining as that indicates the front of the string. Building off what Lombra gave:
would recommend you break your logic statements down one at a time.
function LvlWizRev_BarShow()
print("Barenable:", WizOptionsRev.Barenable)
if WizOptionsRev.Barenable == false then
print("Maxlvl:", WizOptionsRev.Maxlvl)
if WizOptionsRev.Maxlvl == false then
print("Hiding Frame")
LvlWizRevFrame:Hide()
DEFAULT_CHAT_FRAME:AddMessage(LWR_CSTR_HIDE)
end
else
print("Showing Frame")
LvlWizRevFrame:Show()
end
end
if not _G then
[B]--what goes here?[/B]
else
local _G = _G ---btw, this does nothing, as the local disappears when the if-then closes
end
IIRC, unless you use the API by calling it from with in your localized _G reference, then this optimization is quite useless. Simply putting local _G = _G at the top of the file has no functional bennifit.
http://paste.wowace.com/3027/ ----As this is just a pastey, copy and paste in to a file.
---- do a find and replace on ' SAVED_VARIABLE_NAME '
---- with the actual name of the saved variable in the ToC File.
Is your cookie. It accounts for things like different toons being in different guilds and even changing guilds mid session.
It also adds in using LDB. So if this particular problem with gold and events ties into your other thread about minimap buttons n' such... then this paste should solve it :)
0
0
You cannot sort a Dictionary in Lua. Only indexed tables.
0
http://www.wowace.com/addons/autopartybuttons/
0
0
However, for my experiance i have only seen patters that detect if the first byte is a multi as in character names.
however you should be able to modify it by simply removing the ^ char at the beggining as that indicates the front of the string. Building off what Lombra gave:
might work
0
0
0
IIRC, unless you use the API by calling it from with in your localized _G reference, then this optimization is quite useless. Simply putting local _G = _G at the top of the file has no functional bennifit.
0
0
wwwdot, have you considered joining us in IRC on freenode/#wowace
0
Nothing needs to be done to your SV when you logout, the client takes care of it.
0
But has your understanding increased ?
that is all that really matters :)
0
----As this is just a pastey, copy and paste in to a file.
---- do a find and replace on ' SAVED_VARIABLE_NAME '
---- with the actual name of the saved variable in the ToC File.
Is your cookie. It accounts for things like different toons being in different guilds and even changing guilds mid session.
It also adds in using LDB. So if this particular problem with gold and events ties into your other thread about minimap buttons n' such... then this paste should solve it :)
0
0
Please fix your tabbing when posting to the forum, rather interesting to read code blocks that are all over the place
..
ok a few ways to go about this, depending on preference and practice.
the "SavedVariable" here is the actual variable in the ToC file being saved, or somewhere on a table that is being saved to said SavedVariable