Skip to content

Commit 339fd09

Browse files
committed
门派染色Hover实现改为KGUI原生方式
1 parent 948750a commit 339fd09

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

MY_ChatLog/src/MY_ChatLog.lua

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -273,20 +273,6 @@ function MY_ChatLog.OnEvent(event)
273273
end
274274
end
275275

276-
function MY_ChatLog.OnMouseIn()
277-
local name = this:GetName()
278-
if name == "Wnd_ChatChannel" then
279-
this:Lookup("Btn_Only"):Show()
280-
end
281-
end
282-
283-
function MY_ChatLog.OnMouseOut()
284-
local name = this:GetName()
285-
if name == "Wnd_ChatChannel" then
286-
this:Lookup("Btn_Only"):Hide()
287-
end
288-
end
289-
290276
function MY_ChatLog.OnLButtonClick()
291277
local name = this:GetName()
292278
if name == "Btn_Close" then
@@ -798,6 +784,7 @@ local menu = {
798784
}
799785
MY.RegisterPlayerAddonMenu('MY_CHATLOG_MENU', menu)
800786
MY.RegisterTraceButtonMenu('MY_CHATLOG_MENU', menu)
787+
MY.Game.AddHotKey("MY_ChatLog", _L['chat log'], MY_ChatLog.Toggle, nil)
801788
end
802789

803790
local PS = {}

MY_ChatLog/ui/MY_ChatLog.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ Moveable=0
303303
FollowMove=0,0
304304
FollowSize=0,0
305305
DummyWnd=0
306-
Hover=Image_ChatChannelBg_Hover
306+
Hover=Image_ChatChannelBg_Hover|Btn_Only
307307
MBStatus=Image_ChatChannelBg_Down
308308

309309
[CheckBox_ChatChannel]
@@ -927,4 +927,3 @@ SelectBgColorAlpha=255
927927
SelFontScheme=18
928928
CaretFontScheme=18
929929
SelectBgColor=black
930-

0 commit comments

Comments
 (0)