forked from rojo-rbx/rojo
* Switch git submodules to Wally packages * Update build snapshot * Add wally to foreman and use latest versions * Install packages in CI runners * Fix indents * Install packages in the correct directory * Install packages in correct dir of release action too * Remove submodules from ci checkout * Remove submodules from release checkout * Update selene with latest fix * Fix whitespace Co-authored-by: Lucien Greathouse <me@lpghatguy.com>
31 lines
653 B
Lua
31 lines
653 B
Lua
local Rojo = script:FindFirstAncestor("Rojo")
|
|
local Packages = Rojo.Packages
|
|
|
|
local Roact = require(Packages.Roact)
|
|
|
|
local e = Roact.createElement
|
|
|
|
local function SlicedImage(props)
|
|
local slice = props.slice
|
|
|
|
return e("ImageLabel", {
|
|
Image = slice.Image,
|
|
ImageColor3 = props.color,
|
|
ImageTransparency = props.transparency,
|
|
|
|
ScaleType = Enum.ScaleType.Slice,
|
|
SliceCenter = slice.Center,
|
|
SliceScale = slice.Scale,
|
|
|
|
Size = props.size,
|
|
Position = props.position,
|
|
AnchorPoint = props.anchorPoint,
|
|
|
|
ZIndex = props.zIndex,
|
|
LayoutOrder = props.layoutOrder,
|
|
BackgroundTransparency = 1,
|
|
}, props[Roact.Children])
|
|
end
|
|
|
|
return SlicedImage
|