I'm writing a new UI addon that will place artwork in the background and include some buttons to click on for various things such as showing and hiding action bars, hearthstone, and showing and hiding the minimap. The background artwork is showing correctly but when i include the lua code for the hearthstone button the artwork takes up the entire screen. I'm not sure exactly what i'm doing wrong here. Any help would be greatly appreciated. Thanks a bunch.
http://wowprogramming.com/docs/widgets/Region/SetAllPoints
In other words... You're telling it to anchor to all points of its parent. ;)
... which is UIParent, hence the fullscreen.
Maybe you want to have your NibsMain as the parent?
Generally It does not make sense to specify both Width and Height and more than one point.
Also "Hearth" is probably not a good frame name, as this will become a global variable. "NibsHearth" would be preferable.
local Hearth =