Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

Sets the level at which the frame is layered relative to others in its strata.

Frame:SetFrameLevel(frameLevel)

Arguments[]

frameLevel
number [0-10000] - Layering level of the frame relative to others in its frameStrata.

Details[]

  • Frames with higher frame level are layered "in front of" frames with a lower frame level.
  • Raise() elevates the frame to a level that puts it ahead of others, while Lower() does the opposite.
  • By default, every frame is drawn just in front of its parent (if it has one); so usually child:GetFrameLevel() == parent:GetFrameLevel() + 1
  • SetFrameLevel() is equivalent to the XML attribute in <Frame frameLevel="">

Patch changes[]

Legion Patch 7.0.3 (2016-07-19): May be manually set to any value from 0 to 10000.[1]

References[]

 
  1. ^ TheDanW 2016-07-20. IRC log for #wowuidev.​ “(17:49.46) With 7.0.3, frame levels will no longer change automatically.... (17:59.34) [They] used to "compress" which caused all sorts of weird behaviour, like just the ordering of creating child frames could adjust your frame levels differently. (18:00.07) [They] now always stay what you set them to, and always sort correctly using that frame level”
Advertisement