배틀리
2016-12-26 03:11
조회: 6,096
추천: 4
채팅창 링크의 마우스오버 툴팁채팅창의 아이템이나 스킬, 업적 등의 링크를 클릭하는 것 보다 마우스오버로 빠르게 툴팁을 볼 필요가 있어서 찾았는데 스크립트 몇 줄로 간단히 되는 거였네요. 찾는 분이 계실 것 같아 남깁니다. local linkTypes = {item=1,enchant=1,spell=1,quest = 1,achievement=1,currency=1,glyph=1,instancelock=1,talent=1} for i = 1, NUM_CHAT_WINDOWS do _G["ChatFrame"..i]:HookScript("OnHyperlinkEnter", function(self, link) local t = strmatch(link, "^(.-):") if linkTypes[t] then GameTooltip:SetOwner(UIParent, "ANCHOR_CURSOR") GameTooltip:SetHyperlink(link) GameTooltip:Show() end end) _G["ChatFrame"..i]:HookScript("OnHyperlinkLeave", function() GameTooltip:Hide() end) end |
인벤 공식 앱
댓글 알람 기능 장착! 최신 게임뉴스를 한 눈에 보자