melonJS
    Preparing search index...

    Interface UISkin

    What every widget skin shares: the atlas its regions come from, and how much of each region's edge is kept unscaled when it is stretched.

    A region drawn bigger than its art is drawn as a nine-slice: the corners keep their size and the edges and middle stretch, so a 190 pixel wide button image makes a button of any width.

    interface UISkin {
        atlas: TextureAtlas;
        insetx?: number;
        insety?: number;
    }

    Hierarchy (View Summary)

    Index

    the atlas the regions are read from

    insetx?: number

    the width of a corner kept unscaled, in pixels; a quarter of the region's width by default

    insety?: number

    the height of a corner kept unscaled, in pixels; a quarter of the region's height by default