Skip to content

Latest commit

 

History

History
190 lines (129 loc) · 4.35 KB

ColorThemes.md

File metadata and controls

190 lines (129 loc) · 4.35 KB

ColorThemes.h

theme(name)

Type: constant

Description:

  • Param: name

Replaced value:

_params__ = createHashMap; _name__ = tolower 'name'; if ((_name__ in ct_map_themes)) exitWith {errorformat("[ColorThemes]: Theme %1 already defined",_name__)}; ct_map_themes set [_name__,_params__];

File: client\ColorThemes\ColorThemes.h at line 8

var(name,val)

Type: constant

Description:

  • Param: name
  • Param: val

Replaced value:

_vName__ = tolower 'name'; _dat__ = [_vName__,val]; if (_vName__ in _params__) then {warningformat("[ColorThemes]: Double define variable %1 in theme %2",_vName__ arg _name__)}; _params__ set _dat__;

File: client\ColorThemes\ColorThemes.h at line 9

copyFrom(theme,key)

Type: constant

Description: Копирование параметров

  • Param: __theme
  • Param: key__

Replaced value:

[[tolower '__theme','key__',__LINE__],ct_internal_copy]

File: client\ColorThemes\ColorThemes.h at line 12

copy(key__)

Type: constant

Description: Копирование параметров

  • Param: key__

Replaced value:

[[_name__,tolower 'key__',__LINE__],ct_internal_copy]

File: client\ColorThemes\ColorThemes.h at line 12

fromHTML(val)

Type: constant

Description:

  • Param: val

Replaced value:

[#val] call color_HTMLtoRGBA

File: client\ColorThemes\ColorThemes.h at line 16

html(val)

Type: constant

Description:

  • Param: val

Replaced value:

#val

File: client\ColorThemes\ColorThemes.h at line 17

ColorThemes_init.sqf

defVec4

Type: constant

Description:

Replaced value:

vec4(1,1,1,1)

File: client\ColorThemes\ColorThemes_init.sqf at line 10

defHTML

Type: constant

Description:

Replaced value:

"ffffff"

File: client\ColorThemes\ColorThemes_init.sqf at line 11

ct_map_colors

Type: Variable

Description: Помещаем ссылку

Initial value:

createHashMapFromArray [...

File: client\ColorThemes\ColorThemes_init.sqf at line 13

ct_map_defaultColors

Type: Variable

Description:

Initial value:

+ct_map_colors

File: client\ColorThemes\ColorThemes_init.sqf at line 55

ct_map_themes

Type: Variable

Description: Лист с темами

Initial value:

createHashMap

File: client\ColorThemes\ColorThemes_init.sqf at line 58

ct_load

Type: function

Description:

  • Param: _themeName

File: client\ColorThemes\ColorThemes_init.sqf at line 60

ct_reset

Type: function

Description: Восстанавливает тему по-умолчанию

File: client\ColorThemes\ColorThemes_init.sqf at line 78

ct_applyTheme

Type: function

Description: Применяет установленную тему из ct_map_colors

File: client\ColorThemes\ColorThemes_init.sqf at line 83

ct_internal_copy

Type: function

Description:

  • Param: _name
  • Param: _key
  • Param: _line

File: client\ColorThemes\ColorThemes_init.sqf at line 114

ct_getValue

Type: function

Description: Возвращает цвет с карты

  • Param: _name

File: client\ColorThemes\ColorThemes_init.sqf at line 139

ct_debug_viewColors

Type: function

Exists if DEBUG defined

Description:

  • Param: _themeName

File: client\ColorThemes\ColorThemes_init.sqf at line 146