View Single Post
07-01-14, 11:56 AM   #14
mich125
A Fallenroot Satyr
Join Date: Jan 2010
Posts: 27
I did it like that, but same thing, isnt this supposed to work? its pretty simple stuff i think, but im not rly good with coding etc, just trying to build ui, and i dont wanna use moveanything, i wanna have something that will work on different accounts/chars instantly, it shouldnt be that hard, maybe someone can help
Lua Code:
  1. local main = function()
  2.  
  3. MainMenuBarTexture0:Hide()
  4. MainMenuBarTexture1:Hide()
  5. MainMenuBarTexture2:Hide()
  6. MainMenuBarTexture3:Hide()
  7. MainMenuBarMaxLevelBar:SetAlpha(0)
  8. ActionBarUpButton:Hide()
  9. ActionBarDownButton:Hide()
  10. MainMenuBarPageNumber:Hide()
  11. MainMenuBarLeftEndCap:Hide()
  12. MainMenuBarRightEndCap:Hide()
  13. MainMenuBarMaxLevelBar:Hide()
  14.  
  15. ReputationWatchStatusBar:Hide()
  16. ReputationWatchBar:Hide()
  17. ReputationWatchBarOverlayFrame:Hide()
  18.  
  19. BuffFrame:SetScale(1.2)
  20. ConsolidatedBuffs:SetScale(1.1)
  21.  
  22. TargetFrameSpellBar.showShield = true;
  23. FocusFrameSpellBar.showShield = true;
  24.  
  25. PlayerFrame:ClearAllPoints()
  26. PlayerFrame:SetPoint("CENTER", UIParent, "CENTER", 225, 117)
  27. PlayerFrame:SetScale(1.1)
  28. PlayerFrame.SetPoint = function() end
  29.  
  30. CastingBarFrame:ClearAllPoints()
  31. CastingBarFrame:SetPoint("BOTTOM", UIParent, "BOTTOM", 0, 364)
  32. CastingBarFrame:SetScale(1)
  33. CastingBarFrame.SetPoint = function() end
  34.  
  35. TargetFrame:ClearAllPoints()
  36. TargetFrame:SetPoint("CENTER", UIParent, "CENTER", 225, -117)
  37. TargetFrame:SetScale(1.1)
  38. TargetFrame.SetPoint = function() end
  39.  
  40. FocusFrame:ClearAllPoints()
  41. FocusFrame:SetPoint("CENTER", UIParent, "CENTER", 212.5, 52)
  42. FocusFrame:SetScale(1.2)
  43. FocusFrame.SetPoint = function() end
  44.  
  45. FocusFrameSpellBar:ClearAllPoints()
  46. FocusFrameSpellBar:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 257, 370)
  47. FocusFrameSpellBar:SetScale(1.25)
  48. FocusFrameSpellBar.SetPoint = function() end
  49.  
  50. MainMenuExpBar:ClearAllPoints()
  51. MainMenuExpBar:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 265, 87)
  52. MainMenuExpBar:SetScale(1)
  53. MainMenuExpBar.SetPoint = function() end
  54.  
  55. StanceBarFrame:ClearAllPoints()
  56. StanceBarFrame:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 375, 100)
  57. StanceBarFrame:SetScale(1)
  58. StanceBarFrame.SetPoint = function() end
  59.  
  60. MultiBarBottomLeft:ClearAllPoints()
  61. MultiBarBottomLeft:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 272, 45)
  62. MultiBarBottomLeft:SetScale(1)
  63. MultiBarBottomLeft.SetPoint = function() end
  64.  
  65. MultiBarBottomRight:ClearAllPoints()
  66. MultiBarBottomRight:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", 784, 45)
  67. MultiBarBottomRight:SetScale(1)
  68. MultiBarBottomRight.SetPoint = function() end
  69.  
  70. PetActionBarFrame:ClearAllPoints()
  71. PetActionBarFrame:SetPoint("BOTTOM", UIParent, "BOTTOM", -159, 90)
  72. PetActionBarFrame:SetScale(1)
  73. PetActionBarFrame.SetPoint = function() end
  74.  
  75. end
  76.  
  77. local ef = CreateFrame("frame")
  78. ef:RegisterEvent("PLAYER_ENTERING_WORLD")
  79. ef:SetScript("OnEvent", function(self)
  80.  main()
  81.  main = nil
  82.  self:UnregisterEvent("PLAYER_ENTERING_WORLD")
  83.  self:SetScript("OnEvent", nil)
  84. end)

Last edited by mich125 : 07-01-14 at 12:04 PM.
  Reply With Quote