Skip to content

Commit

Permalink
门派染色Hover实现改为KGUI原生方式
Browse files Browse the repository at this point in the history
  • Loading branch information
tinymins committed Dec 20, 2016
1 parent 948750a commit 339fd09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
15 changes: 1 addition & 14 deletions MY_ChatLog/src/MY_ChatLog.lua
Original file line number Diff line number Diff line change
Expand Up @@ -273,20 +273,6 @@ function MY_ChatLog.OnEvent(event)
end
end

function MY_ChatLog.OnMouseIn()
local name = this:GetName()
if name == "Wnd_ChatChannel" then
this:Lookup("Btn_Only"):Show()
end
end

function MY_ChatLog.OnMouseOut()
local name = this:GetName()
if name == "Wnd_ChatChannel" then
this:Lookup("Btn_Only"):Hide()
end
end

function MY_ChatLog.OnLButtonClick()
local name = this:GetName()
if name == "Btn_Close" then
Expand Down Expand Up @@ -798,6 +784,7 @@ local menu = {
}
MY.RegisterPlayerAddonMenu('MY_CHATLOG_MENU', menu)
MY.RegisterTraceButtonMenu('MY_CHATLOG_MENU', menu)
MY.Game.AddHotKey("MY_ChatLog", _L['chat log'], MY_ChatLog.Toggle, nil)
end

local PS = {}
Expand Down
3 changes: 1 addition & 2 deletions MY_ChatLog/ui/MY_ChatLog.ini
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ Moveable=0
FollowMove=0,0
FollowSize=0,0
DummyWnd=0
Hover=Image_ChatChannelBg_Hover
Hover=Image_ChatChannelBg_Hover|Btn_Only
MBStatus=Image_ChatChannelBg_Down

[CheckBox_ChatChannel]
Expand Down Expand Up @@ -927,4 +927,3 @@ SelectBgColorAlpha=255
SelFontScheme=18
CaretFontScheme=18
SelectBgColor=black

0 comments on commit 339fd09

Please sign in to comment.