PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
ScriptConsoleGeneralTab Class Reference

Private Member Functions

void ScriptConsoleGeneralTab (Widget root, ScriptConsole console, Widget button, ScriptConsoleTabBase parent=null)
 
void ~ScriptConsoleGeneralTab ()
 
protected void Init ()
 
void RefreshDateWidgets (int year, int month, int day, int hour, int minute)
 
bool IsLocationNameAvailable (string name)
 
void LateInit ()
 
void Teleport (PlayerBase player, vector position)
 
void ProcessTeleportText (PlayerBase player)
 
array< floatTextToNumbersArray (string text)
 
void RefreshLocations ()
 
string GetCurrentLocationName ()
 
vector GetCurrentLocationPos ()
 
void GetCurrentPositionData (out LocationParams data)
 
bool IsCurrentPositionCustom ()
 
int GetCurrentPositionIndex ()
 
bool IsCurrentPositionValid ()
 
void UpdateHudDebugSetting ()
 
void RefreshPlayerPosEditBoxes ()
 
void UpdateTime (bool slider_used)
 
void UpdateMousePos ()
 
void SetMapPos (vector pos)
 
void SetMapCameraPos (vector pos)
 
void SetDir (vector dir)
 
void SetCameraDir (vector dir)
 
vector GetMapPos ()
 
override bool OnMouseButtonDown (Widget w, int x, int y, int button)
 
override bool OnKeyDown (Widget w, int x, int y, int key)
 
override bool OnChange (Widget w, int x, int y, bool finished)
 
override bool OnItemSelected (Widget w, int x, int y, int row, int column, int oldRow, int oldColumn)
 
override bool OnDoubleClick (Widget w, int x, int y, int button)
 
override bool OnClick (Widget w, int x, int y, int button)
 
override void OnRPCEx (int rpc_type, ParamsReadContext ctx)
 
override void Update (float timeslice)
 

Private Attributes

protected const string NUMERIC_LETTERS = "0123456789.-"
 
protected vector m_MapPos
 
protected bool m_PlayerPosRefreshBlocked
 
protected ref array< ref RemotePlayerStatDebugm_PlayerDebugStats = new array<ref RemotePlayerStatDebug>
 
protected MissionGameplay m_MissionGameplay
 
protected PluginDeveloper m_Developer
 
protected SliderWidget m_TimeSlider
 
protected ref Timer m_LateInit = new Timer()
 
protected bool m_UpdatePlayerPositions
 
protected bool m_InitialOpen = true
 
protected EditBoxWidget m_TeleportHeading
 
protected EditBoxWidget m_TeleportXYZ
 
protected EditBoxWidget m_DateYear
 
protected EditBoxWidget m_DateMonth
 
protected EditBoxWidget m_DateDay
 
protected EditBoxWidget m_DateHour
 
protected EditBoxWidget m_DateMinute
 
protected ButtonWidget m_LocationAddButton
 
protected ButtonWidget m_LocationRemoveButton
 
protected ButtonWidget m_TeleportButton
 
protected ButtonWidget m_ButtonCopyPos
 
protected ButtonWidget m_DiagDrawButton
 
protected ButtonWidget m_DiagToggleButton
 
protected CheckBoxWidget m_LogsEnabled
 
protected CheckBoxWidget m_HudDCharStats
 
protected CheckBoxWidget m_HudDCharLevels
 
protected CheckBoxWidget m_HudDCharStomach
 
protected CheckBoxWidget m_HudDCharModifiers
 
protected CheckBoxWidget m_HudDCharAgents
 
protected CheckBoxWidget m_HudDCharDebug
 
protected CheckBoxWidget m_HudDFreeCamCross
 
protected CheckBoxWidget m_HudDVersion
 
protected CheckBoxWidget m_HudDHealth
 
protected CheckBoxWidget m_HudDHorticulture
 
protected CheckBoxWidget m_ShowOthers
 
protected CheckBoxWidget m_HudDTemperature
 
protected MapWidget m_DebugMapWidget
 
protected TextWidget m_PlayerCurPos
 
protected TextWidget m_PlayerCurDir
 
protected TextWidget m_MouseCurPos
 
protected TextWidget m_PlayerMouseDiff
 
protected TextWidget m_CameraCurPos
 
protected TextWidget m_CameraCurDir
 
protected TextListboxWidget m_DiagToggleTextListbox
 
protected TextListboxWidget m_PositionsListbox
 
protected TextListboxWidget m_DiagDrawmodeTextListbox
 
protected TextListboxWidget m_HelpTextListboxWidget
 
protected FreeDebugCamera m_FreeDebugCamera
 

Static Private Attributes

static int m_ObjectsScope = 2
 
