Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_ContentBrowser_AddonsTooltipComponent.c
Go to the documentation of this file.
1 
5 {
6  [Attribute("{30907DAA2D89E065}UI/layouts/Menus/Tooltips/Tooltip_ListLine_NoBG.layout")]
7  protected ResourceName m_sAddonLineLayout;
8 
9  protected VerticalLayoutWidget m_wAddonsList;
10 
11  //------------------------------------------------------------------------------------------------
12  protected override void HandlerAttached(Widget w)
13  {
14  m_wAddonsList = VerticalLayoutWidget.Cast(w.FindAnyWidget("AddonsList"));
15 
16  super.HandlerAttached(w);
17  }
18 
19  //------------------------------------------------------------------------------------------------
20  void Init(array<ref SCR_WorkshopItem> addons)
21  {
22  foreach (SCR_WorkshopItem addon : addons)
23  {
24  Widget w = GetGame().GetWorkspace().CreateWidgets(m_sAddonLineLayout, m_wAddonsList);
25  TextWidget wText = TextWidget.Cast(w.FindAnyWidget("Text"));
26  if (wText)
27  wText.SetText(addon.GetName());
28  }
29  }
30 
31  //------------------------------------------------------------------------------------------------
32  static SCR_ContentBrowser_AddonsTooltipComponent FindComponent(notnull Widget w)
33  {
35  }
36 }
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
SCR_WorkshopItem
Definition: SCR_WorkshopItem.c:21
SCR_ContentBrowser_AddonsTooltipComponent
Definition: SCR_ContentBrowser_AddonsTooltipComponent.c:4
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_ScriptedWidgetComponent
Definition: SCR_ScriptedWidgetComponent.c:7