Jump to content

Spyrö

Member Since 07 Mar 2010
Offline Last Active Today, 12:29 AM
*****

Posts I've Made

In Topic: Default UI Scripts

14 February 2015 - 12:31 AM

View Postphael, on 14 February 2015 - 12:25 AM, said:

This is very helpful, thank you. I just discovered the # but I'm unclear as to how it exactly works. Not very experienced with coding :P
Care to break it down?
The # operator returns the number of elements in a table. In this case I'm using it to generate an index for a new element (Total Elements+1).

In Topic: Default UI Scripts

01 February 2015 - 11:11 PM

View Postphael, on 12 January 2015 - 02:10 PM, said:

Posted Image
local function ShowOnlyonmouseover(Frame)
  local FrameList = { Frame:GetChildren() }
  FrameList[#FrameList+1] = Frame
  Frame:SetAlpha(0)
  for _, V in pairs(FrameList) do
	V:HookScript("OnLeave", function() Frame:SetAlpha(0) end)
	V:HookScript("OnEnter", function() Frame:SetAlpha(1) end)
  end
end

In Topic: micro menu bar and bag bar

25 January 2015 - 02:40 PM

local MicroButtonsParent = CreateFrame("Frame", "MicroButtonsParent", UIParent)
MicroButtonsParent:SetScale(1)
MicroButtonsParent:SetSize(451, 35)
MicroButtonsParent:SetPoint("TOPLEFT", UIParent, "TOPLEFT", 0, 0)

-- MicroMenu repositioning
CharacterMicroButton:ClearAllPoints()
CharacterMicroButton:SetPoint("TOPLEFT", MicroButtonsParent, "TOPLEFT", -1, 22)
CharacterMicroButton.SetPoint = function() end
for _, B in pairs(MICRO_BUTTONS) do
  _G[B]:SetScale(1)
  _G[B]:SetParent(MicroButtonsParent)
end

-- Bags
local Bag = { MainMenuBarBackpackButton, CharacterBag0Slot, CharacterBag1Slot, CharacterBag2Slot, CharacterBag3Slot }
for i = 1, 5 do
  Bag[i]:SetScale(1.11)
  Bag[i]:ClearAllPoints()
  Bag[i]:SetParent(MicroButtonsParent)
  if i == 1 then Bag[i]:SetPoint("BOTTOMLEFT", MainMenuMicroButton, "BOTTOMRIGHT", 0, 2)
  else Bag[i]:SetPoint("LEFT", Bag[i-1], "RIGHT", 0, 0) end
end

-- Making visible only on mouse over
local FrameList = { MicroButtonsParent:GetChildren() }
FrameList[#FrameList+1] = MicroButtonsParent
MicroButtonsParent:SetAlpha(0)
for _, V in pairs(FrameList) do
  V:HookScript("OnLeave", function(self) MicroButtonsParent:SetAlpha(0) end)
  V:HookScript("OnEnter", function(self) MicroButtonsParent:SetAlpha(1) end)
end

In Topic: Knowing when you can sap out of a CC

25 January 2015 - 02:21 PM

Nameplate color changes (different color for nameplates out of combat) is the best way to know who is out of combat. It basically gives you super-human awareness of combat statuses without any effort at all.

In Topic: Gaming Laptop

12 January 2015 - 12:37 AM

CLEVO P377SM-A w/ 120Hz panel.

<