Advertisement
alexdubovyck

[НЕ УДАЛЯТЬ!] Как закрепить счётчик FPS, чтобы не пропадал!

Sep 12th, 2017
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. ---------------------------------------------
  2. -- PLAYER_ENTERING_WORLD изменения в интерфейсисе
  3. ---------------------------------------------
  4. local f = CreateFrame("Frame")
  5. function eventHandler(self, event, ...)
  6.  
  7. -- /run print(FramerateText:IsShown())
  8. if FramerateText:IsShown() == false
  9. then
  10. ToggleFramerate();
  11. -- /run ToggleFramerate();
  12. end
  13.  
  14. end;
  15. f:SetScript("OnEvent", eventHandler)
  16. f:RegisterEvent("PLAYER_ENTERING_WORLD")
  17.  
  18.  
  19.  
  20. --[[-----------------------------------------------
  21. PLAYER_ENTERING_WORLD
  22. Вызов спутника
  23. --]]-----------------------------------------------
  24. local f = CreateFrame("Frame")
  25. function eventHandler(self, event, ...)
  26.  
  27. if UnitName("player") == "Lagune" then
  28. CallCompanion("CRITTER", 13)
  29. end
  30.  
  31. end;
  32. f:SetScript("OnEvent", eventHandler)
  33. f:RegisterEvent("PLAYER_ENTERING_WORLD")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement