UIDropDownMenu_Initialize(self, Karma_SkillButton_Menu_Initialize, "MENU");
UIDropDownMenu_Initialize(self, Karma_GearPVEButton_Menu_Initialize, "MENU");
UIDropDownMenu_Initialize(self, Karma_GearPVPButton_Menu_Initialize, "MENU");
if (button == "LeftButton") then
self:StartMoving()
end
self:StopMovingOrSizing()
if (KARMA_MAINWND_KEEPOPEN) then
self:Show();
end
KARMA_MAINWND_KEEPOPEN = false;
getglobal(self:GetName().."Text"):SetText("");
getglobal(self:GetName().."High"):SetText(100);
getglobal(self:GetName().."Low"):SetText(1);
KarmaWindow_KarmaSlider:SetMinMaxValues(1,100);
KarmaWindow_KarmaSlider:SetValueStep(1);
KarmaWindow_KarmaSlider:SetValue(50);
KarmaWindow_KarmaSlider_OnValueChanged();
KarmaWindow_KarmaSlider_OnMouseUp();
self:SetMinMaxValues(1, 100);
self:SetValue(50);
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.1, 0.1, 0.1);
KarmaWindow_ListSelection_DropDownText:SetJustifyH("LEFT");
KarmaWindow_ListSelection_DropDown_OnShow(self);
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.1, 0.1, 0.1);
if (itemHeight == nil) then
KarmaChatDebug("ML: iH == nil!");
itemHeight = 13;
end;
FauxScrollFrame_OnVerticalScroll(self, offset, itemHeight, KarmaWindow_UpdateMemberList);
KarmaWindow_CharSelection_DropDownText:SetJustifyH("LEFT");
KarmaWindow_CharSelection_DropDown_OnShow(self);
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
-- getglobal(self:GetName().."Title"):SetText(KARMA_WINEL_TRACKINGDATA_TITLE);
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
-- getglobal(self:GetName().."Title"):SetText("no title goes here");
KarmaWindow_ListChoice_Checkbox_OnLoad(self, "R");
KarmaWindow_ListChoice_Checkbox_OnClick(self, "R");
KarmaWindow_ListChoice_Checkbox_OnLoad(self, "Z");
KarmaWindow_ListChoice_Checkbox_OnClick(self, "Z");
KarmaWindow_ListChoice_Checkbox_OnLoad(self, "Q");
KarmaWindow_ListChoice_Checkbox_OnClick(self, "Q");
KarmaWindow_ListChoice_Checkbox_OnLoad(self, "A");
KarmaWindow_ListChoice_Checkbox_OnClick(self, "A");
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.1, 0.1, 0.1);
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.1, 0.1, 0.1);
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.1, 0.1, 0.1);
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.1, 0.1, 0.1);
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
getglobal(self:GetName().."Title"):SetText(KARMA_WINEL_OTHERDATA_TITLE);
KarmaAvEnK.Helpers.OnLeave();
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.1, 0.1, 0.1);
KarmaAvEnK.UI.NotePublic_Editbox_Tooltip(self, KARMA_WINEL_NOTESPUBLIC, "PUBLICNOTE", "ANCHOR_TOPLEFT");
GameTooltip:Hide()
-- ScrollingEdit_OnTextChanged(KarmaWindow_Notes_ScrollFrame);
KarmaWindow_NotePublic_UpdateText();
ScrollingEdit_OnCursorChanged(self, x, y - 10, w, h);
self:ClearFocus();
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.1, 0.1, 0.1);
-- removed: letters="4096" (req. by Pydia)
-- ScrollingEdit_OnTextChanged(self, scrollFrame); -- ... 3.0.2?
ScrollingEdit_OnTextChanged(self, KarmaWindow_Notes_ScrollFrame);
KarmaWindow_NotesUpdateText();
ScrollingEdit_OnCursorChanged(self, x, y - 10, w, h);
ScrollingEdit_OnUpdate(self, elapsed, KarmaWindow_Notes_ScrollFrame);
self:ClearFocus();
KarmaWindow_Notes_EditBox_ScrollChild:SetHeight(KarmaWindow_Notes_ScrollFrame:GetHeight());
if (Karma_CurrentMemberValid()) then
KarmaWindow_Notes_EditBox:SetFocus();
end
KarmaWindow_Notes_EditBox_ScrollChild:SetHeight(KarmaWindow_Notes_ScrollFrame:GetHeight());
KarmaWindow_Notes_EditBox_ScrollChild:SetWidth(KarmaWindow_Notes_ScrollFrame:GetWidth());
if (itemHeight == nil) then
KarmaChatDebug("QL: iH == nil!");
itemHeight = 13;
end;
FauxScrollFrame_OnVerticalScroll(self, offset, itemHeight, KarmaWindow_UpdateQuestList);
if (itemHeight == nil) then
KarmaChatDebug("ZL: iH == nil!");
itemHeight = 13;
end;
FauxScrollFrame_OnVerticalScroll(self, offset, itemHeight, KarmaWindow_UpdateZoneList);
if (itemHeight == nil) then
KarmaChatDebug("RL: iH == nil!");
itemHeight = 13;
end;
FauxScrollFrame_OnVerticalScroll(self, offset, itemHeight, KarmaWindow_UpdateRegionList);
if (itemHeight == nil) then
KarmaChatDebug("RL: iH == nil!");
itemHeight = 13;
end;
FauxScrollFrame_OnVerticalScroll(self, offset, itemHeight, KarmaWindow_UpdateAchievementList);
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.1, 0.1, 0.1);
if (itemHeight == nil) then
KarmaChatDebug("AL: iH == nil!");
itemHeight = 13;
end;
FauxScrollFrame_OnVerticalScroll(self, offset, itemHeight, KarmaWindow_UpdateAltList);
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.1, 0.1, 0.1);
KarmaAvEnK.UI.Filter_Editbox_Tooltip(self, KARMA_WINEL_FILTER, "FILTER", "ANCHOR_TOPRIGHT");
GameTooltip:Hide()
-- ScrollingEdit_OnTextChanged(KarmaWindow_Notes_ScrollFrame);
KarmaWindow_FilterUpdateText();
ScrollingEdit_OnCursorChanged(self, x, y - 10, w, h);
self:ClearFocus();
tinsert(UISpecialFrames,self:GetName());
if KarmaWindow:IsVisible() then
local sName, k, v = KarmaWindow:GetName();
for k, v in pairs(UISpecialFrames) do
if (v == sName) then
KARMA_MAINWND_REINSERT = true;
tremove(UISpecialFrames, k);
-- MainChatDebug("Removed " .. v .. " at " .. k);
end
end
end
Karma_FilterInit();
-- at first glance, just setting KARMA_MAINWND_KEEPOPEN would work
-- at closer inspection, it depends on the position of the two windows
-- in the UISpecialFrames list.
-- therefore, re-add MainWindow here to make sure it is after OptionsWindow
-- and *that's* why it has to be removed above =)
if KARMA_MAINWND_REINSERT then
KARMA_MAINWND_REINSERT = false;
KARMA_MAINWND_KEEPOPEN = true;
tinsert(UISpecialFrames, KarmaWindow:GetName());
end
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
getglobal(self:GetName().."Title"):SetText(KARMA_WINEL_FILTER_TITLE);
KarmaAvEnK.UI.Filter_Editbox_Tooltip(self, KARMA_WINEL_FILTER_JOINED_TITLE, "JOINED", "ANCHOR_TOPLEFT");
GameTooltip:Hide()
KarmaAvEnK.UI.Filter_Editbox_Tooltip(self, KARMA_WINEL_FILTER_JOINED_TITLE, "JOINED", "ANCHOR_TOPRIGHT");
GameTooltip:Hide()
tinsert(UISpecialFrames,self:GetName());
if KarmaWindow:IsVisible() then
local sName, k, v = KarmaWindow:GetName();
for k, v in pairs(UISpecialFrames) do
if (v == sName) then
KARMA_MAINWND_REINSERT = true;
tremove(UISpecialFrames,k);
-- MainChatDebug("Removed " .. v .. " at " .. k);
end
end
end
Karma_TalentInit(self);
-- at first glance, just setting KARMA_MAINWND_KEEPOPEN would work
-- at closer inspection, it depends on the position of the two windows
-- in the UISpecialFrames list.
-- therefore, re-add MainWindow here to make sure it is after OptionsWindow
-- and *that's* why it has to be removed above =)
if KARMA_MAINWND_REINSERT then
KARMA_MAINWND_REINSERT = false;
KARMA_MAINWND_KEEPOPEN = true;
tinsert(UISpecialFrames, KarmaWindow:GetName());
end
self:SetBackdropBorderColor(0.4, 0.4, 0.4);
self:SetBackdropColor(0.15, 0.15, 0.15);
Karma_TalentUpdate("H");
Karma_TalentUpdate("D");
Karma_TalentUpdate("T");
Karma_TalentUpdate("M");
Karma_TalentUpdate("R");