if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPetEnable_Toggle();
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
SmartPetOptionButton:Show();
SmartPet_Config.Icon = true;
else
PlaySound("igMainMenuOptionCheckBoxOn");
SmartPetOptionButton:Hide();
SmartPet_Config.Icon = false;
end
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_OnSlashCommand(SMARTPET_TOOLTIPS);
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
SmartPet_Config.Alert = true;
SmartPet_AddInfoMessage("You will now give an alert on attack");
else
PlaySound("igMainMenuOptionCheckBoxOn");
SmartPet_Config.Alert = false;
SmartPet_AddInfoMessage("You will no longer give an alert on attack");
end
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_OnSlashCommand(SMARTPET_SMARTFOCUS);
if (this:GetChecked()) then
PlaySound("igMainMenuOptionCheckBoxOff");
SmartPet_Config.RushAttack = true;
SmartPet_AddInfoMessage("Dash/Dive On Attack Enabled");
else
PlaySound("igMainMenuOptionCheckBoxOn");
SmartPet_Config.RushAttack = false;
SmartPet_AddInfoMessage("Dash/Dive On Attack Disabled");
end
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_OnSlashCommand(SMARTPET_NOCHASE);
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
SmartPet_Config.RecallWarn = true;
SmartPet_AddInfoMessage("Recall Warning Shown");
else
PlaySound("igMainMenuOptionCheckBoxOn");
SmartPet_Config.RecallWarn = false;
SmartPet_AddInfoMessage("Recall Warning Hidden");
end
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
else
PlaySound("igMainMenuOptionCheckBoxOn");
end
SmartPet_OnSlashCommand(SMARTPET_AUTOCOWER);
SmartPet_Config.CowerHealth = SmartPetAutoCowerPercentEditBox:GetNumber();
SmartPet_Config.CowerHealth = SmartPetAutoCowerPercentEditBox:GetNumber();
SmartPet_Config.CowerHealth = SmartPetAutoCowerPercentEditBox:GetNumber();
SmartPet_Config.CowerHealth = SmartPetAutoCowerPercentEditBox:GetNumber();
if (this:GetChecked()) then
PlaySound("igMainMenuOptionCheckBoxOff");
SmartPet_Config.SpellAttack = true;
SmartPet_AddInfoMessage( "Spell Attack");
else
PlaySound("igMainMenuOptionCheckBoxOn");
SmartPet_Config.SpellAttack = false;
SmartPet_AddInfoMessage( "no Spell Attack");
end
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
SmartPet_Config.Scatter = true;
SmartPet_ScatterOptions:Show();
else
PlaySound("igMainMenuOptionCheckBoxOn");
SmartPet_Config.Scatter = false;
SmartPet_ScatterOptions:Hide();
end
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
SmartPetScatterMoodToggle("defensive");
else
PlaySound("igMainMenuOptionCheckBoxOn");
SmartPetScatterMoodToggle("clear");
end
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
SmartPetScatterMoodToggle("passive");
else
PlaySound("igMainMenuOptionCheckBoxOn");
SmartPetScatterMoodToggle("clear");
end
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
SmartPetScatterCommandToggle("stay");
else
PlaySound("igMainMenuOptionCheckBoxOn");
SmartPetScatterCommandToggle("clear");
end
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
SmartPetScatterCommandToggle("follow");
else
PlaySound("igMainMenuOptionCheckBoxOn");
SmartPetScatterCommandToggle("clear");
end
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
SmartPet_HealthWarningChanels:Show();
else
PlaySound("igMainMenuOptionCheckBoxOn");
SmartPet_HealthWarningChanels:Hide();
end
SmartPetAutowarn_Toggle();
SmartPet_Config.WarnHealth = SmartPetAutoWarnPercentEditBox:GetNumber();
SmartPet_Config.WarnHealth = SmartPetAutoWarnPercentEditBox:GetNumber();
SmartPet_Config.WarnHealth = SmartPetAutoWarnPercentEditBox:GetNumber();
SmartPet_Config.WarnHealth = SmartPetAutoWarnPercentEditBox:GetNumber();
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
SmartPetHealthWarning_Group:SetChecked(0);
SmartPetHealthWarning_Raid:SetChecked(0);
SmartPetHealthWarning_Channel:SetChecked(0);
SmartPetHealthWarning_Guild:SetChecked(0);
SmartPet_Config.Channel = "say";
else
PlaySound("igMainMenuOptionCheckBoxOn");
SmartPetHealthWarning_Say:SetChecked(1);
end
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
SmartPetHealthWarning_Raid:SetChecked(0);
SmartPetHealthWarning_Say:SetChecked(0);
SmartPetHealthWarning_Channel:SetChecked(0);
SmartPetHealthWarning_Guild:SetChecked(0);
SmartPet_Config.Channel = "party";
else
PlaySound("igMainMenuOptionCheckBoxOn");
SmartPetHealthWarning_Group:SetChecked(1);
end
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
SmartPetHealthWarning_Group:SetChecked(0);
SmartPetHealthWarning_Say:SetChecked(0);
SmartPetHealthWarning_Channel:SetChecked(0);
SmartPetHealthWarning_Raid:SetChecked(0);
SmartPet_Config.Channel = "guild";
else
PlaySound("igMainMenuOptionCheckBoxOn");
SmartPetHealthWarning_Guild:SetChecked(1);
end
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
SmartPetHealthWarning_Group:SetChecked(0);
SmartPetHealthWarning_Say:SetChecked(0);
SmartPetHealthWarning_Channel:SetChecked(0);
SmartPetHealthWarning_Guild:SetChecked(0);
SmartPet_Config.Channel = "raid";
else
PlaySound("igMainMenuOptionCheckBoxOn");
SmartPetHealthWarning_Raid:SetChecked(1);
end
if ( this:GetChecked() ) then
PlaySound("igMainMenuOptionCheckBoxOff");
SmartPetHealthWarning_Group:SetChecked(0);
SmartPetHealthWarning_Say:SetChecked(0);
SmartPetHealthWarning_Raid:SetChecked(0);
SmartPetHealthWarning_Guild:SetChecked(0);
SmartPet_Config.Channel = "channel";
else
PlaySound("igMainMenuOptionCheckBoxOn");
SmartPetHealthWarning_Channel:SetChecked(1);
end
SmartPetChannelSet;()
SmartPetChannelSet();
PlaySound("igMainMenuOptionCheckBoxOff");
SmartPetHealthWarning_Group:SetChecked(0);
SmartPetHealthWarning_Say:SetChecked(0);
SmartPetHealthWarning_Raid:SetChecked(0);
SmartPetHealthWarning_Guild:SetChecked(0);
SmartPetHealthWarning_Channel:SetChecked(1);
SmartPet_Config.Channel = "channel";
SmartPetChannelSet();
UIPanelWindows["SmartPetOptionsFrame"] = {area = "center", pushable = 0};
SmartPetOptions_OnLoad();
SmartPetOptions_OnShow();
SmartPetOptions_OnHide();