Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_LinkTooltipTargetEditorUIComponent.c
Go to the documentation of this file.
1 
4 {
5  protected SCR_UIInfo m_Info;
6  protected Managed m_Target;
7 
8  //------------------------------------------------------------------------------------------------
11  void SetInfo(SCR_UIInfo info, Managed target = null)
12  {
13  m_Info = info;
14  m_Target = target;
15  RefreshTooltip();
16  }
17 
18  //------------------------------------------------------------------------------------------------
19  override SCR_UIInfo GetInfo()
20  {
21  return m_Info;
22  }
23 
24  //------------------------------------------------------------------------------------------------
25  override Managed GetTarget()
26  {
27  return m_Target;
28  }
29 
30  //------------------------------------------------------------------------------------------------
34  static void SetInfo(Widget widget, SCR_UIInfo info, Managed target = null)
35  {
36  if (!widget || !info)
37  return;
38 
40  if (!tooltipTarget)
41  return;
42 
43  tooltipTarget.SetInfo(info, target);
44  }
45 };
m_Target
class SCR_AIPolar m_Target
m_Info
protected ref SCR_HintUIInfo m_Info
Definition: SCR_BaseHintCondition.c:3
SCR_UIInfo
Definition: SCR_UIInfo.c:7
SCR_BaseTooltipTargetEditorUIComponent
Definition: SCR_BaseTooltipTargetEditorUIComponent.c:3