Arma Reforger Script API
Loading...
Searching...
No Matches
Static Public Member Functions | Static Public Attributes | List of all members
UIColors Interface Reference

Static Public Member Functions

static string GetColorAttribute (Color color)
 Get the provided colour in a format usable as default of Attributes.
 
static string FormatColor (Color color)
 Get the provided color in a format usable for Rich Text formatting.
 
static Color CopyColor (Color uiConstColor)
 Use this to fetch colors, for safety.
 

Static Public Attributes

static const ref Color DARK_SAGE = Color.FromSRGBA(86, 92, 84, 255)
 
static const ref Color DARK_GREY = Color.FromSRGBA(85, 85, 85, 255)
 
static const ref Color TRANSPARENT = Color.FromSRGBA(0, 0, 0, 0)
 
static const ref Color CONTRAST_DISABLED = Color.FromSRGBA(0, 0, 0, 38)
 
static const ref Color CONTRAST_DEFAULT = Color.FromSRGBA(226, 167, 79, 76)
 
static const ref Color CONTRAST_HOVERED = Color.FromSRGBA(239, 199, 139, 102)
 
static const ref Color CONTRAST_CLICKED = Color.FromSRGBA(226, 167, 79, 255)
 
static const ref Color CONTRAST_CLICKED_HOVERED = Color.FromSRGBA(226, 167, 79, 255)
 
static const ref Color WHITE_DISABLED = Color.FromSRGBA(255, 255, 255, 38)
 
static const ref Color WHITE_DEFAULT = Color.FromSRGBA(255, 255, 255, 25)
 
static const ref Color WHITE_HOVERED = Color.FromSRGBA(255, 255, 255, 102)
 
static const ref Color BACKGROUND_DISABLED = Color.FromSRGBA(0, 0, 0, 38)
 
static const ref Color BACKGROUND_DEFAULT = Color.FromSRGBA(0, 0, 0, 102)
 
static const ref Color BACKGROUND_HOVERED = Color.FromSRGBA(0, 0, 0, 153)
 
static const ref Color INFO = Color.FromSRGBA(0, 128, 255, 255)
 
static const ref Color HIGHLIGHTED = Color.FromSRGBA(255, 203, 123, 255)
 
static const ref Color NEUTRAL_INFORMATION = Color.FromSRGBA(255, 255, 255, 255)
 
static const ref Color NEUTRAL_ACTIVE_STANDBY = Color.FromSRGBA(189, 189, 188, 255)
 
static const ref Color IDLE_ACTIVE = Color.FromSRGBA(255, 255, 255, 179)
 
static const ref Color IDLE_DISABLED = Color.FromSRGBA(77, 77, 77, 255)
 
static const ref Color IDLE_DISABLED_TRANSPARENT = Color.FromSRGBA(77, 77, 77, 153)
 
static const ref Color WARNING = Color.FromSRGBA(249, 67, 67, 255)
 
static const ref Color WARNING_DISABLED = Color.FromSRGBA(146, 72, 72, 255)
 
static const ref Color WARNING_DISABLED_FOCUSED = Color.FromSRGBA(173, 71, 71, 255)
 
static const ref Color SLIGHT_WARNING = Color.FromSRGBA(234, 203, 131, 255)
 
static const ref Color CONFIRM = Color.FromSRGBA(67, 194, 93, 255)
 
static const ref Color CONTRAST_COLOR = Color.FromSRGBA(226, 167, 79, 255)
 
static const ref Color ONLINE = Color.FromSRGBA(0, 128, 255, 255)
 
static const ref Color EDIT_WIDGET_BACKGROUND = Color.FromSRGBA(42, 42, 42, 255)
 
static const ref Color SUB_HEADER = Color.FromSRGBA(255, 220, 105, 255)
 
static const ref Color EDITOR_ICON_COLOR_NEUTRAL = Color.FromSRGBA(255, 255, 255, 255)
 Colors for Editor Icons when an entity does not have an assigned faction and is not destroyed.
 
static const ref Color EDITOR_ICON_COLOR_DESTROYED = Color(0.25, 0.25, 0.25, 1)
 Colors for Editor Icons when an entity is dead or destroyed.
 

Member Function Documentation

◆ CopyColor()

static Color UIColors.CopyColor ( Color  uiConstColor)
static

Use this to fetch colors, for safety.

◆ FormatColor()

static string UIColors.FormatColor ( Color  color)
static

Get the provided color in a format usable for Rich Text formatting.

Parameters
colorif null, considered white
Returns
the provided colour in "R, G, B, A" string format (note the commas, values in range 0..255)

◆ GetColorAttribute()

static string UIColors.GetColorAttribute ( Color  color)
static

Get the provided colour in a format usable as default of Attributes.

Parameters
colorif null, considered white
Returns
the provided colour in "R G B A" string format (values in range 0..1)

Member Data Documentation

◆ BACKGROUND_DEFAULT

const ref Color UIColors.BACKGROUND_DEFAULT = Color.FromSRGBA(0, 0, 0, 102)
static

◆ BACKGROUND_DISABLED

