| | 1 | | namespace DCL.ECSComponents |
| | 2 | | { |
| | 3 | | public static class PBUiText_Defaults |
| | 4 | | { |
| | 5 | | public static Color3 GetColor(this PBUiText self) |
| | 6 | | { |
| 0 | 7 | | return self.Color ?? Color3_Defaults.colorWhite; |
| | 8 | | } |
| | 9 | |
|
| | 10 | | public static TextAlignMode GetTextAlign(this PBUiText self) |
| | 11 | | { |
| 0 | 12 | | return self.HasTextAlign ? self.TextAlign : TextAlignMode.TamMiddleCenter; |
| | 13 | | } |
| | 14 | |
|
| | 15 | | public static Font GetFont(this PBUiText self) |
| | 16 | | { |
| 0 | 17 | | return self.HasFont ? self.Font : Font.FSansSerif; |
| | 18 | | } |
| | 19 | |
|
| | 20 | | public static float GetFontSize(this PBUiText self) |
| | 21 | | { |
| 1 | 22 | | return self.HasFontSize ? self.FontSize : 10; |
| | 23 | | } |
| | 24 | | } |
| | 25 | | } |