@quenty/roundedbackingbuilder

2.1.0 • Public • Published

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

RoundedBackingBuilder:CreateTopShadow(backing)

RoundedBackingBuilder:CreateShadow(backing)

Package Sidebar

Install

npm i @quenty/roundedbackingbuilder

Weekly Downloads

1

Version

2.1.0

License

MIT

Unpacked Size

8.66 kB

Total Files

6

Last publish

Collaborators

  • quenty