Elin Decompiled Documentation EA 23.102 Nightly
Loading...
Searching...
No Matches
ColorProfile.BlockColors Class Reference

Public Member Functions

void Init ()
 
int GetColor (ref Color c)
 

Public Attributes

Color _valid
 
Color _warning
 
Color _active
 
Color _inactive
 
Color _activeOpacity
 
Color _inactiveOpacity
 
Color _passive
 
Color _mapHighlight
 
int Valid
 
int Warning
 
int Inactive
 
int Active
 
int ActiveOpacity
 
int InactiveOpacity
 
int Passive
 
int MapHighlight
 

Static Public Attributes

const int DefColor = 104025
 
const int DefColorInactive = -1214986
 
const int DefColorActive = -1173751
 
const int DefColorValid = -2747875
 
const int DefColorWarning = -2828814
 

Detailed Description

Definition at line 23 of file ColorProfile.cs.

Member Function Documentation

◆ GetColor()

int ColorProfile.BlockColors.GetColor ( ref Color  c)
inline

Definition at line 79 of file ColorProfile.cs.

80 {
81 return -((int)(c.a * 10f) * 262144 + (int)(c.r * 64f) * 4096 + (int)(c.g * 64f) * 64 + (int)(c.b * 64f));
82 }

Referenced by ColorProfile.BlockColors.Init().

◆ Init()

void ColorProfile.BlockColors.Init ( )
inline

Definition at line 67 of file ColorProfile.cs.

68 {
69 Valid = GetColor(ref _valid);
72 Active = GetColor(ref _active);
77 }
int GetColor(ref Color c)
Definition: ColorProfile.cs:79

References ColorProfile.BlockColors._active, ColorProfile.BlockColors._activeOpacity, ColorProfile.BlockColors._inactive, ColorProfile.BlockColors._inactiveOpacity, ColorProfile.BlockColors._mapHighlight, ColorProfile.BlockColors._passive, ColorProfile.BlockColors._valid, ColorProfile.BlockColors._warning, ColorProfile.BlockColors.Active, ColorProfile.BlockColors.ActiveOpacity, ColorProfile.BlockColors.GetColor(), ColorProfile.BlockColors.Inactive, ColorProfile.BlockColors.InactiveOpacity, ColorProfile.BlockColors.MapHighlight, ColorProfile.BlockColors.Passive, ColorProfile.BlockColors.Valid, and ColorProfile.BlockColors.Warning.

Referenced by ColorProfile.Init().

Member Data Documentation

◆ _active

Color ColorProfile.BlockColors._active

Definition at line 39 of file ColorProfile.cs.

Referenced by ColorProfile.BlockColors.Init().

◆ _activeOpacity

Color ColorProfile.BlockColors._activeOpacity

Definition at line 43 of file ColorProfile.cs.

Referenced by ColorProfile.BlockColors.Init().

◆ _inactive

Color ColorProfile.BlockColors._inactive

Definition at line 41 of file ColorProfile.cs.

Referenced by ColorProfile.BlockColors.Init().

◆ _inactiveOpacity

Color ColorProfile.BlockColors._inactiveOpacity

Definition at line 45 of file ColorProfile.cs.

Referenced by ColorProfile.BlockColors.Init().

◆ _mapHighlight

Color ColorProfile.BlockColors._mapHighlight

Definition at line 49 of file ColorProfile.cs.

Referenced by ColorProfile.BlockColors.Init().

◆ _passive

Color ColorProfile.BlockColors._passive

Definition at line 47 of file ColorProfile.cs.

Referenced by ColorProfile.BlockColors.Init().

◆ _valid

Color ColorProfile.BlockColors._valid

Definition at line 35 of file ColorProfile.cs.

Referenced by ColorProfile.BlockColors.Init().

◆ _warning

Color ColorProfile.BlockColors._warning

Definition at line 37 of file ColorProfile.cs.

Referenced by ColorProfile.BlockColors.Init().

◆ Active

int ColorProfile.BlockColors.Active

Definition at line 57 of file ColorProfile.cs.

Referenced by ColorProfile.BlockColors.Init().

◆ ActiveOpacity

int ColorProfile.BlockColors.ActiveOpacity

Definition at line 59 of file ColorProfile.cs.

Referenced by TaskMine.DrawMarker(), and ColorProfile.BlockColors.Init().

◆ DefColor

const int ColorProfile.BlockColors.DefColor = 104025
static

Definition at line 25 of file ColorProfile.cs.

◆ DefColorActive

const int ColorProfile.BlockColors.DefColorActive = -1173751
static

Definition at line 29 of file ColorProfile.cs.

◆ DefColorInactive

const int ColorProfile.BlockColors.DefColorInactive = -1214986
static

Definition at line 27 of file ColorProfile.cs.

◆ DefColorValid

const int ColorProfile.BlockColors.DefColorValid = -2747875
static

Definition at line 31 of file ColorProfile.cs.

◆ DefColorWarning

const int ColorProfile.BlockColors.DefColorWarning = -2828814
static

Definition at line 33 of file ColorProfile.cs.

◆ Inactive

int ColorProfile.BlockColors.Inactive

◆ InactiveOpacity

int ColorProfile.BlockColors.InactiveOpacity

Definition at line 61 of file ColorProfile.cs.

Referenced by TaskMine.DrawMarker(), and ColorProfile.BlockColors.Init().

◆ MapHighlight

int ColorProfile.BlockColors.MapHighlight

Definition at line 65 of file ColorProfile.cs.

Referenced by BaseTileMap.DrawTile(), and ColorProfile.BlockColors.Init().

◆ Passive

int ColorProfile.BlockColors.Passive

Definition at line 63 of file ColorProfile.cs.

Referenced by ColorProfile.BlockColors.Init(), and ActionMode.OnRenderTile().

◆ Valid

int ColorProfile.BlockColors.Valid

◆ Warning

int ColorProfile.BlockColors.Warning

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