Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_ToolbarContextBrowserEditorUIComponent.c
Go to the documentation of this file.
1 class SCR_ToolbarContextBrowserEditorUIComponent : ScriptedWidgetComponent
2 {
3  [Attribute("BrowserButton")]
4  protected string m_sOpenContentBrowserButtonName;
5 
6  //------------------------------------------------------------------------------------------------
7  protected void OpenAssetBrowserButton(Widget widget, float value, EActionTrigger actionTrigger)
8  {
10  if (contentBrowserManager)
11  contentBrowserManager.OpenBrowser();
12  }
13 
14  //------------------------------------------------------------------------------------------------
15  override void HandlerAttached(Widget w)
16  {
17  Widget buttonWidget = w.FindAnyWidget(m_sOpenContentBrowserButtonName);
18  if (buttonWidget)
19  ButtonActionComponent.GetOnAction(buttonWidget).Insert(OpenAssetBrowserButton);
20  }
21 }
SCR_ContentBrowserEditorComponent
Definition: SCR_ContentBrowserEditorComponent.c:16
Attribute
typedef Attribute
Post-process effect of scripted camera.
ButtonActionComponent
Component to execute action when the button or its shortcut is pressed.
Definition: ButtonActionComponent.c:2
SCR_ToolbarContextBrowserEditorUIComponent
Definition: SCR_ToolbarContextBrowserEditorUIComponent.c:1