if ( self:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOn");
else
PlaySound("igMainMenuOptionCheckBoxOff");
end
InterfaceOptionsPanel_CheckButton_OnClick(self);
self.invert = true;
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "deselectOnClick";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "autoDismountFlying";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "autoClearAFK";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "blockTrades";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "lootUnderMouse";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "autoLootDefault";
self.setFunc = InterfaceOptionsControlsPanelAutoLootKeyDropDown_Update;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_DROPDOWN;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self:RegisterEvent("PLAYER_ENTERING_WORLD");
if ( not self.isDisabled ) then
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(self.tooltip, nil, nil, nil, nil, 1);
end
self.name = CONTROLS_LABEL;
self.options = ControlsPanelOptions;
InterfaceOptionsPanel_OnLoad(self);
UIDropDownMenu_SetSelectedValue(InterfaceOptionsControlsPanelAutoLootKeyDropDown, GetModifiedClick("AUTOLOOTTOGGLE"));
UIDropDownMenu_EnableDropDown(InterfaceOptionsControlsPanelAutoLootKeyDropDown);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "assistAttack";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "autoRangedCombat";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "stopAutoAttackOnTargetChange";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "ShowClassColorInNameplate";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "autoSelfCast";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_DROPDOWN;
self:RegisterEvent("PLAYER_ENTERING_WORLD");
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
if ( not self.isDisabled ) then
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(self.tooltip, nil, nil, nil, nil, 1);
end
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showTargetCastbar";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent():GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showVKeyCastbar";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent():GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showTargetOfTarget";
self.uvar = "SHOW_TARGET_OF_TARGET";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_DROPDOWN;
self.cvar = "targetOfTargetMode";
self.uvar = "SHOW_TARGET_OF_TARGET_STATE";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsCombatPanelTargetOfTarget, self);
self:RegisterEvent("PLAYER_ENTERING_WORLD");
if ( not self.isDisabled ) then
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(self.tooltip, nil, nil, nil, nil, 1);
end
if ( event == "PLAYER_ENTERING_WORLD" ) then
InterfaceOptionsCombatPanelTOTDropDown_OnEvent(self, event, ...);
end
self.type = CONTROLTYPE_DROPDOWN;
self:RegisterEvent("PLAYER_ENTERING_WORLD");
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
if ( not self.isDisabled ) then
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(self.tooltip, nil, nil, nil, nil, 1);
end
self.name = COMBAT_LABEL;
self.options = CombatPanelOptions;
InterfaceOptionsPanel_OnLoad(self);
self.type = CONTROLTYPE_CHECKBOX;
self.text = _G[self:GetName().."Text"];
self.text:SetText(SHOW_CLOAK);
self.tooltipText = OPTION_TOOLTIP_SHOW_CLOAK;
self.defaultValue = "1";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.GetValue = function (self) return ( (ShowingCloak() and "1") or "0" ); end
self.SetValue = function (self, value) self.value = value; self:SetChecked(value); ShowCloak(value); end
self:RegisterEvent("PLAYER_FLAGS_CHANGED");
local value = ((self:GetChecked() and "1") or "0")
if ( value == "1" ) then
PlaySound("igMainMenuOptionCheckBoxOn");
else
PlaySound("igMainMenuOptionCheckBoxOff");
end
self:SetValue(value);
local arg1 = ...;
if ( arg1 == "player" ) then
self:SetChecked(ShowingCloak());
self.value = ((ShowingCloak() and "1") or "0");
end
self.type = CONTROLTYPE_CHECKBOX;
self.text = _G[self:GetName().."Text"];
self.text:SetText(SHOW_HELM);
self.tooltipText = OPTION_TOOLTIP_SHOW_HELM;
self.defaultValue = "1";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.GetValue = function (self) return ( (ShowingHelm() and "1") or "0" ); end
self.SetValue = function (self, value) self.value = value; self:SetChecked(value); ShowHelm(value); end
self:RegisterEvent("PLAYER_FLAGS_CHANGED");
local value = ((self:GetChecked() and "1") or "0")
if ( value == "1" ) then
PlaySound("igMainMenuOptionCheckBoxOn");
else
PlaySound("igMainMenuOptionCheckBoxOff");
end
self:SetValue(value);
local arg1 = ...;
if ( arg1 == "player" ) then
self:SetChecked(ShowingHelm());
self.value = ((ShowingHelm() and "1") or "0");
end
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "rotateMinimap";
self.setFunc = function (value) Minimap_UpdateRotationSetting(); end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "screenEdgeFlash";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showLootSpam";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "displayFreeBagSlots";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showClock";
self.setFunc = InterfaceOptionsDisplayPanelShowClock_SetFunc;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(self.tooltip, nil, nil, nil, nil, 1);
self.type = CONTROLTYPE_DROPDOWN;
self:RegisterEvent("PLAYER_ENTERING_WORLD");
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "threatShowNumeric";
self.setFunc = function (value) InterfaceOptionsDisplayPanelShowAggroPercentage_SetFunc(); end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "threatPlaySounds";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "colorblindMode";
self.uvar = "ENABLE_COLORBLIND_MODE";
self.setFunc = function() WatchFrame_Update(); if ( IsAddOnLoaded("Blizzard_AchievementUI") ) then AchievementFrame_ForceUpdate(); end end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showItemLevel";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(self.tooltip, nil, nil, nil, nil, 1);
self.type = CONTROLTYPE_DROPDOWN;
self:RegisterEvent("PLAYER_ENTERING_WORLD");
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "movieSubtitle";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "questFadingDisable";
self.uvar = "QUEST_FADING_DISABLE";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "autoQuestWatch";
self.uvar = "AUTO_QUEST_WATCH";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "autoQuestProgress";
self.uvar = "AUTO_QUEST_PROGRESS";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "mapQuestDifficulty";
self.uvar = "MAP_QUEST_DIFFICULTY";
self.setFunc = function () WorldMapFrame_ResetQuestColors(); end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "advancedWorldMap";
self.setFunc = function () WorldMapFrame_ToggleAdvanced(); end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "watchFrameWidth";
self.uvar = "WATCH_FRAME_WIDTH";
self.setFunc = function () WatchFrame_SetWidth(WATCH_FRAME_WIDTH); end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "profanityFilter";
self.setFunc = function(value) if (BNFeaturesEnabledAndConnected()) then BNSetMatureLanguageFilter(value == "1") end end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
InterfaceOptionsSocialPanelProfanityFilter_UpdateDisplay();
self:RegisterEvent("BN_MATURE_LANGUAGE_FILTER");
self:RegisterEvent("BN_CONNECTED");
InterfaceOptionsSocialPanelProfanityFilter_SyncWithBattlenet();
if ( event == "BN_MATURE_LANGUAGE_FILTER" or event == "BN_CONNECTED") then
InterfaceOptionsSocialPanelProfanityFilter_SyncWithBattlenet();
end
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "chatBubbles";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "chatBubblesParty";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.invert = true;
self.cvar = "spamFilter";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "removeChatDelay";
self.uvar = "REMOVE_CHAT_DELAY";
self.setFunc = function (value) SetChatMouseOverDelay(value); end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "guildMemberNotify";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "guildRecruitmentChannel";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "chatMouseScroll";
self.setFunc = function (value) InterfaceOptionsSocialPanelChatMouseScroll_SetScrolling(value); end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(self.tooltip, nil, nil, nil, nil, 1);
self.type = CONTROLTYPE_DROPDOWN;
self:RegisterEvent("VARIABLES_LOADED");
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "wholeChatWindowClickable";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(self.tooltip, nil, nil, nil, nil, 1);
self.type = CONTROLTYPE_DROPDOWN;
self:RegisterEvent("VARIABLES_LOADED");
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(self.tooltip, nil, nil, nil, nil, 1);
self.type = CONTROLTYPE_DROPDOWN;
self:RegisterEvent("VARIABLES_LOADED");
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.label = "bottomLeftActionBar";
self.uvar = "SHOW_MULTI_ACTIONBAR_1";
self.setFunc = InterfaceOptions_UpdateMultiActionBars;
self.GetValue = function () return self.value or ((select(1, GetActionBarToggles()) and "1") or "0"); end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.label = "bottomRightActionBar";
self.uvar = "SHOW_MULTI_ACTIONBAR_2";
self.setFunc = InterfaceOptions_UpdateMultiActionBars;
self.GetValue = function () return self.value or ((select(2, GetActionBarToggles()) and "1") or "0"); end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.label = "rightActionBar";
self.uvar = "SHOW_MULTI_ACTIONBAR_3";
self.setFunc = InterfaceOptions_UpdateMultiActionBars;
self.GetValue = function () return self.value or ((select(3, GetActionBarToggles()) and "1") or "0"); end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.label = "rightTwoActionBar";
self.uvar = "SHOW_MULTI_ACTIONBAR_4";
self.setFunc = InterfaceOptions_UpdateMultiActionBars;
self.GetValue = function () return self.value or ((select(4, GetActionBarToggles()) and "1") or "0"); end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsActionBarsPanelRight, self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "lockActionBars";
self.uvar = "LOCK_ACTIONBAR";
self.setFunc = InterfaceOptions_UpdateMultiActionBars;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "alwaysShowActionBars";
self.uvar = "ALWAYS_SHOW_MULTIBARS";
self.setFunc = function (value) MultiActionBar_UpdateGridVisibility(); InterfaceOptions_UpdateMultiActionBars(); end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "secureAbilityToggle";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "UnitNameOwn";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "UnitNameNPC";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "UnitNameNonCombatCreatureName";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "UnitNamePlayerGuild";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "UnitNamePlayerPVPTitle";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "UnitNameFriendlyPlayerName";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent():GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "UnitNameFriendlyPetName";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent():GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "UnitNameFriendlyGuardianName";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent():GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "UnitNameFriendlyTotemName";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent():GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "UnitNameEnemyPlayerName";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent():GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "UnitNameEnemyPetName";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent():GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "UnitNameEnemyGuardianName";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent():GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "UnitNameEnemyTotemName";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent():GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "nameplateAllowOverlap";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent():GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "nameplateShowFriends";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent():GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "nameplateShowFriendlyPets";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent():GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsNamesPanelUnitNameplatesFriends, self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "nameplateShowFriendlyGuardians";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent():GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsNamesPanelUnitNameplatesFriends, self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "nameplateShowFriendlyTotems";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent():GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsNamesPanelUnitNameplatesFriends, self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "nameplateShowEnemies";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent():GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "nameplateShowEnemyPets";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent():GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsNamesPanelUnitNameplatesEnemies, self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "nameplateShowEnemyGuardians";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent():GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsNamesPanelUnitNameplatesEnemies, self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "nameplateShowEnemyTotems";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent():GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsNamesPanelUnitNameplatesEnemies, self);
self.name = NAMES_LABEL;
self.options = NamePanelOptions;
InterfaceOptionsPanel_OnLoad(self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "CombatDamage";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "CombatLogPeriodicSpells";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsCombatTextPanelTargetDamage, self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "PetMeleeDamage";
self.setFunc = function (value) SetCVar("PetSpellDamage", value); end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsCombatTextPanelTargetDamage, self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "CombatHealing";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "fctSpellMechanics";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "fctSpellMechanicsOther";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsCombatTextPanelTargetEffects, self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "enableCombatText";
self.uvar = "SHOW_COMBAT_TEXT";
self.setFunc = function (value)
if ( value == "1" and not IsAddOnLoaded("Blizzard_CombatText") ) then
UIParentLoadAddOn("Blizzard_CombatText");
end
BlizzardOptionsPanel_UpdateCombatText();
end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_DROPDOWN;
self:RegisterEvent("PLAYER_ENTERING_WORLD");
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsCombatTextPanelEnableFCT, self);
if ( not self.isDisabled ) then
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(self.tooltip, nil, nil, nil, nil, 1);
end
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "fctDodgeParryMiss";
self.uvar = "COMBAT_TEXT_SHOW_DODGE_PARRY_MISS";
self.setFunc = BlizzardOptionsPanel_UpdateCombatText;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsCombatTextPanelEnableFCT, self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "fctDamageReduction";
self.uvar = "COMBAT_TEXT_SHOW_RESISTANCES";
self.setFunc = BlizzardOptionsPanel_UpdateCombatText;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsCombatTextPanelEnableFCT, self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "fctRepChanges";
self.uvar = "COMBAT_TEXT_SHOW_REPUTATION";
self.setFunc = BlizzardOptionsPanel_UpdateCombatText;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsCombatTextPanelEnableFCT, self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "fctReactives";
self.uvar = "COMBAT_TEXT_SHOW_REACTIVES";
self.setFunc = BlizzardOptionsPanel_UpdateCombatText;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsCombatTextPanelEnableFCT, self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "fctFriendlyHealers";
self.uvar = "COMBAT_TEXT_SHOW_FRIENDLY_NAMES";
self.setFunc = BlizzardOptionsPanel_UpdateCombatText;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsCombatTextPanelEnableFCT, self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "fctCombatState";
self.uvar = "COMBAT_TEXT_SHOW_COMBAT_STATE";
self.setFunc = BlizzardOptionsPanel_UpdateCombatText;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsCombatTextPanelEnableFCT, self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "fctComboPoints";
self.uvar = "COMBAT_TEXT_SHOW_COMBO_POINTS";
self.setFunc = function (value)
local _, class = UnitClass("player");
if ( class ~= "ROGUE" and class ~= "DRUID" ) then
self:SetChecked(false);
self:Disable();
end
BlizzardOptionsPanel_UpdateCombatText();
end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsCombatTextPanelEnableFCT, self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "fctLowManaHealth";
self.uvar = "COMBAT_TEXT_SHOW_LOW_HEALTH_MANA";
self.setFunc = BlizzardOptionsPanel_UpdateCombatText;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsCombatTextPanelEnableFCT, self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "fctEnergyGains";
self.uvar = "COMBAT_TEXT_SHOW_ENERGIZE";
self.setFunc = BlizzardOptionsPanel_UpdateCombatText;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsCombatTextPanelEnableFCT, self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "fctPeriodicEnergyGains";
self.uvar = "COMBAT_TEXT_SHOW_PERIODIC_ENERGIZE";
self.setFunc = BlizzardOptionsPanel_UpdateCombatText;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsCombatTextPanelEnableFCT, self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "fctHonorGains";
self.uvar = "COMBAT_TEXT_SHOW_HONOR_GAINED";
self.setFunc = BlizzardOptionsPanel_UpdateCombatText;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsCombatTextPanelEnableFCT, self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "fctAuras";
self.uvar = "COMBAT_TEXT_SHOW_AURAS";
self.setFunc = BlizzardOptionsPanel_UpdateCombatText;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsCombatTextPanelEnableFCT, self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "playerStatusText";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "petStatusText";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "partyStatusText";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "targetStatusText";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "statusTextPercentage";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "xpBarText";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.name = STATUSTEXT_LABEL;
self.options = StatusTextPanelOptions;
InterfaceOptionsPanel_OnLoad(self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showPartyBackground";
self.uvar = "SHOW_PARTY_BACKGROUND";
self.setFunc = function ()
UpdatePartyMemberBackground();
if ( UpdateArenaEnemyBackground ) then
UpdateArenaEnemyBackground();
end
end
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "hidePartyInRaid";
self.uvar = "HIDE_PARTY_INTERFACE";
self.setFunc = function (value) RaidOptionsFrame_UpdatePartyFrames(); end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showPartyPets";
self.uvar = "SHOW_PARTY_PETS";
self.setFunc = function (value) for i=1, MAX_PARTY_MEMBERS do PartyMemberFrame_UpdatePet("PartyMemberFrame" .. i, i); end end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.setFunc = function (value)
if ( value == "1") then
RaidFrame.showRange = 1;
else
RaidFrame.showRange = nil;
end
end;
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showRaidRange";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showArenaEnemyFrames";
self.uvar = "SHOW_ARENA_ENEMY_FRAMES";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showArenaEnemyCastbar";
self.uvar = "SHOW_ARENA_ENEMY_CASTINGBAR";
self.setFunc = function (value)
if ( ArenaEnemyFrames ) then
local frame;
for i=1, MAX_ARENA_ENEMIES do
frame = _G["ArenaEnemyFrame" .. i .. "CastingBar"];
frame.showCastbar = (value == "1");
CastingBarFrame_UpdateIsShown(frame);
end
end
end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsUnitFramePanelArenaEnemyFrames, self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showArenaEnemyPets";
self.uvar = "SHOW_ARENA_ENEMY_PETS";
self.setFunc = function (value)
if ( ArenaEnemyFrames ) then
for i=1, MAX_ARENA_ENEMIES do
ArenaEnemyFrame_UpdatePet(_G["ArenaEnemyFrame" .. i], i);
end
end
end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsUnitFramePanelArenaEnemyFrames, self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "fullSizeFocusFrame";
self.setFunc = function (value)
FocusFrame_SetSmallSize(value ~= "1", true);
end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.name = UNITFRAME_LABEL;
self.options = UnitFramePanelOptions;
InterfaceOptionsPanel_OnLoad(self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "buffDurations";
self.uvar = "SHOW_BUFF_DURATIONS";
self.setFunc = function (value) BuffFrame_UpdatePositions(); end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showDispelDebuffs";
self.setFunc = BlizzardOptionsPanel_UpdateRaidPullouts;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showCastableBuffs";
self.setFunc = BlizzardOptionsPanel_UpdateRaidPullouts;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "consolidateBuffs";
self.uvar = "CONSOLIDATE_BUFFS";
self.setFunc = function (value)
BuffFrame_Update();
end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showCastableDebuffs";
self.uvar = "SHOW_CASTABLE_DEBUFFS";
--self.setFunc = BlizzardOptionsPanel_UpdateRaidPullouts;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showToastOnline";
self.setFunc = function (value) BNet_UpdateToastEvent(self.cvar, value); end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showToastOffline";
self.setFunc = function (value) BNet_UpdateToastEvent(self.cvar, value); end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showToastBroadcast";
self.setFunc = function (value) BNet_UpdateToastEvent(self.cvar, value); end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showToastFriendRequest";
self.setFunc = function (value) BNet_UpdateToastEvent(self.cvar, value); end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showToastConversation";
self.setFunc = function (value) BNet_UpdateToastEvent(self.cvar, value); end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showToastWindow";
self.setFunc = function(value) if ( value == "1" ) then BNet_EnableToasts(); else BNet_DisableToasts(); end; end
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_SLIDER;
self.cvar = "toastDuration";
self.SetDisplayValue = self.SetValue;
self.SetValue = function (self, value)
self:SetDisplayValue(value);
self.value = value;
SetCVar(self.cvar, value);
BNet_SetToastDuration(value);
end
_G[self:GetName().."Low"]:SetText(AUCTION_TIME_LEFT1);
_G[self:GetName().."High"]:SetText(AUCTION_TIME_LEFT3);
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsBattlenetPanelShowToastWindow, self);
self.value = value;
SetCVar(self.cvar, value);
BNet_SetToastDuration(value);
self.type = CONTROLTYPE_DROPDOWN;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self:RegisterEvent("PLAYER_ENTERING_WORLD");
if ( not self.isDisabled ) then
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(self.tooltip, nil, nil, nil, nil, 1);
end
self.type = CONTROLTYPE_SLIDER;
self.cvar = "cameraYawSmoothSpeed";
self.SetDisplayValue = self.SetValue;
self.SetValue = function (self, value)
self:SetDisplayValue(value);
self.value = value;
SetCVar(self.cvar, value);
SetCVar("cameraPitchSmoothSpeed", value/4);
end
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.value = value;
SetCVar(self.cvar, value);
self.type = CONTROLTYPE_SLIDER;
self.cvar = "cameraDistanceMaxFactor";
self.SetDisplayValue = self.SetValue;
self.SetValue = function (self, value)
self:SetDisplayValue(value);
self.value = value;
SetCVar(self.cvar, value);
end
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.value = value;
SetCVar(self.cvar, value);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "cameraTerrainTilt";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "cameraBobbing";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "cameraWaterCollision";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "cameraPivot";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
InterfaceOptionsCameraPanel_OnLoad(self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "mouseInvertPitch";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "autointeract";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_SLIDER;
self.cvar = "mouseSpeed";
self.SetDisplayValue = self.SetValue;
self.SetValue = function (self, value)
self:SetDisplayValue(value);
self.value = value;
SetCVar(self.cvar, value);
end
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.value = value;
SetCVar(self.cvar, value);
self.type = CONTROLTYPE_SLIDER;
self.cvar = "cameraYawMoveSpeed";
self.SetDisplayValue = self.SetValue;
self.SetValue = function (self, value)
self:SetDisplayValue(value);
self.value = value;
SetCVar(self.cvar, value);
SetCVar("cameraPitchMoveSpeed", value/2);
end
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.value = value;
SetCVar(self.cvar, value);
SetCVar("cameraPitchMoveSpeed", value/2);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "enableWoWMouse";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
InterfaceOptionsPanel_CheckButton_OnClick(self);
if ( self:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOn");
DetectWowMouse();
else
PlaySound("igMainMenuOptionCheckBoxOff");
end
self.type = CONTROLTYPE_DROPDOWN;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
BlizzardOptionsPanel_SetupDependentControl(InterfaceOptionsMousePanelClickToMove, self);
self:RegisterEvent("PLAYER_ENTERING_WORLD");
if ( not self.isDisabled ) then
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(self.tooltip, nil, nil, nil, nil, 1);
end
InterfaceOptionsMousePanelClickMoveStyleDropDown_OnEvent(self, event, ...);
GameTooltip:Hide();
self.name = MOUSE_LABEL;
self.options = MousePanelOptions;
InterfaceOptionsPanel_OnLoad(self);
_G[self:GetName().."Text"]:SetFontObject(GameFontNormal);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "equipmentManager";
self.setFunc = function(value) if ( value == "1" ) then GearManagerToggleButton:Show() else GearManagerToggleButton:Hide() end end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
CanUseEquipmentSets();
_G[self:GetName().."Text"]:SetFontObject(GameFontNormal);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "previewTalents";
self.setFunc = function (value) InterfaceOptionsDisplayPanelPreviewTalentChanges_SetFunc(); end;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.name = FEATURES_LABEL;
self.options = FeaturesPanelOptions;
InterfaceOptionsPanel_OnLoad(self);
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showTutorials";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showGameTips";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "UberTooltips";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "showNewbieTips";
self.uvar = "SHOW_NEWBIE_TIPS";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "scriptErrors";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.name = HELP_LABEL;
self.options = HelpPanelOptions;
InterfaceOptionsPanel_OnLoad(self);
self.type = CONTROLTYPE_DROPDOWN;
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self:RegisterEvent("PLAYER_ENTERING_WORLD");
InterfaceOptionsLanguagesPanelLocaleDropDown_OnEvent(self, event, ...);
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT");
GameTooltip:SetText(self.tooltip, nil, nil, nil, nil, 1);
GameTooltip:Hide();
self.type = CONTROLTYPE_CHECKBOX;
self.cvar = "useEnglishAudio";
BlizzardOptionsPanel_RegisterControl(self, self:GetParent());
self.name = LANGUAGES_LABEL;
self.options = LanguagesPanelOptions;
InterfaceOptionsLanguagesPanel_OnLoad(self);