API ReferenceEditor
Themeclass
object→Theme
Methods4
Showing 4 methods
public static void DrawButton(Sandbox.Rect LocalRect, string text = null, string Icon = null, bool Enabled = True, System.Nullable`1<Color> Tint = null)
| Parameter | Type | Description |
|---|---|---|
| LocalRect | Rect | — |
| text = null | string | — |
| Icon = null | string | — |
| Enabled = True | bool | — |
| Tint = null | Nullable<Color> | — |
Returns:
void—public static void DrawDropdown(Sandbox.Rect rect, string text, string icon, bool open, bool disabled = False)
Draw a dropdown control with a text label and an icon. Has a up/down chevron icon to indicate the dropdown state.
| Parameter | Type | Description |
|---|---|---|
| rect | Rect | — |
| text | string | — |
| icon | string | — |
| open | bool | — |
| disabled = False | bool | — |
Returns:
void—public static void DrawFilename(Sandbox.Rect rect, string filename, Sandbox.TextFlag flags, Color color)
| Parameter | Type | Description |
|---|---|---|
| rect | Rect | — |
| filename | string | — |
| flags | TextFlag | — |
| color | Color | — |
Returns:
void—public static Color GetTint(Sandbox.EditorTint tint)
| Parameter | Type | Description |
|---|---|---|
| tint | EditorTint | — |
No results match this filter.