/branches
-- -------------------------------------- |
-- TellMeWhen |
-- by Nephthys <Drunken Monkeys> of Hyjal |
-- -------------------------------------- |
 |
NEEDTOKNOW.MAXBARSPACING = 24; |
NEEDTOKNOW.MAXBARPADDING = 12; |
end |
end |
function NeedToKnow.LockToggle() |
if ( NeedToKnow_Settings["Locked"] ) then |
NeedToKnow_Settings["Locked"] = false; |
else |
NeedToKnow_Settings["Locked"] = true; |
end |
NeedToKnow.Show(true); |
PlaySound("UChatScrollButton"); |
NeedToKnow.last_cast = {}; |
NeedToKnow.Update(); |
end |
-- ----------------------- |
-- INTERFACE OPTIONS PANEL |
-- ----------------------- |
-- ----------------------------- |
-- INTERFACE OPTIONS PANEL: MAIN |
-- ----------------------------- |
function NeedToKnow.UIPanel_OnLoad(self) |
local panelName = self:GetName(); |
local versionText = getglobal(panelName.."Version"); |
local subText1 = getglobal(panelName.."SubText1"); |
local subText2 = getglobal(panelName.."SubText2"); |
local numberbarsLabel = getglobal(panelName.."NumberbarsLabel"); |
local fixedDurationLabel = getglobal(panelName.."FixedDurationLabel"); |
local barTextureLabel = getglobal(panelName.."BarTextureSliderLabel"); |
local barFontLabel = getglobal(panelName.."BarFontSliderLabel"); |
local backgroundColorLabel = getglobal(panelName.."BackgroundColorButtonLabel"); |
versionText:SetText(NEEDTOKNOW.VERSION); |
subText1:SetText(NEEDTOKNOW.UIPANEL_SUBTEXT1); |
subText2:SetText(NEEDTOKNOW.UIPANEL_SUBTEXT2); |
local numberbarsLabel = _G[panelName.."NumberbarsLabel"]; |
local fixedDurationLabel = _G[panelName.."FixedDurationLabel"]; |
_G[panelName.."Version"]:SetText(NEEDTOKNOW.VERSION); |
_G[panelName.."SubText1"]:SetText(NEEDTOKNOW.UIPANEL_SUBTEXT1); |
numberbarsLabel:SetText(NEEDTOKNOW.UIPANEL_NUMBERBARS); |
numberbarsLabel:SetWidth(50); |
fixedDurationLabel:SetText(NEEDTOKNOW.UIPANEL_FIXEDDURATION); |
fixedDurationLabel:SetWidth(50); |
barTextureLabel:SetText(NEEDTOKNOW.UIPANEL_BARTEXTURE); |
barFontLabel:SetText("Bar Font"); -- FIXME: Localize |
backgroundColorLabel:SetText(NEEDTOKNOW.UIPANEL_BACKGROUNDCOLOR); |
end |
function NeedToKnow.UIPanel_OnShow() |
NeedToKnow_OldSettings = CopyTable(NeedToKnow_Settings); |
NeedToKnow.bUIPanelVisible = true; |
NeedToKnow.UIPanel_Update() |
-- Why is this here? Would it be better to use a self:IsVisible() check? -- lieandswell |
NeedToKnow.UIPanel_Update(); |
end |
function NeedToKnow.UIPanel_OnHide() |
NeedToKnow.bUIPanelVisible = nil; |
-- Why is this here? Would it be better to use a self:IsVisible() check? -- lieandswell |
end |
function NeedToKnow.UIPanel_Update() |
if ( not NeedToKnow.bUIPanelVisible ) then return ; end |
if ( not NeedToKnow.bUIPanelVisible ) then return ; end |
-- Why is this here? Would it be better to use a self:IsVisible() check? -- lieandswell |
local settings = NeedToKnow_Settings; |
local panelName = "InterfaceOptionsNeedToKnowPanel"; |
NeedToKnow.NumberbarsWidget_Update(groupID); |
_G[panelName.."Group"..groupID.."FixedDurationBox"]:SetText(settings["Spec"][NEEDTOKNOW.CURRENTSPEC]["Groups"][groupID]["FixedDuration"] or ""); |
end |
_G[panelName.."BackgroundColorButtonNormalTexture"]:SetVertexColor(unpack(NeedToKnow_Settings["BkgdColor"])); |
local barSpacingSlider = _G[panelName.."BarSpacingSlider"]; |
barSpacingSlider:SetMinMaxValues(0, NEEDTOKNOW.MAXBARSPACING); |
barSpacingSlider:SetValue(settings.BarSpacing); |
local barTextureSlider = _G[panelName.."BarTextureSlider"]; |
barTextureSlider:SetMinMaxValues(1, #(textureList)); |
barTextureSlider:SetValueStep(1); |
getglobal(panelName.."BarTextureSliderLow"):SetText(''); |
getglobal(panelName.."BarTextureSliderHigh"):SetText(''); |
local textureLabel = getglobal(panelName.."BarTextureSliderLabel"); |
textureLabel:SetText(settings["BarTexture"]); |
local fn = textureLabel:GetFont(); |
textureLabel:SetFont(fn, 10); -- There's got to be some way to say this in the xml |
getglobal(panelName.."BarTextureSliderText"):SetText('Bar Texture'); |
for i=1, #(textureList) do |
if textureList[i] == settings.BarTexture then |
barTextureSlider:SetValue(i); |
end |
end |
local barFontSlider = _G[panelName.."BarFontSlider"]; |
barFontSlider:SetMinMaxValues(1, #(fontList)); |
barFontSlider:SetValueStep(1); |
getglobal(panelName.."BarFontSliderLow"):SetText(''); |
getglobal(panelName.."BarFontSliderHigh"):SetText(''); |
getglobal(panelName.."BarFontSliderText"):SetText('Bar Font'); -- Fixme: Localize? What does this do? |
for i=1, #(fontList) do |
if ( LSM:Fetch("font", fontList[i]) == settings.BarFont ) then |
barFontSlider:SetValue(i); |
local lbl = getglobal(panelName.."BarFontSliderLabel"); |
lbl:SetText(fontList[i]); |
lbl:SetFont(fn, 10); |
end |
end |
local barPaddingSlider = _G[panelName.."BarPaddingSlider"]; |
barPaddingSlider:SetMinMaxValues(0, NEEDTOKNOW.MAXBARPADDING); |
barPaddingSlider:SetValue(settings.BarPadding); |
NeedToKnow.LockUnlockButton_Update(); |
end |
function NeedToKnow.GroupEnableButton_Update(groupID) |
function NeedToKnow.NumberbarsWidget_Update(groupID) |
local widgetName = "InterfaceOptionsNeedToKnowPanelGroup"..groupID.."NumberbarsWidget"; |
local text = getglobal(widgetName.."Text"); |
local leftButton = getglobal(widgetName.."LeftButton"); |
local rightButton = getglobal(widgetName.."RightButton"); |
local text = _G[widgetName.."Text"]; |
local leftButton = _G[widgetName.."LeftButton"]; |
local rightButton = _G[widgetName.."RightButton"]; |
local numberBars = NeedToKnow_Settings["Spec"][NEEDTOKNOW.CURRENTSPEC]["Groups"][groupID]["NumberBars"]; |
text:SetText(numberBars); |
leftButton:Enable(); |
NeedToKnow.Update(); |
end |
function NeedToKnow.UpdateBarTextureSlider(info, value) |
getglobal(info:GetName().."Label"):SetText(textureList[value]); |
NeedToKnow_Settings["BarTexture"] = textureList[value]; |
function NeedToKnow.Reset() |
NeedToKnow_Settings = CopyTable(NEEDTOKNOW.DEFAULTS); |
NeedToKnow_Settings["Spec"][1]["Groups"][1]["Enabled"] = true; |
NeedToKnow_Settings["Spec"][2]["Groups"][1]["Enabled"] = true; |
for groupID = 1, NEEDTOKNOW.MAXGROUPS do |
local group = _G["NeedToKnow_Group"..groupID]; |
group:ClearAllPoints(); |
group:SetPoint("TOPLEFT", "UIParent", "TOPLEFT", 100, -100 - 100*groupID); |
end |
NeedToKnow.Update(); |
NeedToKnow.UIPanel_Update(); |
end |
function NeedToKnow.UpdateBarFontSlider(info, value) |
local fontName = fontList[value]; |
local fontPath = LSM:Fetch("font", fontName); |
getglobal(info:GetName().."Label"):SetText(fontName); |
NeedToKnow_Settings["BarFont"] = fontPath; |
function NeedToKnow.Cancel() |
NeedToKnow_Settings = CopyTable(NeedToKnow_OldSettings); |
NeedToKnow.Update(); |
end |
-- ----------------------------------- |
-- INTERFACE OPTIONS PANEL: APPEARANCE |
-- ----------------------------------- |
function NeedToKnow.UIPanel_Appearance_OnLoad(self) |
local panelName = self:GetName(); |
_G[panelName.."Version"]:SetText(NEEDTOKNOW.VERSION); |
_G[panelName.."SubText1"]:SetText(NEEDTOKNOW.UIPANEL_SUBTEXT1); |
end |
function NeedToKnow.UIPanel_Appearance_OnShow() |
NeedToKnow.UIPanel_Appearance_Update(); |
end |
function NeedToKnow.UIPanel_Appearance_Update() |
local settings = NeedToKnow_Settings; |
local panelName = "InterfaceOptionsNeedToKnowAppearancePanel"; |
local barSpacingSlider = _G[panelName.."BarSpacingSlider"]; |
local barPaddingSlider = _G[panelName.."BarPaddingSlider"]; |
_G[panelName.."BackgroundColorButtonNormalTexture"]:SetVertexColor(unpack(settings.BkgdColor)); |
barSpacingSlider:SetMinMaxValues(0, NEEDTOKNOW.MAXBARSPACING); |
barSpacingSlider:SetValue(settings.BarSpacing); |
barPaddingSlider:SetMinMaxValues(0, NEEDTOKNOW.MAXBARPADDING); |
barPaddingSlider:SetValue(settings.BarPadding); |
NeedToKnow.UpdateBarTextureDropDown(); |
NeedToKnow.UpdateBarFontDropDown(); |
end |
function NeedToKnow.ChooseColor(variable) |
info = UIDropDownMenu_CreateInfo(); |
info.r, info.g, info.b, info.opacity = unpack(NeedToKnow_Settings[variable]); |
end |
end |
function NeedToKnow.LockUnlockButton_Update() |
local text = getglobal("InterfaceOptionsNeedToKnowPanelLockUnlockButtonText"); |
if ( NeedToKnow_Settings["Locked"] ) then |
text:SetText(NEEDTOKNOW.UIPANEL_UNLOCK); |
else |
text:SetText(NEEDTOKNOW.UIPANEL_LOCK); |
end |
function NeedToKnow.UpdateBarTextureDropDown() |
_G["InterfaceOptionsNeedToKnowAppearancePanelBarTextureDropDownText"]:SetText(NeedToKnow_Settings["BarTexture"]); |
end |
function NeedToKnow.LockToggle() |
if ( NeedToKnow_Settings["Locked"] ) then |
NeedToKnow_Settings["Locked"] = false; |
else |
NeedToKnow_Settings["Locked"] = true; |
end |
NeedToKnow.Show(true); |
PlaySound("UChatScrollButton"); |
NeedToKnow.last_cast = {}; |
NeedToKnow.Update(); |
function NeedToKnow.BarTextureDropDown(self) |
if ( NeedToKnow_Settings ) then |
for key, textureName in ipairs(textureList) do |
info = UIDropDownMenu_CreateInfo(); |
info.value = textureName; |
info.text = textureName; |
info.checked = ( NeedToKnow_Settings["BarTexture"] == textureName ); |
info.func = NeedToKnow.ChooseBarTexture; |
UIDropDownMenu_AddButton(info); |
end |
end |
end |
function NeedToKnow.Reset() |
NeedToKnow_Settings = CopyTable(NEEDTOKNOW.DEFAULTS); |
NeedToKnow_Settings["Spec"][1]["Groups"][1]["Enabled"] = true; |
NeedToKnow_Settings["Spec"][2]["Groups"][1]["Enabled"] = true; |
for groupID = 1, NEEDTOKNOW.MAXGROUPS do |
local group = getglobal("NeedToKnow_Group"..groupID); |
group:ClearAllPoints(); |
group:SetPoint("TOPLEFT", "UIParent", "TOPLEFT", 100, -100 - 100*groupID); |
function NeedToKnow.ChooseBarTexture() |
NeedToKnow_Settings["BarTexture"] = this.value; |
NeedToKnow.Update(); |
NeedToKnow.UpdateBarTextureDropDown(); |
end |
function NeedToKnow.UpdateBarFontDropDown() |
local settings = NeedToKnow_Settings; |
local barFontDropdownText = _G["InterfaceOptionsNeedToKnowAppearancePanelBarFontDropDownText"]; |
for i=1, #(fontList) do |
if ( LSM:Fetch("font", fontList[i]) == settings.BarFont ) then |
barFontDropdownText:SetText(fontList[i]); |
end |
end |
NeedToKnow.Update(); |
NeedToKnow.UIPanel_Update(); |
end |
function NeedToKnow.Cancel() |
NeedToKnow_Settings = CopyTable(NeedToKnow_OldSettings); |
NeedToKnow.Update(); |
function NeedToKnow.BarFontDropDown(self) |
if ( NeedToKnow_Settings ) then |
for key, fontName in ipairs(fontList) do |
local fontPath = LSM:Fetch("font", fontName); |
info = UIDropDownMenu_CreateInfo(); |
info.value = fontPath; |
info.text = fontName; |
info.checked = ( NeedToKnow_Settings["BarFont"] == fontPath ); |
info.func = NeedToKnow.ChooseBarFont; |
UIDropDownMenu_AddButton(info); |
end |
end |
end |
function NeedToKnow.ChooseBarFont() |
NeedToKnow_Settings["BarFont"] = this.value; |
NeedToKnow.Update(); |
NeedToKnow.UpdateBarFontDropDown(); |
end |
-- -------- |
-- BAR GUI |
-- -------- |
hasEditBox = 1, |
maxLetters = 255, |
OnAccept = function(iconNumber) |
local text = getglobal(this:GetParent():GetName().."EditBox"):GetText(); |
local text = _G[this:GetParent():GetName().."EditBox"]:GetText(); |
local variable = this:GetParent().variable; |
if ( nil ~= variable ) then |
NeedToKnow.BarMenu_ChooseName(text, variable); |
end |
end, |
EditBoxOnEnterPressed = function(iconNumber) |
local text = getglobal(this:GetParent():GetName().."EditBox"):GetText(); |
local text = _G[this:GetParent():GetName().."EditBox"]:GetText(); |
local variable = this:GetParent().variable; |
if ( nil ~= variable ) then |
NeedToKnow.BarMenu_ChooseName(text, variable); |
if ( ChatFrameEditBox:IsVisible() ) then |
ChatFrameEditBox:SetFocus(); |
end |
getglobal(this:GetName().."EditBox"):SetText(""); |
_G[this:GetName().."EditBox"]:SetText(""); |
end, |
timeout = 0, |
whileDead = 1, |
}; |
NeedToKnow.BarMenu_SubMenus.Opt_HARMFUL = NeedToKnow.BarMenu_SubMenus.Opt_HELPFUL; |
function NeedToKnow.Bar_OnEnter(self) |
local tooltip = getglobal("GameTooltip"); |
GameTooltip_SetDefaultAnchor(tooltip, self); |
tooltip:AddLine(NEEDTOKNOW.BAR_TOOLTIP1, HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b, 1); |
tooltip:AddLine(NEEDTOKNOW.BAR_TOOLTIP2, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1); |
tooltip:Show(); |
end |
function NeedToKnow.Bar_OnMouseUp(self, button) |
if ( button == "RightButton" ) then |
PlaySound("UChatScrollButton"); |
PlaySound("UChatScrollButton"); |
NeedToKnow.CurrentBar["barID"] = self:GetID(); |
NeedToKnow.CurrentBar["groupID"] = self:GetParent():GetID(); |
ToggleDropDownMenu(1, nil, getglobal(self:GetName().."DropDown"), "cursor", 0, 0); |
end |
ToggleDropDownMenu(1, nil, _G[self:GetName().."DropDown"], "cursor", 0, 0); |
end |
end |
function NeedToKnow.BarMenu_AddButton(barSettings, i_desc, i_parent) |
local listFrame = _G["DropDownList"..level]; |
local index = listFrame and (listFrame.numButtons) or 1; |
local listFrameName = listFrame:GetName(); |
local button = getglobal(listFrameName.."Button"..index); |
local button = _G[listFrameName.."Button"..index]; |
button.extraInfo = info.value; |
end |
end |
local button = NeedToKnow.BarMenu_GetItem(NeedToKnow.BarMenu_GetItemLevel(self), self.value); |
if ( button ) then |
local checkName = button:GetName() .. "Check"; |
getglobal(checkName):Hide(); |
_G[checkName]:Hide(); |
button.checked = false; |
end |
end |
local listFrameName = listFrame:GetName(); |
local n = listFrame.numButtons; |
for index=1,n do |
local button = getglobal(listFrameName.."Button"..index); |
local button = _G[listFrameName.."Button"..index]; |
local txt = button.value; |
if ( txt == i_valueName ) then |
return button; |
local button = NeedToKnow.BarMenu_GetItem(i_level, i_valueName); |
if ( button ) then |
local checkName = button:GetName() .. "Check"; |
local check = getglobal(checkName); |
local check = _G[checkName]; |
if ( i_bCheck ) then |
check:Show(); |
button.checked = true; |
NeedToKnow.BarMenu_SubMenus.Options = Opt; |
local button = NeedToKnow.BarMenu_GetItem(1, "Options"); |
if button then |
local arrow = getglobal(button:GetName().."ExpandArrow") |
local arrow = _G[button:GetName().."ExpandArrow"] |
local lbl = "" |
if #Opt == 0 then |
lbl = lbl .. "No " |
local dialog = StaticPopup_Show("NEEDTOKNOW.CHOOSENAME_DIALOG"); |
dialog.variable = this.value.variable; |
local edit = getglobal(dialog:GetName().."EditBox"); |
local edit = _G[dialog:GetName().."EditBox"]; |
local groupID = NeedToKnow.CurrentBar["groupID"]; |
local barID = NeedToKnow.CurrentBar["barID"]; |
local barSettings = NeedToKnow_Settings["Spec"][NEEDTOKNOW.CURRENTSPEC]["Groups"][groupID]["Bars"][barID]; |
-- ------------- |
function NeedToKnow.Resizebutton_OnEnter(self) |
local tooltip = getglobal("GameTooltip"); |
local tooltip = _G["GameTooltip"]; |
GameTooltip_SetDefaultAnchor(tooltip, self); |
tooltip:AddLine(NEEDTOKNOW.RESIZE_TOOLTIP, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1); |
tooltip:Show(); |
-- group:ClearAllPoints(); |
-- group:SetPoint("TOPLEFT", UIParent, "BOTTOMLEFT", group.oldX, group.oldY); |
self.oldCursorX, self.oldCursorY = GetCursorPosition(UIParent); |
self.oldWidth = getglobal(group:GetName().."Bar1"):GetWidth(); |
self.oldWidth = _G[group:GetName().."Bar1"]:GetWidth(); |
self:SetScript("OnUpdate", NeedToKnow.Sizing_OnUpdate); |
end |
function NeedToKnow.SetWidth(groupID, width) |
for barID = 1, NeedToKnow_Settings["Spec"][NEEDTOKNOW.CURRENTSPEC]["Groups"][groupID]["NumberBars"] do |
local bar = getglobal("NeedToKnow_Group"..groupID.."Bar"..barID); |
local background = getglobal(bar:GetName().."Background"); |
local text = getglobal(bar:GetName().."Text"); |
local bar = _G["NeedToKnow_Group"..groupID.."Bar"..barID]; |
local background = _G[bar:GetName().."Background"]; |
local text = _G[bar:GetName().."Text"]; |
bar:SetWidth(width); |
text:SetWidth(width-60); |
background:SetWidth(width + 2*NeedToKnow_Settings["BarPadding"]); |
self:RegisterForDrag("LeftButton"); |
</OnLoad> |
<OnEnter> |
NeedToKnow.Bar_OnEnter(self, motion); |
local tooltip = _G["GameTooltip"]; |
tooltip:SetOwner(self:GetParent(), "ANCHOR_TOPLEFT"); |
tooltip:AddLine(NEEDTOKNOW.BAR_TOOLTIP1, HIGHLIGHT_FONT_COLOR.r, HIGHLIGHT_FONT_COLOR.g, HIGHLIGHT_FONT_COLOR.b, 1); |
tooltip:AddLine(NEEDTOKNOW.BAR_TOOLTIP2, NORMAL_FONT_COLOR.r, NORMAL_FONT_COLOR.g, NORMAL_FONT_COLOR.b, 1); |
tooltip:Show(); |
</OnEnter> |
<OnLeave> |
GameTooltip:Hide(); |
-- --------------------- |
-- ---------------------- |
-- NeedToKnow |
-- by Nephthys of Hyjal |
-- updated by |
-- kitjan |
-- Bilt of Lightninghoof |
-- lieandswell@yahoo.com |
-- --------------------- |
-- by Kitjan, lieandswell |
-- ---------------------- |
if not trace then trace = print end |
-- SharedMedia Support |
-- ------------------- |
NeedToKnow.LSM = LibStub("LibSharedMedia-3.0", true) |
if not NeedToKnow.LSM:Fetch("statusbar", "Aluminum", true) then NeedToKnow.LSM:Register("statusbar", "Aluminum", [[Interface\Addons\NeedToKnow\Textures\Aluminum.tga]]) end |
## Interface: 30300 |
## Title: NeedToKnow |
## Author: Kitjan |
## Version: 3.1.1 |
## Notes: Buff/debuff timer bars, original code by Nephthys of Hyjal-US. Additional work by lieandswell and Bilt |
## Author: Kitjan, lieandswell |
## Version: 3.1.2 |
## Notes: Timer bars for buffs, debuffs, cooldowns, etc. |
## X-Credits: Bilt, Fxfighter EU-Echsenkessel, metalchoir, sp00n, Vlakarados, wowui.cn |
## X-Category: Buffs, Combat |
## OptionalDeps: LibStub,LibSharedMedia-3.0 |
## DefaultState: Enabled |
## LoadOnDemand: 0 |
## DefaultState: enabled |
## SavedVariablesPerCharacter: NeedToKnow_Settings |
libs\LibStub\LibStub.lua |
libs\CallbackHandler-1.0\CallbackHandler-1.0.lua |
 |
-- If you want to be super helpful, you can translate this stuff into whatever non-enUS language you happen to know. Email them to me and I'll credit you. ZOMG 15 minutes of fame. Neph <lieandswell@yahoo.com> |
--[[ |
If you want to be super helpful, you can translate this stuff into whatever non-enUS language you happen to know and we'll credit you. Please post the translations as a ticket on CurseForge.com (http://wow.curseforge.com/addons/need-to-know/tickets/) or email them to us (lieandswell@yahoo.com). |
Thanks a bunch! |
--]] |
NEEDTOKNOW = {}; |
-- Untranslated defaults |
-- Define defaults in enUS |
NEEDTOKNOW.BAR_TOOLTIP1 = "NeedToKnow"; |
NEEDTOKNOW.BAR_TOOLTIP2 = "Right click bars to configure. More options in the Blizzard interface options menu. Type /needtoknow to lock and enable."; |
NEEDTOKNOW.RESIZE_TOOLTIP = "Click and drag to change size"; |
NEEDTOKNOW.BARMENU_ENABLE = "Enable bar"; |
NEEDTOKNOW.BARMENU_CHOOSENAME = "Choose buff/debuff to time"; |
NEEDTOKNOW.CHOOSENAME_DIALOG = "Enter the name of the buff or debuff to time with this bar" |
NEEDTOKNOW.BARMENU_CHOOSEUNIT = "Unit to monitor"; |
NEEDTOKNOW.BARMENU_PLAYER = "Player"; |
NEEDTOKNOW.BARMENU_TARGET = "Target"; |
NEEDTOKNOW.BARMENU_FOCUS = "Focus"; |
NEEDTOKNOW.BARMENU_PET = "Pet"; |
NEEDTOKNOW.BARMENU_VEHICLE = "Vehicle"; |
NEEDTOKNOW.BARMENU_TARGETTARGET = "Target of Target"; |
NEEDTOKNOW.BARMENU_BUFFORDEBUFF = "Bar Type"; |
NEEDTOKNOW.BARMENU_SPELLID = "Use SpellID"; |
NEEDTOKNOW.BARMENU_HELPFUL = "Buff"; |
NEEDTOKNOW.BARMENU_HARMFUL = "Debuff"; |
NEEDTOKNOW.BARMENU_ONLYMINE = "Only show if cast by self"; |
NEEDTOKNOW.BARMENU_BARCOLOR = "Bar color"; |
NEEDTOKNOW.BARMENU_CLEARSETTINGS = "Clear settings"; |
NEEDTOKNOW.UIPANEL_SUBTEXT1 = "These options allow you to customize NeedToKnow's timer bars."; |
-- NEEDTOKNOW.UIPANEL_SUBTEXT2 = "Bars work when locked. When unlocked, you can move/size bar groups and right click individual bars for more settings. You can also type '/needtoknow' or '/ntk' to lock/unlock."; |
NEEDTOKNOW.UIPANEL_BARGROUP = "Group "; |
NEEDTOKNOW.UIPANEL_NUMBERBARS = "Number of bars"; |
NEEDTOKNOW.UIPANEL_FIXEDDURATION = "Max bar duration"; |
NEEDTOKNOW.UIPANEL_LOCK = "Lock"; |
NEEDTOKNOW.UIPANEL_UNLOCK = "Unlock"; |
NEEDTOKNOW.UIPANEL_TOOLTIP_ENABLEGROUP = "Show and enable this group of bars"; |
NEEDTOKNOW.UIPANEL_TOOLTIP_FIXEDDURATION = "Set the maximum length of bars for this group (in seconds). Leave empty to set dynamically per bar."; |
NEEDTOKNOW.UIPANEL_TOOLTIP_BARTEXTURE = "Choose the texture graphic for timer bars"; |
NEEDTOKNOW.CMD_RESET = "reset"; |
NEEDTOKNOW.UIPANEL_CONFIGMODE = "Config mode"; |
NEEDTOKNOW.UIPANEL_CONFIGMODE_TOOLTIP = "Unlock timer bars and make them configurable"; |
NEEDTOKNOW.UIPANEL_PLAYMODE = "Play mode"; |
NEEDTOKNOW.UIPANEL_PLAYMODE_TOOLTIP = "Lock and enable timer bars, making them click-through"; |
NEEDTOKNOW.UIPANEL_APPEARANCE = "Appearance"; |
NEEDTOKNOW.UIPANEL_BACKGROUNDCOLOR = "Background color"; |
NEEDTOKNOW.UIPANEL_BARSPACING = "Bar spacing"; |
NEEDTOKNOW.UIPANEL_BARPADDING = "Bar padding"; |
NEEDTOKNOW.UIPANEL_BARTEXTURE = "Bar texture"; |
NEEDTOKNOW.UIPANEL_BARFONT = "Bar font"; |
NEEDTOKNOW.UIPANEL_FONT = "Font"; |
NEEDTOKNOW.BARMENU_TOTEM = "Totem"; |
NEEDTOKNOW.BARMENU_CASTCD = "Spell Cooldown"; |
NEEDTOKNOW.BARMENU_BUFFCD = "Internal Cooldown"; |
NEEDTOKNOW.USABLE_DURATION_DIALOG = "Enter the cooldown duration triggered by the abilities watched by this bar."; |
-- replace with translations, if available |
if ( GetLocale() == "deDE" ) then |
-- Thanks, sp00n & Fxfighter EU-Echsenkessel! |
-- by sp00n and Fxfighter EU-Echsenkessel |
NEEDTOKNOW.BAR_TOOLTIP1 = "NeedToKnow"; |
NEEDTOKNOW.BAR_TOOLTIP2 = "Rechtsklick auf einen Balken für Einstellungen. Mehr Optionen sind im Blizzard Interface vorhanden. Zum Festsetzen und Aktivieren /needtoknow oder /ntk eingeben."; |
NEEDTOKNOW.RESIZE_TOOLTIP = "Klicken und ziehen, um die GröÃe zu ändern"; |
NEEDTOKNOW.CMD_RESET = "reset"; |
elseif ( GetLocale() == "koKR" ) then |
-- Thanks, metalchoir! |
-- by metalchoir |
NEEDTOKNOW.BAR_TOOLTIP1 = "NeedToKnow"; |
NEEDTOKNOW.BAR_TOOLTIP2 = "ì°?�ë¦: ë©ë´ ë¶ë¬ì¤ê¸°\nì¸ë¶ìµì ? �기본 ?�í°í?ï¿½ì¤ ì¤ì ?�ì ê°ë¥\n/ntk ëª ë ¹ì´ë¡ ì ê·¼ í? �ì ëì¨ ì¬ì©ê°ë¥"; |
NEEDTOKNOW.RESIZE_TOOLTIP = "ëëê·¸: ?�기 ë³ê²½"; |
NEEDTOKNOW.CMD_RESET = "ì´ê¸°í"; |
elseif ( GetLocale() == "ruRU" ) then |
-- Thanks, Vlakarados! |
-- by Vlakarados |
NEEDTOKNOW.BAR_TOOLTIP1 = "NeedToKnow"; |
NEEDTOKNOW.BAR_TOOLTIP2 = "Ðлик пÑавой кнопкой мÑÑи по поло?�е дл? �на?�ÑÑойки. ÐолÑÑе на?�ÑÑоек в ÐнÑеÑÑей? / �ÐодиÑикаÑии / NeedToKnow менÑ. Ðве?�Ñи /needtoknow или /ntk дл? �блокиÑовки и вклÑÑени?."; |
NEEDTOKNOW.RESIZE_TOOLTIP = "�ÐликнÑÑÑ Ð¸ ÑаÑиÑÑ Ð´Ð»? �изменени? �ÑазмеÑа"; |
NEEDTOKNOW.UIPANEL_TOOLTIP_BARTEXTURE = "ÐÑбÑаÑÑ Ñек?�ÑÑÑÑ Ð´Ð»? �поло?."; |
NEEDTOKNOW.CMD_RESET = "�?�бÑо?"; |
else |
elseif ( GetLocale() == "zhCN" ) then |
-- by wowui.cn |
NEEDTOKNOW.BAR_TOOLTIP1 = "NeedToKnow"; |
NEEDTOKNOW.BAR_TOOLTIP2 = "å³é®ç¹å»è®¡æ¶æ¡é ç½®. æ´å¤çé项å¨æ´éªçé¢é项èåé. è¾å ¥ /needtoknow æ¥éå®å¹¶å¯ç¨."; |
NEEDTOKNOW.RESIZE_TOOLTIP = "ç¹å»åæå¨æ¥ä¿®æ¹è®¡æ¶æ¡å°ºå¯¸"; |
NEEDTOKNOW.BARMENU_ENABLE = "å¯ç¨è®¡æ¶æ¡"; |
NEEDTOKNOW.BARMENU_CHOOSENAME = "éæ©éè¦è®¡æ¶çBuff/Debuff"; |
NEEDTOKNOW.CHOOSENAME_DIALOG = "è¾å ¥å¨è¿ä¸ªè®¡æ¶æ¡å 计æ¶çBuffæDebuffç精确åå" |
NEEDTOKNOW.BARMENU_CHOOSEUNIT = "éè¦çè§çåä½"; |
NEEDTOKNOW.BARMENU_PLAYER = "ç©å®¶"; |
NEEDTOKNOW.BARMENU_TARGET = "ç®æ "; |
NEEDTOKNOW.BARMENU_FOCUS = "ç¦ç¹"; |
NEEDTOKNOW.BARMENU_PET = "å® ç©"; |
NEEDTOKNOW.BARMENU_VEHICLE = "è½½å ·"; |
NEEDTOKNOW.BARMENU_TARGETTARGET = "ç®æ çç®æ "; |
NEEDTOKNOW.BARMENU_BUFFORDEBUFF = "Buffè¿æ¯Debuff?"; |
NEEDTOKNOW.BARMENU_BUFF = "Buff"; |
NEEDTOKNOW.BARMENU_DEBUFF = "Debuff"; |
NEEDTOKNOW.BARMENU_ONLYMINE = "ä» æ¾ç¤ºèªèº«æ½æ¾ç"; |
NEEDTOKNOW.BARMENU_BARCOLOR = "计æ¶æ¡é¢è²"; |
NEEDTOKNOW.BARMENU_CLEARSETTINGS = "æ¸ é¤è®¾ç½®"; |
NEEDTOKNOW.UIPANEL_SUBTEXT1 = "è¿äºé项å è®¸ä½ èªå®ä¹Buff/Debuff计æ¶æ¡."; |
NEEDTOKNOW.UIPANEL_SUBTEXT2 = "计æ¶æ¡éå®åæè½æ£å¸¸å·¥ä½. å½è§£éæ¶, ä½ å¯ä»¥ç§»å¨æä¿®æ¹è®¡æ¶æ¡åç»ç大å°, å³é®ç¹å»åç¬ç计æ¶æ¡å¯ä»¥è¿è¡æ´å¤ç设置. ä½ ä¹å¯ä»¥è¾å ¥ '/needtoknow' æ '/ntk' æ¥éå®/解é."; |
NEEDTOKNOW.UIPANEL_BARGROUP = "åç» "; |
NEEDTOKNOW.UIPANEL_NUMBERBARS = "计æ¶æ¡æ°é"; |
NEEDTOKNOW.UIPANEL_FIXEDDURATION = "计æ¶æ¡æ大æç»æ¶é´"; |
NEEDTOKNOW.UIPANEL_BARTEXTURE = "计æ¶æ¡æè´¨"; |
NEEDTOKNOW.UIPANEL_BARSPACING = "计æ¶æ¡ç©ºè·"; |
NEEDTOKNOW.UIPANEL_BARPADDING = "计æ¶æ¡é´è·"; |
NEEDTOKNOW.UIPANEL_BACKGROUNDCOLOR = "èæ¯é¢è²"; |
NEEDTOKNOW.UIPANEL_LOCK = "éå®"; |
NEEDTOKNOW.UIPANEL_UNLOCK = "解é"; |
NEEDTOKNOW.UIPANEL_TOOLTIP_ENABLEGROUP = "æ¾ç¤ºå¹¶å¯ç¨è¿ä¸ªåç»ç计æ¶æ¡"; |
NEEDTOKNOW.UIPANEL_TOOLTIP_FIXEDDURATION = "设置è¿ä¸ªåç»è®¡æ¶æ¡çæ大é¿åº¦ (æç§æ°). ç空为æ¯ä¸ªè®¡æ¶æ¡è®¾ç½®ä¸åçæ°å¼."; |
NEEDTOKNOW.UIPANEL_TOOLTIP_BARTEXTURE = "éæ©è®¡æ¶æ¡çæè´¨å¾å."; |
NEEDTOKNOW.CMD_RESET = "éç½®"; |
elseif ( GetLocale() == "zhTW" ) then |
-- by wowui.cn |
NEEDTOKNOW.BAR_TOOLTIP1 = "NeedToKnow"; |
NEEDTOKNOW.BAR_TOOLTIP2 = "Right click bars to configure. More options in the Blizzard interface options menu. Type /needtoknow to lock and enable."; |
NEEDTOKNOW.RESIZE_TOOLTIP = "Click and drag to change size"; |
NEEDTOKNOW.BARMENU_ENABLE = "Enable bar"; |
NEEDTOKNOW.BARMENU_CHOOSENAME = "Choose buff/debuff to time"; |
NEEDTOKNOW.CHOOSENAME_DIALOG = "Enter the name of the buff or debuff to time with this bar" |
NEEDTOKNOW.BARMENU_CHOOSEUNIT = "Unit to monitor"; |
NEEDTOKNOW.BARMENU_PLAYER = "Player"; |
NEEDTOKNOW.BARMENU_TARGET = "Target"; |
NEEDTOKNOW.BARMENU_FOCUS = "Focus"; |
NEEDTOKNOW.BARMENU_PET = "Pet"; |
NEEDTOKNOW.BARMENU_VEHICLE = "Vehicle"; |
NEEDTOKNOW.BARMENU_TARGETTARGET = "Target of Target"; |
NEEDTOKNOW.BARMENU_BUFFORDEBUFF = "Bar Type"; |
NEEDTOKNOW.BARMENU_SPELLID = "Use SpellID"; |
NEEDTOKNOW.BARMENU_HELPFUL = "Buff"; |
NEEDTOKNOW.BARMENU_HARMFUL = "Debuff"; |
NEEDTOKNOW.BARMENU_ONLYMINE = "Only show if cast by self"; |
NEEDTOKNOW.BARMENU_BARCOLOR = "Bar color"; |
NEEDTOKNOW.BARMENU_CLEARSETTINGS = "Clear settings"; |
NEEDTOKNOW.UIPANEL_SUBTEXT1 = "These options allow you to customize the buff/debuff timer bars."; |
NEEDTOKNOW.UIPANEL_SUBTEXT2 = "Bars work when locked. When unlocked, you can move/size bar groups and right click individual bars for more settings. You can also type '/needtoknow' or '/ntk' to lock/unlock."; |
NEEDTOKNOW.UIPANEL_BARGROUP = "Group "; |
NEEDTOKNOW.UIPANEL_NUMBERBARS = "Number of bars"; |
NEEDTOKNOW.UIPANEL_FIXEDDURATION = "Max bar duration"; |
NEEDTOKNOW.UIPANEL_BARTEXTURE = "Bar texture"; |
NEEDTOKNOW.UIPANEL_BARSPACING = "Bar spacing"; |
NEEDTOKNOW.UIPANEL_BARPADDING = "Bar padding"; |
NEEDTOKNOW.UIPANEL_BACKGROUNDCOLOR = "Background color"; |
NEEDTOKNOW.UIPANEL_LOCK = "Lock"; |
NEEDTOKNOW.UIPANEL_UNLOCK = "Unlock"; |
NEEDTOKNOW.UIPANEL_TOOLTIP_ENABLEGROUP = "Show and enable this group of bars"; |
NEEDTOKNOW.UIPANEL_TOOLTIP_FIXEDDURATION = "Set the maximum length of bars for this group (in seconds). Leave empty to set dynamically per bar."; |
NEEDTOKNOW.UIPANEL_TOOLTIP_BARTEXTURE = "Choose the texture graphic for timer bars"; |
NEEDTOKNOW.CMD_RESET = "reset"; |
NEEDTOKNOW.BAR_TOOLTIP2 = "å³éµé»æè¨ææ¢é ç½®. æ´å¤çé¸é å¨æ´éªä»é¢é¸é èå®è£. è¼¸å ¥ /needtoknow ä¾éå®ä¸¦åç¨."; |
NEEDTOKNOW.RESIZE_TOOLTIP = "é»æåæåä¾ä¿®æ¹è¨ææ¢å°ºå¯¸"; |
NEEDTOKNOW.BARMENU_ENABLE = "åç¨è¨ææ¢"; |
NEEDTOKNOW.BARMENU_CHOOSENAME = "é¸æéè¦è¨æçBuff/Debuff"; |
NEEDTOKNOW.CHOOSENAME_DIALOG = "è¼¸å ¥å¨éåè¨ææ¢å §è¨æçBuffæDebuffç精確åå" |
NEEDTOKNOW.BARMENU_CHOOSEUNIT = "éè¦ç£è¦çå®ä½"; |
NEEDTOKNOW.BARMENU_PLAYER = "ç©å®¶"; |
NEEDTOKNOW.BARMENU_TARGET = "ç®æ¨"; |
NEEDTOKNOW.BARMENU_FOCUS = "ç¦é»"; |
NEEDTOKNOW.BARMENU_PET = "寵ç©"; |
NEEDTOKNOW.BARMENU_VEHICLE = "è¼å ·"; |
NEEDTOKNOW.BARMENU_TARGETTARGET = "ç®æ¨çç®æ¨"; |
NEEDTOKNOW.BARMENU_BUFFORDEBUFF = "Bufféæ¯Debuff?"; |
NEEDTOKNOW.BARMENU_BUFF = "Buff"; |
NEEDTOKNOW.BARMENU_DEBUFF = "Debuff"; |
NEEDTOKNOW.BARMENU_ONLYMINE = "å 顯示èªèº«æ½æ¾ç"; |
NEEDTOKNOW.BARMENU_BARCOLOR = "è¨ææ¢é¡è²"; |
NEEDTOKNOW.BARMENU_CLEARSETTINGS = "æ¸ é¤è¨ç½®"; |
NEEDTOKNOW.UIPANEL_SUBTEXT1 = "éäºé¸é å 許妳èªå®ç¾©Buff/Debuffè¨ææ¢."; |
NEEDTOKNOW.UIPANEL_SUBTEXT2 = "è¨ææ¢éå®å¾æè½æ£å¸¸å·¥ä½. ç¶è§£éæ, 妳å¯ä»¥ç§»åæä¿®æ¹è¨ææ¢åçµç大å°, å³éµé»æå®ç¨çè¨ææ¢å¯ä»¥é²è¡æ´å¤çè¨ç½®. 妳ä¹å¯ä»¥è¼¸å ¥ '/needtoknow' æ '/ntk' ä¾éå®/解é."; |
NEEDTOKNOW.UIPANEL_BARGROUP = "åçµ "; |
NEEDTOKNOW.UIPANEL_NUMBERBARS = "è¨ææ¢æ¸é"; |
NEEDTOKNOW.UIPANEL_FIXEDDURATION = "è¨ææ¢æ大æçºæé"; |
NEEDTOKNOW.UIPANEL_BARTEXTURE = "è¨ææ¢æ質"; |
NEEDTOKNOW.UIPANEL_BARSPACING = "è¨ææ¢ç©ºè·"; |
NEEDTOKNOW.UIPANEL_BARPADDING = "è¨ææ¢éè·"; |
NEEDTOKNOW.UIPANEL_BACKGROUNDCOLOR = "èæ¯é¡è²"; |
NEEDTOKNOW.UIPANEL_LOCK = "éå®"; |
NEEDTOKNOW.UIPANEL_UNLOCK = "解é"; |
NEEDTOKNOW.UIPANEL_TOOLTIP_ENABLEGROUP = "顯示並åç¨éååçµçè¨ææ¢"; |
NEEDTOKNOW.UIPANEL_TOOLTIP_FIXEDDURATION = "è¨ç½®éååçµè¨ææ¢çæ大é·åº¦ (æç§æ¸). ç空çºæ¯åè¨ææ¢è¨ç½®ä¸åçæ¸å¼."; |
NEEDTOKNOW.UIPANEL_TOOLTIP_BARTEXTURE = "é¸æè¨ææ¢çæ質åå."; |
NEEDTOKNOW.CMD_RESET = "éç½®"; |
end |
</Layers> |
<Scripts> |
<OnEnter> |
GameTooltip:SetOwner(this, "ANCHOR_TOPLEFT"); |
GameTooltip:SetOwner(self, "ANCHOR_TOPLEFT"); |
GameTooltip:SetText(NEEDTOKNOW.UIPANEL_TOOLTIP_FIXEDDURATION, nil, nil, nil, nil, 1); |
</OnEnter> |
<OnLeave> |
</Anchor> |
</Anchors> |
</FontString> |
<FontString name="$parentSubText2" inherits="GameFontHighlightSmall" nonspacewrap="false" justifyH="LEFT" justifyV="BOTTOM"> |
<Size> |
<AbsDimension x="0" y="48"/> |
</Size> |
<Anchors> |
<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT"> |
<Offset> |
<AbsDimension x="128" y="16"/> |
</Offset> |
</Anchor> |
<Anchor point="RIGHT"> |
<Offset> |
<AbsDimension x="-24" y="0"/> |
</Offset> |
</Anchor> |
</Anchors> |
</FontString> |
<FontString name="$parentNumberbarsLabel" inherits="GameFontNormalSmall"> |
<Anchors> |
<Anchor point="BOTTOM" relativeTo="$parentSubText1" relativePoint="BOTTOMLEFT"> |
</Anchor> |
</Anchors> |
</Frame> |
<Slider name="$parentBarSpacingSlider" inherits="OptionsSliderTemplate"> |
<Button name="$parentConfigModeButton" inherits="UIPanelButtonTemplate"> |
<Size> |
<AbsDimension x="128" y="22"/> |
</Size> |
<Anchors> |
<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT"> |
<Offset> |
<AbsDimension x="24" y="24"/> |
</Offset> |
</Anchor> |
</Anchors> |
<Scripts> |
<OnLoad> |
_G[self:GetName().."Text"]:SetText(NEEDTOKNOW.UIPANEL_CONFIGMODE); |
</OnLoad> |
<OnClick> |
PlaySound("gsTitleOptionOK"); |
NeedToKnow_Settings["Locked"] = false; |
NeedToKnow.Update(); |
</OnClick> |
<OnEnter> |
GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); |
GameTooltip:SetText(NEEDTOKNOW.UIPANEL_CONFIGMODE_TOOLTIP, nil, nil, nil, nil, 1); |
</OnEnter> |
<OnLeave function="GameTooltip_Hide"/> |
</Scripts> |
<NormalFont inherits="GameFontNormalSmall"/> |
<HighlightFont inherits="GameFontHighlightSmall"/> |
</Button> |
<Button name="$parentPlayModeButton" inherits="UIPanelButtonTemplate"> |
<Size> |
<AbsDimension x="128" y="22"/> |
</Size> |
<Anchors> |
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT"> |
<Offset> |
<AbsDimension x="-24" y="24"/> |
</Offset> |
</Anchor> |
</Anchors> |
<Scripts> |
<OnLoad> |
_G[self:GetName().."Text"]:SetText(NEEDTOKNOW.UIPANEL_PLAYMODE); |
</OnLoad> |
<OnClick> |
PlaySound("gsTitleOptionOK"); |
NeedToKnow_Settings["Locked"] = true; |
NeedToKnow.Update(); |
</OnClick> |
<OnEnter> |
GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); |
GameTooltip:SetText(NEEDTOKNOW.UIPANEL_PLAYMODE_TOOLTIP, nil, nil, nil, nil, 1); |
</OnEnter> |
<OnLeave function="GameTooltip_Hide"/> |
</Scripts> |
<NormalFont inherits="GameFontNormalSmall"/> |
<HighlightFont inherits="GameFontHighlightSmall"/> |
</Button> |
</Frames> |
</Frame> |
<Frame name="InterfaceOptionsNeedToKnowAppearancePanel" hidden="true" parent="InterfaceOptionsFramePanelContainer"> |
<Layers> |
<Layer level="ARTWORK"> |
<FontString name="$parentTitle" text="NeedToKnow" inherits="GameFontNormalLarge" justifyH="LEFT" justifyV="TOP"> |
<Anchors> |
<Anchor point="TOPLEFT"> |
<Offset> |
<AbsDimension x="16" y="-16"/> |
</Offset> |
</Anchor> |
</Anchors> |
</FontString> |
<FontString name="$parentVersion" inherits="GameFontNormalLarge" justifyH="LEFT" justifyV="TOP"> |
<Anchors> |
<Anchor point="LEFT" relativeTo="$parentTitle" relativePoint="RIGHT"> |
<Offset> |
<AbsDimension x="4" y="-0"/> |
</Offset> |
</Anchor> |
</Anchors> |
</FontString> |
<FontString name="$parentSubText1" inherits="GameFontHighlightSmall" nonspacewrap="true" maxLines="3" justifyH="LEFT" justifyV="TOP"> |
<Size> |
<AbsDimension y="24" x="0"/> |
</Size> |
<Anchors> |
<Anchor point="TOPLEFT" relativeTo="$parentTitle" relativePoint="BOTTOMLEFT"> |
<Offset> |
<AbsDimension x="0" y="-8"/> |
</Offset> |
</Anchor> |
<Anchor point="RIGHT"> |
<Offset> |
<AbsDimension x="-24" y="0"/> |
</Offset> |
</Anchor> |
</Anchors> |
</FontString> |
</Layer> |
</Layers> |
<Scripts> |
<OnLoad> |
self.name = NEEDTOKNOW.UIPANEL_APPEARANCE; |
self.parent = "NeedToKnow"; |
self.default = NeedToKnow.Reset; |
-- self.cancel = NeedToKnow.Cancel; |
-- need different way to handle cancel? users might open appearance panel without opening main panel |
InterfaceOptions_AddCategory(self); |
NeedToKnow.UIPanel_Appearance_OnLoad(self) |
</OnLoad> |
<OnShow> |
NeedToKnow.UIPanel_Appearance_OnShow(); |
</OnShow> |
<OnHide> |
</OnHide> |
</Scripts> |
<Frames> |
<Button name="$parentBackgroundColorButton" inherits="NeedToKnow_ColorButtonTemplate"> |
<Anchors> |
<Anchor point="TOPLEFT" relativeTo="$parentSubText1" relativePoint="BOTTOMLEFT"> |
<Offset> |
<AbsDimension x="16" y="-208"/> |
<AbsDimension x="16" y="-16"/> |
</Offset> |
</Anchor> |
</Anchors> |
<Scripts> |
<OnLoad> |
getglobal(self:GetName().."Text"):SetText(NEEDTOKNOW.UIPANEL_BARSPACING); |
_G[self:GetName().."Label"]:SetText(NEEDTOKNOW.UIPANEL_BACKGROUNDCOLOR); |
self:RegisterForClicks("LeftButtonUp"); |
</OnLoad> |
<OnClick> |
NeedToKnow.ChooseColor("BkgdColor"); |
</OnClick> |
</Scripts> |
</Button> |
<Slider name="$parentBarSpacingSlider" inherits="OptionsSliderTemplate"> |
<Anchors> |
<Anchor point="TOPLEFT" relativeTo="$parentBackgroundColorButton" relativePoint="BOTTOMLEFT"> |
<Offset> |
<AbsDimension x="0" y="-32"/> |
</Offset> |
</Anchor> |
</Anchors> |
<Scripts> |
<OnLoad> |
_G[self:GetName().."Text"]:SetText(NEEDTOKNOW.UIPANEL_BARSPACING); |
</OnLoad> |
<OnValueChanged> |
NeedToKnow_Settings["BarSpacing"] = value; |
NeedToKnow.Update(); |
</Anchors> |
<Scripts> |
<OnLoad> |
getglobal(self:GetName().."Text"):SetText(NEEDTOKNOW.UIPANEL_BARPADDING); |
_G[self:GetName().."Text"]:SetText(NEEDTOKNOW.UIPANEL_BARPADDING); |
</OnLoad> |
<OnValueChanged> |
NeedToKnow_Settings["BarPadding"] = value; |
</OnValueChanged> |
</Scripts> |
</Slider> |
<Slider name="$parentBarTextureSlider" inherits="OptionsSliderTemplate"> |
<Frame name="$parentBarTextureDropDown" inherits="UIDropDownMenuTemplate" enableMouse="true"> |
<Anchors> |
<Anchor point="TOPLEFT" relativeTo="$parentBarSpacingSlider" relativePoint="TOPLEFT"> |
<Anchor point="TOPLEFT" relativeTo="$parentSubText1" relativePoint="BOTTOMLEFT"> |
<Offset> |
<AbsDimension x="166" y="0" /> |
<AbsDimension x="192" y="-32"/> |
</Offset> |
</Anchor> |
</Anchors> |
<Layer level="BACKGROUND"> |
<FontString name="$parentLabel" inherits="GameFontHighlight"> |
<Anchors> |
<Anchor point="BOTTOMLEFT" relativePoint="TOPLEFT"> |
<Anchor point="BOTTOM" relativePoint="TOP"> |
<Offset> |
<AbsDimension x="40" y="-30"/> |
<AbsDimension x="0" y="3"/> |
</Offset> |
</Anchor> |
</Anchors> |
</Layers> |
<Scripts> |
<OnLoad> |
_G[self:GetName().."Label"]:SetText(NEEDTOKNOW.UIPANEL_BARTEXTURE); |
UIDropDownMenu_SetWidth(self, 128); |
UIDropDownMenu_Initialize(self, NeedToKnow.BarTextureDropDown); |
</OnLoad> |
<OnValueChanged> |
NeedToKnow.UpdateBarTextureSlider(self, value); |
</OnValueChanged> |
<OnShow> |
UIDropDownMenu_Initialize(this, NeedToKnow.BarTextureDropDown); |
</OnShow> |
</Scripts> |
</Slider> |
<Slider name="$parentBarFontSlider" inherits="OptionsSliderTemplate"> |
</Frame> |
<Frame name="$parentBarFontDropDown" inherits="UIDropDownMenuTemplate" enableMouse="true"> |
<Anchors> |
<Anchor point="TOPLEFT" relativeTo="$parentBarTextureSlider" relativePoint="BOTTOMLEFT"> |
<Anchor point="TOPLEFT" relativeTo="$parentBarTextureDropDown" relativePoint="BOTTOMLEFT"> |
<Offset> |
<AbsDimension x="0" y="-30" /> |
<AbsDimension x="0" y="-24"/> |
</Offset> |
</Anchor> |
</Anchors> |
<Layer level="BACKGROUND"> |
<FontString name="$parentLabel" inherits="GameFontHighlight"> |
<Anchors> |
<Anchor point="TOPLEFT" relativePoint="BOTTOMLEFT"> |
<Anchor point="BOTTOM" relativePoint="TOP"> |
<Offset> |
<AbsDimension x="0" y="-4"/> |
<AbsDimension x="0" y="3"/> |
</Offset> |
</Anchor> |
</Anchors> |
</Layers> |
<Scripts> |
<OnLoad> |
_G[self:GetName().."Label"]:SetText(NEEDTOKNOW.UIPANEL_FONT); |
UIDropDownMenu_SetWidth(self, 128); |
UIDropDownMenu_Initialize(self, NeedToKnow.BarFontDropDown); |
</OnLoad> |
<OnValueChanged> |
NeedToKnow.UpdateBarFontSlider(self, value); |
</OnValueChanged> |
<OnShow> |
UIDropDownMenu_Initialize(this, NeedToKnow.BarFontDropDown); |
</OnShow> |
</Scripts> |
</Slider> |
<Button name="$parentBackgroundColorButton" inherits="NeedToKnow_ColorButtonTemplate"> |
</Frame> |
<Button name="$parentConfigModeButton" inherits="UIPanelButtonTemplate"> |
<Size> |
<AbsDimension x="128" y="22"/> |
</Size> |
<Anchors> |
<Anchor point="TOPLEFT" relativeTo="$parentGroup4" relativePoint="BOTTOMLEFT"> |
<Anchor point="BOTTOMLEFT" relativeTo="$parent" relativePoint="BOTTOMLEFT"> |
<Offset> |
<AbsDimension x="80" y="-8"/> |
<AbsDimension x="24" y="24"/> |
</Offset> |
</Anchor> |
</Anchors> |
<Scripts> |
<OnLoad> |
self:RegisterForClicks("LeftButtonUp"); |
_G[self:GetName().."Text"]:SetText(NEEDTOKNOW.UIPANEL_CONFIGMODE); |
</OnLoad> |
<OnClick> |
NeedToKnow.ChooseColor("BkgdColor"); |
PlaySound("gsTitleOptionOK"); |
NeedToKnow_Settings["Locked"] = false; |
NeedToKnow.Update(); |
</OnClick> |
<OnEnter> |
GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); |
GameTooltip:SetText(NEEDTOKNOW.UIPANEL_CONFIGMODE_TOOLTIP, nil, nil, nil, nil, 1); |
</OnEnter> |
<OnLeave function="GameTooltip_Hide"/> |
</Scripts> |
<NormalFont inherits="GameFontNormalSmall"/> |
<HighlightFont inherits="GameFontHighlightSmall"/> |
</Button> |
<Button name="$parentLockUnlockButton" inherits="UIPanelButtonTemplate"> |
<Button name="$parentPlayModeButton" inherits="UIPanelButtonTemplate"> |
<Size> |
<AbsDimension x="96" y="22"/> |
<AbsDimension x="128" y="22"/> |
</Size> |
<Anchors> |
<Anchor point="BOTTOMLEFT"> |
<Anchor point="BOTTOMRIGHT" relativeTo="$parent" relativePoint="BOTTOMRIGHT"> |
<Offset> |
<AbsDimension x="16" y="16"/> |
<AbsDimension x="-24" y="24"/> |
</Offset> |
</Anchor> |
</Anchors> |
<Scripts> |
<OnLoad> |
_G[self:GetName().."Text"]:SetText(NEEDTOKNOW.UIPANEL_PLAYMODE); |
</OnLoad> |
<OnClick> |
PlaySound("gsTitleOptionOK"); |
NeedToKnow.LockToggle(); |
NeedToKnow.LockUnlockButton_Update(); |
NeedToKnow_Settings["Locked"] = true; |
NeedToKnow.Update(); |
</OnClick> |
<OnEnter> |
GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); |
GameTooltip:SetText(NEEDTOKNOW.UIPANEL_PLAYMODE_TOOLTIP, nil, nil, nil, nil, 1); |
</OnEnter> |
<OnLeave function="GameTooltip_Hide"/> |
</Scripts> |
<NormalFont inherits="GameFontNormalSmall"/> |
<HighlightFont inherits="GameFontHighlightSmall"/> |