Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
earlyaccessmenu.c
Go to the documentation of this file.
1 class EarlyAccessMenu extends UIScriptedMenu
2 {
3  void EarlyAccessMenu()
4  {
5  }
6 
7  void ~EarlyAccessMenu()
8  {
9  }
10 
11  override Widget Init()
12  {
13  layoutRoot = GetGame().GetWorkspace().CreateWidgets("gui/layouts/day_z_early_access.layout");
14 
15  return layoutRoot;
16  }
17 
18  override bool OnClick(Widget w, int x, int y, int button)
19  {
20  super.OnClick(w, x, y, button);
21 
22  if (w.GetUserID() == IDC_OK)
23  {
24  Close();
25  return true;
26  }
27 
28  return false;
29  }
30 }
GetGame
proto native CGame GetGame()
UIScriptedMenu
Definition: dayzgame.c:63
Close
void Close()
y
Icon y
Init
class InventoryGridController extends ScriptedWidgetEventHandler Init
Definition: uihintpanel.c:46
x
Icon x
IDC_OK
const int IDC_OK
Definition: constants.c:127
Widget
Definition: enwidgets.c:189
OnClick
override bool OnClick(Widget w, int x, int y, int button)
buttons clicks
Definition: dayzgame.c:146