3 protected const string PATH_MOUSEKEY =
"scripts/data/pagedatatutorials.json";
4 protected const string PATH_X1_OLD =
"xbox/pagedatatutorials.json";
5 protected const string PATH_X1_NEW =
"xbox/pagedatatutorialsalternate.json";
6 protected const string PATH_PS_OLD =
"ps4/pagedatatutorials.json";
7 protected const string PATH_PS_NEW =
"ps4/pagedatatutorialsalternate.json";
26#ifdef PLATFORM_CONSOLE
27 layoutRoot =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/tutorials/xbox/tutorials.layout");
29 layoutRoot =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/new_ui/tutorials/pc/tutorials.layout");
32 m_InfoTextLeft = layoutRoot.FindAnyWidget(
"InfoTextLeft");
33 m_InfoTextRight = layoutRoot.FindAnyWidget(
"InfoTextRight");
37 layoutRoot.FindAnyWidget(
"Tabber").GetScript(
m_TabScript);
40#ifdef PLATFORM_CONSOLE
43 m_KeybindsTab =
new TutorialKeybinds(layoutRoot.FindAnyWidget(
"Tab_6"),
this);
75#ifdef PLATFORM_CONSOLE
95 GetGame().GetUIManager().Back();
102 m_InfoTextLeft.Show(
false);
103 m_InfoTextRight.Show(
false);
107 m_InfoTextLeft.Show(
true);
108 m_InfoTextRight.Show(
true);
128 for (
int j = 0;
j < 30;
j++)
221 for (
int g = 0; g <
element.Count(); g++)
275#ifdef PLATFORM_CONSOLE
423#ifdef PLATFORM_CONSOLE
502#ifdef PLATFORM_CONSOLE
518#ifdef PLATFORM_CONSOLE
522#ifdef PLATFORM_CONSOLE
523 layoutRoot.FindAnyWidget(
"toolbar_bg").Show(
toolbarShow);
525 layoutRoot.FindAnyWidget(
"play_panel_root").Show(!
toolbarShow);
void OnInputPresetChanged()
void OnInputDeviceChanged(EInputDeviceType pInputDeviceType)
class JsonControlMappingInfo m_BackButtonTextID
ImageWidget m_ControlsLayoutImage
void DrawConnectingLines(int index)
ImageWidget m_tab_images[TABS_COUNT]
array< ref JsonControlMappingInfo > GetControlMappingInfo()
void ColorNormal(Widget w)
bool IsFocusable(Widget w)
void ColorHighlight(Widget w)
Class for sending RPC over network.
proto native CGame GetGame()
proto void CloseFile(FileHandle file)
Close the File.
proto int FGets(FileHandle file, string var)
Get line from file, every next call of this function returns next line.
proto FileHandle OpenFile(string name, FileMode mode)
Opens File.
int ARGB(int a, int r, int g, int b)
int ARGBF(float fa, float fr, float fg, float fb)
Converts <0.0, 1.0> ARGB into color.