add gs
This commit is contained in:
+47
@@ -0,0 +1,47 @@
|
||||
local CorePackages = game:GetService("CorePackages")
|
||||
local Roact = require(CorePackages.Roact)
|
||||
|
||||
local LocaleSelector = require(script.Parent.LocaleSelector)
|
||||
|
||||
local LabeledLocaleSelector = Roact.Component:extend("LabeledLocaleSelector")
|
||||
|
||||
function LabeledLocaleSelector:render()
|
||||
return Roact.createElement("Frame", {
|
||||
Size = UDim2.new(0, 300, 0, 25),
|
||||
BackgroundTransparency = 1,
|
||||
BorderSizePixel = 0,
|
||||
LayoutOrder = self.props.LayoutOrder
|
||||
}, {
|
||||
Layout = Roact.createElement("UIListLayout", {
|
||||
SortOrder = Enum.SortOrder.LayoutOrder,
|
||||
FillDirection = Enum.FillDirection.Horizontal,
|
||||
Padding = UDim.new(0, 5),
|
||||
}),
|
||||
|
||||
LocaleIdLabel = Roact.createElement("TextLabel", {
|
||||
Text = self.props.LabelText,
|
||||
TextXAlignment = "Right",
|
||||
TextYAlignment = "Center",
|
||||
TextColor3 = self.props.TextColor3,
|
||||
BackgroundTransparency = 1,
|
||||
BorderSizePixel = 0,
|
||||
Size = UDim2.new(0, 50, 0, 25),
|
||||
LayoutOrder = 0,
|
||||
}),
|
||||
|
||||
LocaleSelectorGroup = Roact.createElement(LocaleSelector, {
|
||||
Window = self.props.Window,
|
||||
Size = UDim2.new(0, 200, 0, 25),
|
||||
BackgroundColor3 = self.props.BackgroundColor3,
|
||||
TextColor3 = self.props.TextColor3,
|
||||
BorderColor3 = self.props.BorderColor3,
|
||||
ButtonHoverColor3 = self.props.ButtonHoverColor3,
|
||||
ButtonDownColor3 = self.props.ButtonDownColor3,
|
||||
InitialLocaleId = self.props.InitialLocaleId,
|
||||
SetLocaleId = self.props.SetLocaleId,
|
||||
LayoutOrder = 1,
|
||||
}),
|
||||
})
|
||||
end
|
||||
|
||||
return LabeledLocaleSelector
|
||||
Reference in New Issue
Block a user