DIFF

class TutorialsMenuSource

TutorialsMenu UIScriptedMenu UIMenuPanel Managed

All members, including inherited

Constructors 2

void TutorialsMenu()
References CGame.GetInput(), and m_Input
void ~TutorialsMenu()

Commented for now as there is no reason to show the tab with mouse and keyboard inputs on console platforms and we don't show the tab on PC or MSS version also If we ever decide to remap all PlayStation related input keys so we can localize them correctly we can reanable this tab and display the correct bindigs always.

Constants 16

protected const string PATH_MOUSEKEY = "scripts/data/pagedatatutorials.json"
protected const string PATH_MOUSEKEY_720P = "scripts/data/pagedatatutorials_720p.json"
protected const string PATH_X1_OLD = "xbox/pagedatatutorials.json"
protected const string PATH_X1_OLD_720P = "xbox/pagedatatutorials_720p.json"
protected const string PATH_X1_NEW = "xbox/pagedatatutorialsalternate.json"
protected const string PATH_X1_NEW_720p = "xbox/pagedatatutorialsalternate_720p.json"
protected const string PATH_PS_OLD = "ps4/pagedatatutorials.json"
protected const string PATH_PS_NEW = "ps4/pagedatatutorialsalternate.json"
protected const float MIN_LINE_SCALE = 1.0
protected const float MAX_LINE_SCALE = 1.5
protected const float WITDH_SCALE_RES = 1920.0
protected const float HEIGHT_SCALE_RES = 1080.0
protected const float LINE_THICKNESS_BASE = 2.0
protected const float BRANCH_OFFSET_BASE = 50.0
protected const int EXACT_TEXT_SIZE_LOW_RES = 32
Referenced by DrawConnectingLines()
protected const int TABS_COUNT = 4

Members 10

protected string m_BackButtonTextID
protected Widget m_InfoTextLeft
Referenced by DrawConnectingLines(), and Init()
protected Widget m_InfoTextRight
Referenced by DrawConnectingLines(), and Init()
protected ButtonWidget m_Back
Referenced by Init(), IsFocusable(), and OnClick()
protected ImageWidget m_ControlsLayoutImage
protected ImageWidget m_tab_images[TABS_COUNT]
Referenced by Init()
protected TabberUI m_TabScript
Referenced by ~TutorialsMenu(), DrawConnectingLines(), Init()
Show 1 more, Update()
protected int m_CurrentTabIndex = 0
protected bool m_LowResTutorialMode

Methods 29

protected bool IsLowResTutorialMode()
References GetScreenSize()
Referenced by Init()
protected float GetTutorialLineScale()
protected float GetTutorialLineThickness()
Referenced by DrawConnectingLines()
protected float GetTutorialBranchOffset()
Referenced by DrawConnectingLines()
protected void OnInputPresetChanged()
protected void RefreshControlMappings()
override void OnShow()
void Back()
Referenced by OnClick(), and Update()
override void Update(float timeslice)

PC variant (also used for MSS build when mouse and keyboard are then active input device).

protected void LoadFooterButtonTexts()

Initial texts load for the footer buttons

protected void LoadTextStrings()

Set correct bottom button texts based on platform (ps4 vs xbox texts)

override bool OnClick(Widget w, int x, int y, int button)
References Back(), and m_Back
override bool OnMouseEnter(Widget w, int x, int y)
override bool OnMouseLeave(Widget w, Widget enterW, int x, int y)
override bool OnFocus(Widget w, int x, int y)
override bool OnFocusLost(Widget w, int x, int y)
bool IsFocusable(Widget w)
References m_Back
Referenced by OnFocus(), OnFocusLost(), OnMouseEnter()
Show 1 more, OnMouseLeave()
void ColorHighlight(Widget w)
References ARGB(), ButtonSetColor(), ButtonSetTextColor()
Show 1 more, ImagenSetColor()
Referenced by OnFocus(), and OnMouseEnter()
void ColorNormal(Widget w)
References ARGB(), ButtonSetColor(), ButtonSetTextColor()
Show 1 more, ImagenSetColor()
Referenced by OnFocusLost(), and OnMouseLeave()
void ButtonSetText(Widget w, string text)
void ButtonSetColor(Widget w, int color)
Referenced by ColorHighlight(), and ColorNormal()
void ImagenSetColor(Widget w, int color)
Referenced by ColorHighlight(), and ColorNormal()
void ButtonSetTextColor(Widget w, int color)
Referenced by ColorHighlight(), and ColorNormal()
protected void UpdateControlsElementVisibility()
Referenced by Init(), and RefreshControlMappings()