static protected vector m_LastEditPos = vector.Zero
 
static protected vector m_LastEditDir = vector.Zero
 
static protected float DEBUG_MAP_ZOOM = 1
 
static protected bool SHOW_OTHERS = 0
 

Constructor & Destructor Documentation

◆ ScriptConsoleGeneralTab()

◆ ~ScriptConsoleGeneralTab()

Member Function Documentation

◆ GetCurrentLocationName()

string GetCurrentLocationName ( )
inlineprivate

References GetCurrentPositionData(), and name.

Referenced by OnClick().

◆ GetCurrentLocationPos()

vector GetCurrentLocationPos ( )
inlineprivate

◆ GetCurrentPositionData()

void GetCurrentPositionData ( out LocationParams  data)
inlineprivate

◆ GetCurrentPositionIndex()

int GetCurrentPositionIndex ( )
inlineprivate

References m_PositionsListbox.

Referenced by OnClick(), and OnItemSelected().

◆ GetMapPos()

vector GetMapPos ( )
inlineprivate

References m_MapPos.

Referenced by OnClick(), and Update().

◆ Init()

◆ IsCurrentPositionCustom()

bool IsCurrentPositionCustom ( )
inlineprivate

◆ IsCurrentPositionValid()

bool IsCurrentPositionValid ( )
inlineprivate

References m_PositionsListbox.

Referenced by OnClick(), and OnItemSelected().

◆ IsLocationNameAvailable()

bool IsLocationNameAvailable ( string  name)
inlineprivate

References m_PositionsListbox, and name.

Referenced by UIScriptedMenu::OnClick().

◆ LateInit()

◆ OnChange()

◆ OnClick()

◆ OnDoubleClick()

◆ OnItemSelected()

override bool OnItemSelected ( Widget  w,
int  x,
int  y,
int  row,
int  column,
int  oldRow,
int  oldColumn 
)
inlineprivate

◆ OnKeyDown()

override bool OnKeyDown ( Widget  w,
int  x,
int  y,
int  key 
)
inlineprivate

References x, and y.

◆ OnMouseButtonDown()

◆ OnRPCEx()

override void OnRPCEx ( int  rpc_type,
ParamsReadContext  ctx 
)
inlineprivate

◆ ProcessTeleportText()

◆ RefreshDateWidgets()

void RefreshDateWidgets ( int  year,
int  month,
int  day,
int  hour,
int  minute 
)
inlineprivate

◆ RefreshLocations()

◆ RefreshPlayerPosEditBoxes()

void RefreshPlayerPosEditBoxes ( )
inlineprivate

◆ SetCameraDir()

void SetCameraDir ( vector  dir)
inlineprivate

References m_CameraCurDir.

Referenced by OnMouseButtonDown().

◆ SetDir()

void SetDir ( vector  dir)
inlineprivate

References m_PlayerCurDir.

Referenced by RefreshPlayerPosEditBoxes().

◆ SetMapCameraPos()

void SetMapCameraPos ( vector  pos)
inlineprivate

References m_CameraCurPos.

Referenced by OnMouseButtonDown().

◆ SetMapPos()

void SetMapPos ( vector  pos)
inlineprivate

◆ Teleport()

void Teleport ( PlayerBase  player,
vector  position 
)
inlineprivate

◆ TextToNumbersArray()

array< float > TextToNumbersArray ( string  text)
inlineprivate

◆ Update()

◆ UpdateHudDebugSetting()

void UpdateHudDebugSetting ( )
private

Referenced by Init().

◆ UpdateMousePos()

◆ UpdateTime()

Field Documentation

◆ DEBUG_MAP_ZOOM

protected float DEBUG_MAP_ZOOM = 1
staticprivate

Referenced by Init(), and ~ScriptConsoleGeneralTab().

◆ m_ButtonCopyPos

protected ButtonWidget m_ButtonCopyPos
private

Referenced by OnClick(), and ScriptConsoleGeneralTab().

◆ m_CameraCurDir

protected TextWidget m_CameraCurDir
private

◆ m_CameraCurPos

protected TextWidget m_CameraCurPos
private

◆ m_DateDay

protected EditBoxWidget m_DateDay
private

◆ m_DateHour

protected EditBoxWidget m_DateHour
private

◆ m_DateMinute

protected EditBoxWidget m_DateMinute
private

◆ m_DateMonth

protected EditBoxWidget m_DateMonth
private

◆ m_DateYear

protected EditBoxWidget m_DateYear
private

◆ m_DebugMapWidget

◆ m_Developer

protected PluginDeveloper m_Developer
private

◆ m_DiagDrawButton

protected ButtonWidget m_DiagDrawButton
private

Referenced by OnClick(), and ScriptConsoleGeneralTab().

