Closed rbreslow closed 4 years ago
This PR makes the following changes to improve the design and modularity of the preferences UI:
checkRow
padding
DPropertySheet
SpeakSettingsTagStyle
speak.util.RoundedRect
cl_util.lua
surface.DrawPoly
speak_RadioRow
cl_locale.lua
See that Luacheck is passing:
$ ./scripts/test . . .
See that things work in game:
No more questions
@GitSparTV Appreciate your perspective. You've got my mind thinking.
Overview
This PR makes the following changes to improve the design and modularity of the preferences UI:
checkRow
,padding
, etc) have now been rewritten as individual Derma controlsDPropertySheet
are now individual Derma controls in their own fileSpeakSettingsTagStyle
hook in anticipation of tag preferences specific to DarkRP compatibilityspeak.util.RoundedRect
tocl_util.lua
for drawing rounded rectangles withsurface.DrawPoly
speak_RadioRow
control that usesspeak.util.RoundedRect
and the stencil buffer to paint a container encapsulating radio choicescl_locale.lua
to be localized later onTesting Instructions
See that Luacheck is passing:
See that things work in game: