still no action
I simplified the lua to below, no action happens onclick. This tab is completely full so there is an item in tab1 slot 1.
local UIConfig = CreateFrame("Frame", "NinjaMover_Frame", UIParent, "BasicFrameTemplateWithInset");
UIConfig:SetSize(150, 300);
UIConfig:SetPoint("RIGHT", UIParent, "RIGHT");
UIConfig.title = UIConfig:CreateFontString(nil, "OVERLAY");
UIConfig.title:SetFontObject("GameFontHighlight");
UIConfig.title:SetPoint("LEFT", UIConfig.TitleBg, "LEFT", 5, 0);
UIConfig.title:SetText("Ninja Mover");
-- Buttons
UIConfig.GT1toBagButton = CreateFrame("Button", nil, UIConfig, "GameMenuButtonTemplate");
UIConfig.GT1toBagButton:SetPoint("CENTER", UIConfig, "TOP", 0, -40);
UIConfig.GT1toBagButton:SetSize(140, 40);
UIConfig.GT1toBagButton:SetText("GT1 to Bag");
UIConfig.GT1toBagButton:SetNormalFontObject("GameFontNormalLarge");
UIConfig.GT1toBagButton:SetHighlightFontObject("GameFontHighlightLarge");
local function fromGT(self, event)
AutoStoreGuildBankItem(1,1);
end
UIConfig.GT1toBagButton:SetScript("OnClick", fromGT(self, event));
|