Skip to content

Commit

Permalink
Remove HM_Button
Browse files Browse the repository at this point in the history
  • Loading branch information
haimanman committed Jul 20, 2017
1 parent 955451b commit a3b8407
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions HM_0Base/HM.lua
Original file line number Diff line number Diff line change
Expand Up @@ -112,26 +112,29 @@ end

-- initlization
_HM.Init = function()
local pFrame = Player_GetFrame()
local hFrame = _HM.OpenPanel(true)
-- button
--[[
local pFrame = Player_GetFrame()
local button = pFrame:Lookup("HM_Button")
if not button then
button = hFrame:Lookup("Btn_Menu")
button:SetName("HM_Button")
button:ChangeRelation(pFrame, true, true)
button:SetRelPos(pFrame:GetSize() - 27 * 3 - button:GetSize(), 15)
button.OnMouseEnter = function()
local nX, nY = this:GetAbsPos()
local nW, nH = this:GetSize()
local szTip = GetFormatText("<" .. _HM.szShort .. ">\n", 101) .. GetFormatText(_L["Click to open setting panel!"], 106)
OutputTip(szTip, 400, {nX, nY, nW, nH})
end
button.OnLButtonClick = _HM.TogglePanel
button.OnRButtonClick = function()
button.OnRButtonClick = function()s
this:Destroy()
end
button:Show()
end
--]]
-- hide
hFrame:Hide()
-- hotkey
Expand Down
6 changes: 3 additions & 3 deletions HM_0Base/HM_About.lua
Original file line number Diff line number Diff line change
Expand Up @@ -317,16 +317,16 @@ _HM_About.PS.OnTaboxCheck = function(frame, nIndex, szTitle)
--end)
ui:Append("Shadow", { x = 0, y = 5, w = 532, h = 168, alpha = 128 }):Color(128, 128, 128)
if HM.szClientLang == "zhcn" then
ui:Append("Text", { x = 5, y = 5, font = 239, w = 532, h = 100, txt = "海鳗插件官网" }):Align(1, 1):Click(function()
ui:Append("Text", { x = 0, y = 5, font = 239, w = 532, h = 100, txt = "海鳗插件官网" }):Align(1, 1):Click(function()
if HM_Secret then
HM.OpenPanel(_L["Haiman Site"])
else
HM.Sysmsg(HM.szRemoteHost .. " 或微信公众号【海鳗插件】")
HM.Sysmsg(HM.szRemoteHost .. " 或微信公众号【海鳗插件】")
end
end)
ui:Append("Text", { x = 5, y = 90, font = 61, w = 532, h = 20, txt = "游戏辅助 资料查询 科举题库" }):Align(1, 1)
ui:Append("Text", { x = 5, y = 120, font = 61, w = 532, h = 20, txt = "开服监控 日常提醒 玩家交流" }):Align(1, 1)
ui:Append("Text", { x = 0, y = 90, font = 61, w = 532, h = 20, txt = "游戏辅助 资料查询 科举题库" }):Align(1, 1)
ui:Append("Text", { x = 0, y = 120, font = 61, w = 532, h = 20, txt = "开服监控 日常提醒 玩家交流" }):Align(1, 1)
else
ui:Append("Text", { x = 0, y = 5, font = 239, w = 532, h = 100, txt = "Empty color is the color that is empty." }):Align(1, 1)
end
Expand Down

0 comments on commit a3b8407

Please sign in to comment.