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
{
9
SCR_ContentBrowserEditorComponent
contentBrowserManager =
SCR_ContentBrowserEditorComponent
.Cast(
SCR_ContentBrowserEditorComponent
.GetInstance(
SCR_ContentBrowserEditorComponent
));
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
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
Editor
UI
Components
Toolbar
SCR_ToolbarContextBrowserEditorUIComponent.c
Generated by
1.8.17