| | 1 | | using Decentraland.Common; |
| | 2 | |
|
| | 3 | | namespace DCL.ECSComponents |
| | 4 | | { |
| | 5 | | public static class PBUiDropdown_Defaults |
| | 6 | | { |
| | 7 | | public static Color4 GetColor(this PBUiDropdown self) => |
| 5 | 8 | | self.Color ?? Color_Defaults.color4Black; |
| | 9 | |
|
| | 10 | | public static Font GetFont(this PBUiDropdown self) => |
| 5 | 11 | | self.HasFont ? self.Font : Font.FSansSerif; |
| | 12 | |
|
| | 13 | | public static float GetFontSize(this PBUiDropdown self) => |
| 5 | 14 | | self.HasFontSize ? self.FontSize : 10; |
| | 15 | |
|
| | 16 | | public static bool IsInteractable(this PBUiDropdown self) => |
| 0 | 17 | | !self.Disabled; |
| | 18 | |
|
| | 19 | | public static int GetSelectedIndex(this PBUiDropdown self) => |
| 5 | 20 | | self.SelectedIndex <= -1 ? (self.AcceptEmpty ? -1 : 0) : self.SelectedIndex; |
| | 21 | |
|
| | 22 | | public static TextAlignMode GetTextAlign(this PBUiDropdown self) => |
| 5 | 23 | | self.HasTextAlign ? self.TextAlign : TextAlignMode.TamMiddleCenter; |
| | 24 | | } |
| | 25 | | } |