Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_BrowserLinkComponent.c
Go to the documentation of this file.
2{
3 [Attribute("Link_Bohemia")]
4 protected string m_sAddress;
5
6 [Attribute("false")]
7 protected bool m_bIsURL;
8
10
11 //------------------------------------------------------------------------------------------------
25
26 //------------------------------------------------------------------------------------------------
27 override void HandlerDeattached(Widget w)
28 {
29 super.HandlerDeattached(w);
30 }
31
32 //------------------------------------------------------------------------------------------------
33 override bool OnClick(Widget w, int x, int y, int button)
34 {
35 return OpenBrowser();
36 }
37
38 //------------------------------------------------------------------------------------------------
39 protected void OnCommStatusCheckFinished(SCR_ECommStatus status, float responseTime, float lastSuccessTime, float lastFailTime)
40 {
41 if (m_Button)
43 }
44
45 //------------------------------------------------------------------------------------------------
47 {
48 PlatformService ps = GetGame().GetPlatformService();
49
50 if (!ps)
51 return false;
52
53 BackendApi backendAPI = GetGame().GetBackendApi();
54 string url = backendAPI.GetLinkItem(m_sAddress);
55
56 if (m_bIsURL)
57 ps.OpenBrowser(m_sAddress);
58 else
59 ps.OpenBrowser(url);
60
61 return true;
62 }
63};
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_ECommStatus
This class may become obsolete on BackendAPI update.
Backend Api instance.
Definition BackendApi.c:14
Base class for any button, regardless its own content.
static ScriptInvokerCommStatus GetOnCommStatusCheckFinished()
SCR_FieldOfViewSettings Attribute