@quenty/roundedbackingbuilder
v2.2.0
Published
Construct a rounded backing with a shadow
Downloads
8
Readme
RoundedBackingBuilder
Construct a rounded backing with a shadow. This existed before UICorner existed, and remains for backwards compatability with games that still leverage this. Note that the dropshadow created by this is still impossible to recreate with a UICorner, so this provides some utility.
Installation
npm install @quenty/roundedbackingbuilder --save
Usage
Usage is designed to be simple.
RoundedBackingBuilder.new(options)
Initializes a new RoundedBackingBuilder
RoundedBackingBuilder:Create(gui)
RoundedBackingBuilder:CreateBacking(gui)
RoundedBackingBuilder:CreateTopBacking(gui)
Only top two corners are rounded
RoundedBackingBuilder:CreateLeftBacking(gui)
RoundedBackingBuilder:CreateRightBacking(gui)
RoundedBackingBuilder:CreateBottomBacking(gui)
Only bottom two corners are rounded