9797
9898function module .syncGuiElementStripeColor (guiElement )
9999 local function setColors ()
100- if (( guiElement .LayoutOrder + 1 ) % 2 == 0 ) then
100+ if guiElement .LayoutOrder + 1 % 2 == 0 then
101101 guiElement .BackgroundColor3 = settings ().Studio .Theme :GetColor (Enum .StudioStyleGuideColor .MainBackground )
102102 else
103103 guiElement .BackgroundColor3 = settings ().Studio .Theme :GetColor (Enum .StudioStyleGuideColor .CategoryItem )
@@ -183,7 +183,7 @@ function module.MakeDefaultFixedHeightFrame(name)
183183end
184184
185185function module .AdjustHeightDynamicallyToLayout (frame , uiLayout , optPadding )
186- if ( not optPadding ) then
186+ if not optPadding then
187187 optPadding = 0
188188 end
189189
@@ -208,41 +208,6 @@ function module.AddStripedChildrenToListFrame(listFrame, frames)
208208 end
209209end
210210
211- local function MakeSectionInternal (parentGui , name , title , contentHeight )
212- local frame = Instance .new (" Frame" )
213- frame .Name = name
214- frame .BackgroundTransparency = 1
215- frame .Parent = parentGui
216- frame .BackgroundTransparency = 1
217- frame .BorderSizePixel = 0
218-
219- -- If title is "nil', no title bar.
220- local contentYOffset = 0
221- local titleBar = nil
222- if (title ~= nil ) then
223- local titleBarFrame = Instance .new (" Frame" )
224- titleBarFrame .Name = " TitleBarFrame"
225- titleBarFrame .Parent = frame
226- titleBarFrame .Position = UDim2 .new (0 , 0 , 0 , 0 )
227- titleBarFrame .LayoutOrder = 0
228-
229- local titleBar = Instance .new (" TextLabel" )
230- titleBar .Name = " TitleBarLabel"
231- titleBar .Text = title
232- titleBar .Parent = titleBarFrame
233- titleBar .BackgroundTransparency = 1
234- titleBar .Position = UDim2 .new (0 , module .kDefaultHMargin , 0 , 0 )
235-
236- module .syncGuiElementFontColor (titleBar )
237-
238- contentYOffset = contentYOffset + module .kTitleBarHeight
239- end
240-
241- frame .Size = UDim2 .new (1 , 0 , 0 , contentYOffset + contentHeight )
242-
243- return frame
244- end
245-
246211function module .MakeDefaultPropertyLabel (text , opt_ignoreThemeUpdates )
247212 local label = Instance .new (' TextLabel' )
248213 label .RichText = true
@@ -256,7 +221,7 @@ function module.MakeDefaultPropertyLabel(text, opt_ignoreThemeUpdates)
256221 label .Position = UDim2 .new (0 , module .DefaultLineLabelLeftMargin , 0.5 , module .kTextVerticalFudge )
257222 label .Size = UDim2 .new (0 , module .DefaultLineLabelWidth , 1 , 0 )
258223
259- if ( not opt_ignoreThemeUpdates ) then
224+ if not opt_ignoreThemeUpdates then
260225 module .syncGuiElementFontColor (label )
261226 end
262227
0 commit comments