Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_LensFlareManualCameraComponent.c
Go to the documentation of this file.
1 
4 [BaseContainerProps(), SCR_BaseManualCameraComponentTitle()]
6 {
7  [Attribute("0", desc: "Lens flare set on camera. This is also the default lens flare set when camera is created. Note, types that require strings are not supported", uiwidget: UIWidgets.ComboBox, enums: ParamEnumArray.FromEnum(CameraLensFlareSetType))]
8  protected CameraLensFlareSetType m_iLensFlareType;
9 
10  //------------------------------------------------------------------------------------------------
12  CameraLensFlareSetType GetLensFlareType()
13  {
14  return m_iLensFlareType;
15  }
16 
17  //------------------------------------------------------------------------------------------------
19  void SetLensFlareType(CameraLensFlareSetType newLensFlare)
20  {
21  m_iLensFlareType = newLensFlare;
22  GetCameraEntity().SetLensFlareSet(newLensFlare, string.Empty);
23  }
24 
25  //------------------------------------------------------------------------------------------------
26  override bool EOnCameraInit()
27  {
28  GetCameraEntity().SetLensFlareSet(m_iLensFlareType, string.Empty);
29  return true;
30  }
31 
32  //------------------------------------------------------------------------------------------------
33  override void EOnCameraSave(SCR_ManualCameraComponentSave data)
34  {
35  data.m_aValues = {m_iLensFlareType};
36  }
37 
38  //------------------------------------------------------------------------------------------------
39  override void EOnCameraLoad(SCR_ManualCameraComponentSave data)
40  {
41  if (data.m_aValues && !data.m_aValues.IsEmpty())
42  SetLensFlareType((int)data.m_aValues[0]);
43  }
44 }
SCR_BaseManualCameraComponent
Parent class from which all SCR_ManualCamera components inherit.
Definition: SCR_BaseManualCameraComponent.c:5
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_ManualCameraComponentSave
Definition: SCR_ManualCameraSave.c:15
GetCameraEntity
protected SCR_ManualCamera GetCameraEntity()
Definition: SCR_BaseManualCameraComponent.c:59
SCR_LensFlareManualCameraComponent
Controls lense flare for camera.
Definition: SCR_LensFlareManualCameraComponent.c:5
data
Get all prefabs that have the spawner data
Definition: SCR_EntityCatalogManagerComponent.c:305
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468