이마트 인터넷몰에서 이거저거 물건들을 주문했습니다.
그런데 제가 시키지도 않은 오징어 2마리가 추가되어있더군요.
무슨 이벤트인거 같기는한데; 아무튼 패스하고
쉽게 만들 수 있는 요리같은게 있을까요?
/run ft=STANDARD_TEXT_FONT;function Tm(s,t)s.time=t;if not s.str then s.str=s:CreateFontString(s:GetName().."C","BORDER")s.str:SetFont(ft,10,"OUTLINE")s.str:SetAllPoints(s)end;s:SetScript("OnUpdate",STm)end
2. 여기서 사이즈 결정하는데 3.2 /2.2/1.4가 사이즈인데 뭔소리냐면 3자리숫자 즉10m이상이면 프레임크기 나누기 3.2만큼
9~1m 이거 2자리숫자인데 여긴 2.2만큼 9~1 1자리숫자는 1.4만큼 프레임크기에서 나눈다는소리 이 크기를 키워주면 글자크기 작아짐
/run function STm(s,el)local t=s.time-GetTime()if(t>0)then KT(t,s)else s.str:SetText("")end;end function KTS(t,s)local scale=0;if(t>600)then scale=3.2 elseif(t>9)then scale=2.2 else scale=1.4 end;s.str:SetFont(ft,s:GetSize()/scale,"OUTLINE")end
3.
/run function KT(t,s) KTS(t,s) if(t>60)then s.str:SetText(ceil(t/60).."m")s.str:SetTextColor(1,1,1,1)else if(t<4)then s.str:SetTextColor(1,0,0,1)else s.str:SetTextColor(1,1,0,1)end s.str:SetText(half(t))end;end
4.
/run function half(n)if(n%1>0.5)then return ceil(n)else return floor(n)end;end function OnCD(s,st,dur) if((dur+st-GetTime())>1.6 and s:GetName())then Tm(s,st+dur)end;end hooksecurefunc(getmetatable(ActionButton1Cooldown).__index, 'SetCooldown', OnCD)
5.
/run acts={}function actU()for cooldown in pairs(acts)do local st, dur=GetActionCooldown(cooldown.cc)OnCD(cooldown,st,dur)end;end
6.
/run for _,bt in pairs(ActionBarButtonEventsFrame.frames)do acts[bt.cooldown]=true;bt.cooldown.cc=bt.action;end e8="ACTIONBAR_UPDATE_COOLDOWN"f=CreateFrame('Frame')f:SetScript('OnEvent',function(_,e,...) if(e==e8)then actU()end end)f:RegisterEvent(e8)