const ref Color UIColors.BACKGROUND_DISABLED = Color.FromSRGBA(0, 0, 0, 38)
static

◆ BACKGROUND_HOVERED

const ref Color UIColors.BACKGROUND_HOVERED = Color.FromSRGBA(0, 0, 0, 153)
static

◆ CONFIRM

const ref Color UIColors.CONFIRM = Color.FromSRGBA(67, 194, 93, 255)
static

◆ CONTRAST_CLICKED

const ref Color UIColors.CONTRAST_CLICKED = Color.FromSRGBA(226, 167, 79, 255)
static

◆ CONTRAST_CLICKED_HOVERED

const ref Color UIColors.CONTRAST_CLICKED_HOVERED = Color.FromSRGBA(226, 167, 79, 255)
static

◆ CONTRAST_COLOR

const ref Color UIColors.CONTRAST_COLOR = Color.FromSRGBA(226, 167, 79, 255)
static

◆ CONTRAST_DEFAULT

const ref Color UIColors.CONTRAST_DEFAULT = Color.FromSRGBA(226, 167, 79, 76)
static

◆ CONTRAST_DISABLED

const ref Color UIColors.CONTRAST_DISABLED = Color.FromSRGBA(0, 0, 0, 38)
static

◆ CONTRAST_HOVERED

const ref Color UIColors.CONTRAST_HOVERED = Color.FromSRGBA(239, 199, 139, 102)
static

◆ DARK_GREY

const ref Color UIColors.DARK_GREY = Color.FromSRGBA(85, 85, 85, 255)
static

◆ DARK_SAGE

const ref Color UIColors.DARK_SAGE = Color.FromSRGBA(86, 92, 84, 255)
static

◆ EDIT_WIDGET_BACKGROUND

const ref Color UIColors.EDIT_WIDGET_BACKGROUND = Color.FromSRGBA(42, 42, 42, 255)
static

◆ EDITOR_ICON_COLOR_DESTROYED

const ref Color UIColors.EDITOR_ICON_COLOR_DESTROYED = Color(0.25, 0.25, 0.25, 1)
static

Colors for Editor Icons when an entity is dead or destroyed.

◆ EDITOR_ICON_COLOR_NEUTRAL

const ref Color UIColors.EDITOR_ICON_COLOR_NEUTRAL = Color.FromSRGBA(255, 255, 255, 255)
static

Colors for Editor Icons when an entity does not have an assigned faction and is not destroyed.

◆ HIGHLIGHTED

const ref Color UIColors.HIGHLIGHTED = Color.FromSRGBA(255, 203, 123, 255)
static

◆ IDLE_ACTIVE

const ref Color UIColors.IDLE_ACTIVE = Color.FromSRGBA(255, 255, 255, 179)
static

◆ IDLE_DISABLED

const ref Color UIColors.IDLE_DISABLED = Color.FromSRGBA(77, 77, 77, 255)
static

◆ IDLE_DISABLED_TRANSPARENT

const ref Color UIColors.IDLE_DISABLED_TRANSPARENT = Color.FromSRGBA(77, 77, 77, 153)
static

◆ INFO

const ref Color UIColors.INFO = Color.FromSRGBA(0, 128, 255, 255)
static

◆ NEUTRAL_ACTIVE_STANDBY

const ref Color UIColors.NEUTRAL_ACTIVE_STANDBY = Color.FromSRGBA(189, 189, 188, 255)
static

◆ NEUTRAL_INFORMATION

const ref Color UIColors.NEUTRAL_INFORMATION = Color.FromSRGBA(255, 255, 255, 255)
static

◆ ONLINE

const ref Color UIColors.ONLINE = Color.FromSRGBA(0, 128, 255, 255)
static

◆ SLIGHT_WARNING

const ref Color UIColors.SLIGHT_WARNING = Color.FromSRGBA(234, 203, 131, 255)
static

◆ SUB_HEADER

const ref Color UIColors.SUB_HEADER = Color.FromSRGBA(255, 220, 105, 255)
static

◆ TRANSPARENT

const ref Color UIColors.TRANSPARENT = Color.FromSRGBA(0, 0, 0, 0)
static

◆ WARNING

const ref Color UIColors.WARNING = Color.FromSRGBA(249, 67, 67, 255)
static

◆ WARNING_DISABLED

const ref Color UIColors.WARNING_DISABLED = Color.FromSRGBA(146, 72, 72, 255)
static

◆ WARNING_DISABLED_FOCUSED

const ref Color UIColors.WARNING_DISABLED_FOCUSED = Color.FromSRGBA(173, 71, 71, 255)
static

◆ WHITE_DEFAULT

const ref Color UIColors.WHITE_DEFAULT = Color.FromSRGBA(255, 255, 255, 25)
static

◆ WHITE_DISABLED

const ref Color UIColors.WHITE_DISABLED = Color.FromSRGBA(255, 255, 255, 38)
static

◆ WHITE_HOVERED

const ref Color UIColors.WHITE_HOVERED = Color.FromSRGBA(255, 255, 255, 102)
static

The documentation for this interface was generated from the following file: