| 1 | local i=CzWoW_interface;
|
|---|
| 2 | local n=CzWoW_interface_entoname;
|
|---|
| 3 | --GameMenuFrame begin
|
|---|
| 4 | CzWoW_MAIN_MENU:SetText(i["MAIN_MENU"]);
|
|---|
| 5 | GameMenuButtonOptions:SetText(i["VIDEOOPTIONS_MENU"]);
|
|---|
| 6 | GameMenuButtonSoundOptions:SetText(i["SOUNDOPTIONS_MENU"]);
|
|---|
| 7 | GameMenuButtonUIOptions:SetText(i["UIOPTIONS_MENU"]);
|
|---|
| 8 | GameMenuButtonKeybindings:SetText(i["KEY_BINDINGS"]);
|
|---|
| 9 | GameMenuButtonMacros:SetText(i["MACROS"]);
|
|---|
| 10 | GameMenuButtonLogout:SetText(i["LOGOUT"]);
|
|---|
| 11 | GameMenuButtonQuit:SetText(i["EXIT_GAME"]);
|
|---|
| 12 | GameMenuButtonContinue:SetText(i["RETURN_TO_GAME"]);
|
|---|
| 13 | --GameMenuFrame end
|
|---|
| 14 |
|
|---|
| 15 | --OptionsFrame begin
|
|---|
| 16 | CzWoW_VIDEOOPTIONS_MENU:SetText(i["VIDEOOPTIONS_MENU"]);
|
|---|
| 17 | OptionsFrameResolutionDropDownLabel:SetText(i["RESOLUTION"]);
|
|---|
| 18 | --OptionsFrame end
|
|---|
| 19 |
|
|---|
| 20 | --hooksecurefunc(GameTooltip, "SetOwner", function(a, object) DEFAULT_CHAT_FRAME:AddMessage(object:GetName()); end);
|
|---|
| 21 |
|
|---|
| 22 | --GameTooltipFrame begin
|
|---|
| 23 | local oldTooltipSetText=GameTooltip["SetText"];
|
|---|
| 24 | GameTooltip["SetText"]=function(object, text, r, g, b, alphaValue, textWrap)
|
|---|
| 25 | if type(n[text])=="string" then
|
|---|
| 26 | text=i[n[text]];
|
|---|
| 27 | end
|
|---|
| 28 | oldTooltipSetText(object, text, r, g, b, alphaValue, textWrap);
|
|---|
| 29 | end
|
|---|
| 30 | --hooksecurefunc(GameTooltip, "SetText", TooltipSetText);
|
|---|
| 31 |
|
|---|
| 32 | --GameTooltipFrame end
|
|---|