A Kobold Labourer
Join Date: Sep 2016
Posts: 1
|
Please help fix. It is not the Add-on function.
Hello.
I can not English well.
But still such a question.
First of all, I am sorry to the difficult ask.
I am currently creating an integrated add-on.
However, when you create an integrated add-on, really important add-on is not working.
7.0.3 not have any patches subsequent operations.
This add-on is, PopupDialogs when you first install the "/ reflux switch profile" and then the function that will come calling.
However, I do not know what to how to fix.
I do not know what you say to learn not to LUA language.
Lifted data is compressed.
Modified to be able to operate please ...!
Thank you. : D
!DevilUI
Lua Code:
local L = GetLocale() local index = GetCurrentResolution(); local resolution = select(index, GetScreenResolutions()); local NORMAL = (resolution == "720x576" or resolution == "800x600" or resolution == "1024x768" or resolution == "1152x864" or resolution == "1280x960" or resolution == "1280x1024" or resolution == "1400x1050" or resolution == "1600x1200" or resolution == "1680x1200" or resolution == "1920x1440" or resolution == "2048x1536" or resolution == "3200x2400"); local LOW = (resolution == "720x576" or resolution == "800x600" or resolution == "1024x768" or resolution == "1280x768" or resolution == "1280x720" or resolution == "1280x800" or resolution == "1920x1080" or resolution == "2048x1152" or resolution == "2560x1440" or resolution == "2880x1620" or resolution == "3200x1800" or resolution == "3840x2160" or resolution == "4096x2160"); local MEDIUM = (resolution == "1152x864" or resolution == "1360x768" or resolution == "1366x768" or resolution == "1440x900" or resolution == "1680x1050" or resolution == "1920x1200" or resolution == "2560x1600" or resilution == "2880x1800" or resolution == "3840x2400"); local function installNormal() ChatFrame1EditBox:SetText("/reflux switch ShapaNormal"); ChatEdit_SendText( ChatFrame1EditBox ); Devilinstall = true end local function installWide() ChatFrame1EditBox:SetText("/reflux switch ShapaWide"); ChatEdit_SendText( ChatFrame1EditBox ); Devilinstall = true end local function chatset() FCF_ResetChatWindows() FCF_SetLocked(ChatFrame1, 1) FCF_DockFrame(ChatFrame2) FCF_SetLocked(ChatFrame2, 1) ChatFrame1:Show() for i = 1, NUM_CHAT_WINDOWS do local frame = _G[format("ChatFrame%s", i)] local chatFrameId = frame:GetID() local chatName = FCF_GetChatWindowInfo(chatFrameId) if i == 1 then frame:ClearAllPoints() frame:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 8, 166) frame:SetHeight(200) frame:SetWidth(400) frame:Show() end end FCF_SavePositionAndDimensions(ChatFrame1) FCF_StopDragging(ChatFrame1) ChatFrame1:SetUserPlaced(true) FCF_SetChatWindowFontSize(self, ChatFrame1, 14) FCF_SetChatWindowFontSize(self, ChatFrame3, 14) FCF_SetWindowAlpha(ChatFrame1, 0) FCF_SetWindowAlpha(ChatFrame2, 0) FCF_SetWindowAlpha(ChatFrame3, 0) ToggleChatColorNamesByClassGroup(true, "SAY") ToggleChatColorNamesByClassGroup(true, "EMOTE") ToggleChatColorNamesByClassGroup(true, "YELL") ToggleChatColorNamesByClassGroup(true, "GUILD") ToggleChatColorNamesByClassGroup(true, "OFFICER") ToggleChatColorNamesByClassGroup(true, "GUILD_ACHIEVEMENT") ToggleChatColorNamesByClassGroup(true, "ACHIEVEMENT") ToggleChatColorNamesByClassGroup(true, "WHISPER") ToggleChatColorNamesByClassGroup(true, "PARTY") ToggleChatColorNamesByClassGroup(true, "PARTY_LEADER") ToggleChatColorNamesByClassGroup(true, "RAID") ToggleChatColorNamesByClassGroup(true, "RAID_LEADER") ToggleChatColorNamesByClassGroup(true, "RAID_WARNING") ToggleChatColorNamesByClassGroup(true, "INSTANCE_CHAT") ToggleChatColorNamesByClassGroup(true, "INSTANCE_CHAT_LEADER") ChangeChatColor("CHANNEL5", 195/255, 230/255, 232/255) ChangeChatColor("CHANNEL6", 55/255, 172/255, 92/255) StaticPopup_Show("DEVILSETTING") if (NORMAL) then StaticPopup_Show("NORMAL") else StaticPopup_Show("WIDE") end end local function installdevil() if (NORMAL) then StaticPopup_Show("NORMAL") else StaticPopup_Show("WIDE") end end StaticPopupDialogs["NORMAL"] = { text = "Hello. Start DevilUI.", button1 = "OK", OnAccept = installNormal, timeout = 0, whileDead = 1, } StaticPopupDialogs["WIDE"] = { text = "Hello. Start DevilUI.", button1 = "OK", OnAccept = installWide, timeout = 0, whileDead = 1, } StaticPopupDialogs["CHATSETTING"] = { text = "Are you sure you want to initialize the settings of the chat?\n\n(Please for the first time only person to install initialize the DevilUI.)", button1 = ACCEPT, button2 = CANCEL, OnAccept = chatset, OnCancel = installdevil, timeout = 0, whileDead = 1, } StaticPopupDialogs["DEVILSETTING"] = { text = "※Personal settings of the chat window is available after re-connection.\n(If you change before re-connection, settings will be initialized.).", timeout = 0, showAlert = 1, whileDead = 1, hideOnEscape = 1 } local DevilUIcheckinstall = CreateFrame("Frame") DevilUIcheckinstall:RegisterEvent("PLAYER_ENTERING_WORLD") DevilUIcheckinstall:SetScript("OnEvent", function(self, event) self:UnregisterEvent("PLAYER_ENTERING_WORLD") print("Welcome on DevilUI for patch 7.0.3 !") print("Current resolution:", resolution); print("Fix: SHAPA.") print(" ") SetCVar("screenshotQuality", 8) SetCVar("useUiScale", 1) SetCVar("checkAddonVersion", 0) SetCVar("scriptErrors", 0) SetCVar("countdownForCooldowns", 1) if not (Devilinstall) then SetCVar("cameraDistanceMaxFactor", 2) SetCVar("cameraDistanceMax", 50) SetCVar("chatStyle", "classic") if (LOW) then SetCVar("uiScale", 0.9) elseif (MEDIUM) then SetCVar("uiScale", 0.825) else SetCVar("uiScale", 0.75) end StaticPopup_Show("CHATSETTING") StaticPopup_Hide("GTFO_POPUP_MESSAGE") end end) BNToastFrame:HookScript("OnShow", function(self) self:ClearAllPoints() self:SetPoint("BOTTOMLEFT", ChatFrame1, "TOPLEFT", 10, 50) end) TimeAlertFrame:HookScript("OnShow", function(self) self:ClearAllPoints() self:SetPoint("BOTTOMLEFT", ChatFrame1, "TOPLEFT", 10, 50) end)
Devilconfig
Lua Code:
local dataobj = LibStub("LibDataBroker-1.1"):NewDataObject("Devilconfig", { icon = "Interface\\AddOns\\Devilconfig\\Devilicon.tga", label = "Devilconfig", type = "launcher", text = "DevilUI Alpha 7.0.3 Fan Normal Ver." }) local index = GetCurrentResolution(); local resolution = select(index, GetScreenResolutions()); local NORMAL = (resolution == "720x576" or resolution == "800x600" or resolution == "1024x768" or resolution == "1152x864" or resolution == "1280x960" or resolution == "1280x1024" or resolution == "1400x1050" or resolution == "1600x1200" or resolution == "1680x1200" or resolution == "1920x1440"); local AceConfig = LibStub("AceConfig-3.0") --local AceConfigReg = LibStub("AceConfigRegistry-3.0") local AceConfigDialog = LibStub("AceConfigDialog-3.0") function dataobj.OnTooltipShow(tip) tip:AddLine("DevilUI") tip:AddLine(" ") tip:AddLine("|cff69b950left-Click:|r |cffeeeeeeDevilUI setting|r") tip:AddLine("|cff69b950Right-Click:|r |cffeeeeeehotkey setting|r") tip:AddLine("|cff69b950alt-Click:|r |cffeeeeeeUI reload|r") tip:AddLine("|cff69b950Shift-Click:|r |cffeeeeeeDisconnection|r") end function dataobj.OnClick() local button = GetMouseButtonClicked() if button == "LeftButton" then if IsShiftKeyDown() then Logout() elseif IsAltKeyDown() then ReloadUI() else InterfaceOptionsFrame_OpenToCategory("DevilUI") end elseif ( button == "RightButton" ) then ChatFrame1EditBox:SetText("/kb"); ChatEdit_SendText( ChatFrame1EditBox ); end end local options = { name = "DevilUI", type = "group", args = { confdesc = { order = 1, type = "description", name = "It displays some of the settings of the DevilUI.(Beta)\n", cmdHidden = true }, centerbar = { inline = true, name = "Centerbar", type = "group", order = 2, args ={ showcenter = { type = 'execute', order = 3, name = "Centerbar On", desc = "센터바를 불러옵니다.", func = function() ChatFrame1EditBox:SetText("/dom toggle 9 10"); ChatEdit_SendText( ChatFrame1EditBox ); end, }, hidecenter = { type = 'execute', order = 4, name = "Centerbar off", desc = "센터바를 끕니다.", func = function() ChatFrame1EditBox:SetText("/dom Hide 9 10"); ChatEdit_SendText( ChatFrame1EditBox ); end, }, disableAll = { type = 'execute', order = 5, name = "dominos", desc = "도미노스 설정창을 불러 옵니다.", func = function() ChatFrame1EditBox:SetText("/dom config"); ChatEdit_SendText( ChatFrame1EditBox ); end, }, }, }, layout = { inline = true, name = "layout change", type = "group", order = 6, args ={ showcenter = { type = 'execute', order = 7, name = "bottom", desc = "센터바를 불러옵니다.", func = function() ChatFrame1EditBox:SetText("/reflux switch ShapaWide"); ChatEdit_SendText( ChatFrame1EditBox ); end, disabled = NORMAL, }, hidecenter = { type = 'execute', order = 8, name = "Right action bar(4:3)", desc = "센터바를 끕니다.", func = function() ChatFrame1EditBox:SetText("/reflux switch ShapaNormal"); ChatEdit_SendText( ChatFrame1EditBox ); end, disabled = NORMAL, }, }, }, Addons = { inline = true, name = "Addon setting", type = "group", order = 9, args ={ showcenter = { type = 'execute', order = 10, name = "T-raid setting", desc = "막공골드도우미(T-raid) 설정창을 불러옵니다.", func = function() ChatFrame1EditBox:SetText("/tr"); ChatEdit_SendText( ChatFrame1EditBox ); end, }, hidecenter = { type = 'execute', order = 11, name = "Findyparty", desc = "파티찾기(Findyparty) 설정창을 불러옵니다.", func = function() ChatFrame1EditBox:SetText("/fp"); ChatEdit_SendText( ChatFrame1EditBox ); end, }, disableAll = { type = 'execute', order = 12, name = "Tiptac", desc = "툴팁(Tiptac) 설정창을 불러 옵니다.", func = function() ChatFrame1EditBox:SetText("/tiptac"); ChatEdit_SendText( ChatFrame1EditBox ); end, }, }, }, setting = { inline = true, name = "addon setting II", type = "group", order = 13, args ={ showcenter = { type = 'execute', order = 14, name = "kg panels", desc = "바탕배경 판넬(kg panels) 설정창을 불러옵니다.", func = function() ChatFrame1EditBox:SetText("/kgpanels config"); ChatEdit_SendText( ChatFrame1EditBox ); end, }, }, }, } } -- Add config to Blizzard menu LibStub("AceConfig-3.0"):RegisterOptionsTable("DevilUI", options) LibStub("AceConfigDialog-3.0"):AddToBlizOptions("DevilUI")
Last edited by bluefox100 : 09-06-16 at 07:36 AM.
|