◆ m_DiagDrawmodeTextListbox

protected TextListboxWidget m_DiagDrawmodeTextListbox
private

◆ m_DiagToggleButton

protected ButtonWidget m_DiagToggleButton
private

Referenced by OnClick(), and ScriptConsoleGeneralTab().

◆ m_DiagToggleTextListbox

protected TextListboxWidget m_DiagToggleTextListbox
private

◆ m_FreeDebugCamera

protected FreeDebugCamera m_FreeDebugCamera
private

◆ m_HelpTextListboxWidget

protected TextListboxWidget m_HelpTextListboxWidget
private

Referenced by ScriptConsoleGeneralTab().

◆ m_HudDCharAgents

protected CheckBoxWidget m_HudDCharAgents
private

◆ m_HudDCharDebug

protected CheckBoxWidget m_HudDCharDebug
private

◆ m_HudDCharLevels

protected CheckBoxWidget m_HudDCharLevels
private

◆ m_HudDCharModifiers

protected CheckBoxWidget m_HudDCharModifiers
private

◆ m_HudDCharStats

protected CheckBoxWidget m_HudDCharStats
private

◆ m_HudDCharStomach

protected CheckBoxWidget m_HudDCharStomach
private

◆ m_HudDFreeCamCross

protected CheckBoxWidget m_HudDFreeCamCross
private

◆ m_HudDHealth

protected CheckBoxWidget m_HudDHealth
private

◆ m_HudDHorticulture

protected CheckBoxWidget m_HudDHorticulture
private

◆ m_HudDTemperature

protected CheckBoxWidget m_HudDTemperature
private

◆ m_HudDVersion

protected CheckBoxWidget m_HudDVersion
private

◆ m_InitialOpen

protected bool m_InitialOpen = true
private

Referenced by OnItemSelected().

◆ m_LastEditDir

protected vector m_LastEditDir = vector.Zero
staticprivate

Referenced by Init(), and ProcessTeleportText().

◆ m_LastEditPos

protected vector m_LastEditPos = vector.Zero
staticprivate

Referenced by Init(), and ProcessTeleportText().

◆ m_LateInit

protected ref Timer m_LateInit = new Timer()
private

Referenced by Init().

◆ m_LocationAddButton

protected ButtonWidget m_LocationAddButton
private

Referenced by OnClick(), and ScriptConsoleGeneralTab().

◆ m_LocationRemoveButton

protected ButtonWidget m_LocationRemoveButton
private

Referenced by OnClick(), and ScriptConsoleGeneralTab().

◆ m_LogsEnabled

protected CheckBoxWidget m_LogsEnabled
private

◆ m_MapPos

protected vector m_MapPos
private

Referenced by GetMapPos(), and SetMapPos().

◆ m_MissionGameplay

protected MissionGameplay m_MissionGameplay
private

Referenced by OnClick(), and ScriptConsoleGeneralTab().

◆ m_MouseCurPos

protected TextWidget m_MouseCurPos
private

◆ m_ObjectsScope

int m_ObjectsScope = 2
staticprivate

◆ m_PlayerCurDir

protected TextWidget m_PlayerCurDir
private

Referenced by ScriptConsoleGeneralTab(), and SetDir().

◆ m_PlayerCurPos

protected TextWidget m_PlayerCurPos
private

◆ m_PlayerDebugStats

protected ref array<ref RemotePlayerStatDebug> m_PlayerDebugStats = new array<ref RemotePlayerStatDebug>
private

Referenced by OnRPCEx(), and Update().

◆ m_PlayerMouseDiff

protected TextWidget m_PlayerMouseDiff
private

◆ m_PlayerPosRefreshBlocked

protected bool m_PlayerPosRefreshBlocked
private

Referenced by OnMouseButtonDown(), and Update().

◆ m_PositionsListbox

◆ m_ShowOthers

protected CheckBoxWidget m_ShowOthers
private

◆ m_TeleportButton

protected ButtonWidget m_TeleportButton
private

Referenced by OnClick(), and ScriptConsoleGeneralTab().

◆ m_TeleportHeading

protected EditBoxWidget m_TeleportHeading
private

◆ m_TeleportXYZ

◆ m_TimeSlider

protected SliderWidget m_TimeSlider
private

◆ m_UpdatePlayerPositions

protected bool m_UpdatePlayerPositions
private

Referenced by LateInit(), OnChange(), and Update().

◆ NUMERIC_LETTERS

protected const string NUMERIC_LETTERS = "0123456789.-"
private

Referenced by TextToNumbersArray().

◆ SHOW_OTHERS

protected bool SHOW_OTHERS = 0
staticprivate

The documentation for this class was generated from the following file: