Space Engineers
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Sandbox.Game.Gui.MyGuiScreenPlayers Class Reference
Inheritance diagram for Sandbox.Game.Gui.MyGuiScreenPlayers:
Sandbox.Graphics.GUI.MyGuiScreenBase Sandbox.Graphics.GUI.IMyGuiControlsParent Sandbox.Graphics.GUI.IMyGuiControlsOwner

Public Member Functions

 MyGuiScreenPlayers ()
 
override string GetFriendlyName ()
 For displaying in the list in the debug screen. More...
 
override void RecreateControls (bool constructor)
 
override void HandleInput (bool receivedFocusInThisUpdate)
 
- Public Member Functions inherited from Sandbox.Graphics.GUI.MyGuiScreenBase
delegate void ScreenHandler (MyGuiScreenBase source)
 
MyObjectBuilder_GuiScreen GetObjectBuilder ()
 
void Init (MyObjectBuilder_GuiScreen objectBuilder)
 
virtual void LoadContent ()
 
virtual void LoadData ()
 
virtual void UnloadContent ()
 
virtual void UnloadData ()
 
virtual void RunLoadingAction ()
 
bool IsMouseOverAnyControl ()
 
MyGuiControlBase GetMouseOverControl ()
 
virtual void GetControlsUnderMouseCursor (Vector2 position, List< MyGuiControlBase > controls, bool visibleOnly)
 
MyGuiControlBase GetNextFocusControl (MyGuiControlBase currentFocusControl, bool forwardMovement)
 
virtual void InputLost ()
 
virtual void HandleUnhandledInput (bool receivedFocusInThisUpdate)
 
virtual bool HandleInputAfterSimulation ()
 
virtual bool CloseScreen ()
 
virtual bool HideScreen ()
 
virtual bool UnhideScreen ()
 
virtual void CloseScreenNow ()
 
virtual bool Update (bool hasFocus)
 
virtual bool Draw ()
 
void HideTooltips ()
 
Vector2 GetPositionAbsolute ()
 
Vector2 GetPositionAbsoluteCenter ()
 
Vector2 GetPositionAbsoluteTopLeft ()
 
bool GetDrawMouseCursor ()
 
bool IsTopMostScreen ()
 
bool IsAlwaysFirst ()
 
bool IsTopScreen ()
 
bool IsFirstForUnload ()
 
bool GetDrawScreenEvenWithoutFocus ()
 
Vector2 GetPosition ()
 
Vector2 GetSize ()
 
bool CanShareInput ()
 
bool CanCloseInCloseAllScreenCalls ()
 
virtual int GetTransitionOpeningTime ()
 
virtual int GetTransitionClosingTime ()
 
virtual void OnRemoved ()
 Called when [show]. More...
 

Protected Member Functions

override void OnClosed ()
 Called when [show]. More...
 
void MutePlayer (ulong mutedUserId)
 
void UnmutePlayer (ulong mutedUserId)
 
void IsMuteCheckedChanged (MyGuiControlCheckbox obj)
 
void AddPlayer (ulong userId)
 
void RemovePlayer (ulong userId)
 
void UpdateButtonsEnabledState ()
 
void Multiplayer_PlayerJoined (ulong userId)
 
void Multiplayer_PlayerLeft (ulong userId, ChatMemberStateChangeEnum arg2)
 
void Matchmaking_LobbyDataUpdate (bool success, Lobby lobby, ulong memberOrLobby)
 
MyOnlineModeEnum GetOnlineMode (LobbyTypeEnum lobbyType)
 
void playersTable_ItemSelected (MyGuiControlTable table, MyGuiControlTable.EventArgs args)
 
void inviteButton_ButtonClicked (MyGuiControlButton obj)
 
void makeOwnerButton_ButtonClicked (MyGuiControlButton obj)
 
void promoteButton_ButtonClicked (MyGuiControlButton obj)
 
void demoteButton_ButtonClicked (MyGuiControlButton obj)
 
void confirmLimitChange_ButtonClicked (MyGuiControlButton obj)
 
void kickButton_ButtonClicked (MyGuiControlButton obj)
 
void banButton_ButtonClicked (MyGuiControlButton obj)
 
void lobbyTypeCombo_OnSelect ()
 
void MaxPlayersSlider_Changed (MyGuiControlSlider control)
 
- Protected Member Functions inherited from Sandbox.Graphics.GUI.MyGuiScreenBase
 MyGuiScreenBase (Vector2?position=null, Vector4?backgroundColor=null, Vector2?size=null, bool isTopMostScreen=false, string backgroundTexture=null, float backgroundTransition=0.0f, float guiTransition=0.0f)
 
bool HandleKeyboardActiveIndex (bool forwardMovement)
 
bool IsMouseOver ()
 
MyGuiControlLabel AddCaption (MyStringId textEnum, Vector4?captionTextColor=null, Vector2?captionOffset=null, float captionScale=MyGuiConstants.DEFAULT_TEXT_SCALE)
 
MyGuiControlLabel AddCaption (String text, Vector4?captionTextColor=null, Vector2?captionOffset=null, float captionScale=MyGuiConstants.DEFAULT_TEXT_SCALE)
 
virtual void Canceling ()
 Called when user presses ESC or clicks on CANCEL - hook to this method so you can do gui-screen-specific event More...
 
Color ApplyTransitionAlpha (Vector4 color, float transition)
 
virtual void OnShow ()
 Called when [show]. More...
 
virtual void OnHide ()
 Called when [show]. More...
 
void MakeXAndYEqual (ref Vector2 val)
 Computes ratio of width and height in GUI coordinates to make X and Y of equal value represent same distance on screen as well. Then multiplies Y using this ratio. More...
 
Vector2 MakeXAndYEqual (Vector2 val)
 
void SetDefaultCloseButtonOffset ()
 

Static Protected Member Functions

static void Promote (ulong playerId, bool promote)
 
static void ShowPromoteMessage (MyPromoteLevel promoteLevel, bool promote)
 
static void ChangePlayerBlockLimit (long identityID, int newAmount)
 
static void Refresh ()
 
- Static Protected Member Functions inherited from Sandbox.Graphics.GUI.MyGuiScreenBase
static string MakeScreenFilepath (string name)
 

Protected Attributes

int PlayerNameColumn = 0
 
int PlayerFactionTagColumn = 1
 
int PlayerFactionNameColumn = 2
 
int PlayerMutedColumn = 3
 
int GameAdminColumn = 4
 
MyGuiControlTable m_playersTable
 
MyGuiControlButton m_inviteButton
 
MyGuiControlButton m_promoteButton
 
MyGuiControlButton m_demoteButton
 
MyGuiControlButton m_kickButton
 
MyGuiControlButton m_banButton
 
MyGuiControlCombobox m_lobbyTypeCombo
 
MyGuiControlSlider m_maxPlayersSlider
 
MyGuiControlTextbox m_playerBlockLimitTextbox
 
MyGuiControlButton m_confirmLimitChangeButton
 
HashSet< ulong > m_mutedPlayers
 
ulong m_lastSelected
 
- Protected Attributes inherited from Sandbox.Graphics.GUI.MyGuiScreenBase
Action OnEnterCallback
 
float m_transitionAlpha
 
float m_backgroundTransition
 
float m_guiTransition
 
Vector2 m_position
 
Color m_backgroundFadeColor
 
bool m_isTopMostScreen = false
 
bool m_isAlwaysFirst = false
 
bool m_isTopScreen = false
 
bool m_isFirstForUnload = false
 
Vector4 m_backgroundColor
 
string m_backgroundTexture
 
bool m_canCloseInCloseAllScreenCalls = true
 
Vector2 m_size
 
bool m_closeOnEsc = true
 
bool m_joystickAsMouse = true
 
bool m_defaultJoystickDpadUse = true
 
bool m_defaultJoystickCancelUse = true
 
bool m_drawEvenWithoutFocus = false
 
bool m_canShareInput = false
 
bool m_allowUnhidePreviousScreen
 
GuiSounds m_openingCueEnum
 
GuiSounds m_closingCueEnum
 
MyGuiControlGridDragAndDrop m_gridDragAndDropHandlingNow
 
MyGuiControlBase m_comboboxHandlingNow
 
MyGuiControlBase m_lastHandlingControl
 

Static Protected Attributes

static readonly string OWNER_MARKER = "*****"
 

Additional Inherited Members

- Public Attributes inherited from Sandbox.Graphics.GUI.MyGuiScreenBase
Action OnLoadingAction
 
readonly MyGuiControls Elements
 
- Properties inherited from Sandbox.Graphics.GUI.MyGuiScreenBase
Color BackgroundFadeColor [get]
 
bool SkipTransition [get, set]
 
bool Cancelled [get]
 
bool DrawMouseCursor [get, set]
 
bool JoystickAsMouse [get, set]
 
MyGuiScreenState State [get, set]
 
bool IsLoaded [get, set]
 
bool EnabledBackgroundFade [get, protected set]
 Draw fade rectangle under top-most screen? More...
 
bool CanBeHidden [get, protected set]
 Indicates whether screen can be hidden when another screen is on top of it (assuming that screen hides screens below it). More...
 
bool CanHideOthers [get, protected set]
 Indicates whether screen can hide screens below it. This will not hide screens that cannot be hidden. More...
 
bool CanHaveFocus [get, protected set]
 Without focus, this screen will not steal input. More...
 
virtual MyGuiControls Controls [get]
 
Vector4 BackgroundColor [get, set]
 
Vector2 Size [get, set]
 
bool Visible [get]
 
Vector2 CloseButtonOffset [get, set]
 
bool CloseButtonEnabled [get, set]
 
MyGuiControlBase FocusedControl [get, set]
 
string DebugNamePath [get]
 
string Name [get]
 
IMyGuiControlsOwner Owner [get]
 
- Properties inherited from Sandbox.Graphics.GUI.IMyGuiControlsParent
MyGuiControls Controls [get]
 
- Properties inherited from Sandbox.Graphics.GUI.IMyGuiControlsOwner
string DebugNamePath [get]
 
string Name [get]
 
IMyGuiControlsOwner Owner [get]
 
- Events inherited from Sandbox.Graphics.GUI.MyGuiScreenBase
ScreenHandler Closed
 
VisibleChangedDelegate VisibleChanged
 
Action< MyGuiScreenBaseDataLoading
 
Action< MyGuiScreenBaseDataUnloading
 

Detailed Description

Definition at line 28 of file MyGuiScreenPlayers.cs.

Constructor & Destructor Documentation

Sandbox.Game.Gui.MyGuiScreenPlayers.MyGuiScreenPlayers ( )
inline

Definition at line 50 of file MyGuiScreenPlayers.cs.

Member Function Documentation

void Sandbox.Game.Gui.MyGuiScreenPlayers.AddPlayer ( ulong  userId)
inlineprotected

Definition at line 309 of file MyGuiScreenPlayers.cs.

void Sandbox.Game.Gui.MyGuiScreenPlayers.banButton_ButtonClicked ( MyGuiControlButton  obj)
inlineprotected

Definition at line 630 of file MyGuiScreenPlayers.cs.

static void Sandbox.Game.Gui.MyGuiScreenPlayers.ChangePlayerBlockLimit ( long  identityID,
int  newAmount 
)
inlinestaticprotected

Definition at line 604 of file MyGuiScreenPlayers.cs.

void Sandbox.Game.Gui.MyGuiScreenPlayers.confirmLimitChange_ButtonClicked ( MyGuiControlButton  obj)
inlineprotected

Definition at line 516 of file MyGuiScreenPlayers.cs.

void Sandbox.Game.Gui.MyGuiScreenPlayers.demoteButton_ButtonClicked ( MyGuiControlButton  obj)
inlineprotected

Definition at line 509 of file MyGuiScreenPlayers.cs.

override string Sandbox.Game.Gui.MyGuiScreenPlayers.GetFriendlyName ( )
inlinevirtual

For displaying in the list in the debug screen.

Returns

Implements Sandbox.Graphics.GUI.MyGuiScreenBase.

Definition at line 75 of file MyGuiScreenPlayers.cs.

MyOnlineModeEnum Sandbox.Game.Gui.MyGuiScreenPlayers.GetOnlineMode ( LobbyTypeEnum  lobbyType)
inlineprotected

Definition at line 463 of file MyGuiScreenPlayers.cs.

override void Sandbox.Game.Gui.MyGuiScreenPlayers.HandleInput ( bool  receivedFocusInThisUpdate)
inlinevirtual

Reimplemented from Sandbox.Graphics.GUI.MyGuiScreenBase.

Definition at line 299 of file MyGuiScreenPlayers.cs.

void Sandbox.Game.Gui.MyGuiScreenPlayers.inviteButton_ButtonClicked ( MyGuiControlButton  obj)
inlineprotected

Definition at line 487 of file MyGuiScreenPlayers.cs.

void Sandbox.Game.Gui.MyGuiScreenPlayers.IsMuteCheckedChanged ( MyGuiControlCheckbox  obj)
inlineprotected

Definition at line 289 of file MyGuiScreenPlayers.cs.

void Sandbox.Game.Gui.MyGuiScreenPlayers.kickButton_ButtonClicked ( MyGuiControlButton  obj)
inlineprotected

Definition at line 623 of file MyGuiScreenPlayers.cs.

void Sandbox.Game.Gui.MyGuiScreenPlayers.lobbyTypeCombo_OnSelect ( )
inlineprotected

Definition at line 637 of file MyGuiScreenPlayers.cs.

void Sandbox.Game.Gui.MyGuiScreenPlayers.makeOwnerButton_ButtonClicked ( MyGuiControlButton  obj)
inlineprotected

Definition at line 492 of file MyGuiScreenPlayers.cs.

void Sandbox.Game.Gui.MyGuiScreenPlayers.Matchmaking_LobbyDataUpdate ( bool  success,
Lobby  lobby,
ulong  memberOrLobby 
)
inlineprotected

Definition at line 432 of file MyGuiScreenPlayers.cs.

void Sandbox.Game.Gui.MyGuiScreenPlayers.MaxPlayersSlider_Changed ( MyGuiControlSlider  control)
inlineprotected

Definition at line 647 of file MyGuiScreenPlayers.cs.

void Sandbox.Game.Gui.MyGuiScreenPlayers.Multiplayer_PlayerJoined ( ulong  userId)
inlineprotected

Definition at line 422 of file MyGuiScreenPlayers.cs.

void Sandbox.Game.Gui.MyGuiScreenPlayers.Multiplayer_PlayerLeft ( ulong  userId,
ChatMemberStateChangeEnum  arg2 
)
inlineprotected

Definition at line 427 of file MyGuiScreenPlayers.cs.

void Sandbox.Game.Gui.MyGuiScreenPlayers.MutePlayer ( ulong  mutedUserId)
inlineprotected

Definition at line 266 of file MyGuiScreenPlayers.cs.

override void Sandbox.Game.Gui.MyGuiScreenPlayers.OnClosed ( )
inlineprotectedvirtual

Called when [show].

Reimplemented from Sandbox.Graphics.GUI.MyGuiScreenBase.

Definition at line 80 of file MyGuiScreenPlayers.cs.

void Sandbox.Game.Gui.MyGuiScreenPlayers.playersTable_ItemSelected ( MyGuiControlTable  table,
MyGuiControlTable.EventArgs  args 
)
inlineprotected

Definition at line 478 of file MyGuiScreenPlayers.cs.

static void Sandbox.Game.Gui.MyGuiScreenPlayers.Promote ( ulong  playerId,
bool  promote 
)
inlinestaticprotected

Definition at line 528 of file MyGuiScreenPlayers.cs.

void Sandbox.Game.Gui.MyGuiScreenPlayers.promoteButton_ButtonClicked ( MyGuiControlButton  obj)
inlineprotected

Definition at line 502 of file MyGuiScreenPlayers.cs.

override void Sandbox.Game.Gui.MyGuiScreenPlayers.RecreateControls ( bool  constructor)
inlinevirtual

Reimplemented from Sandbox.Graphics.GUI.MyGuiScreenBase.

Definition at line 100 of file MyGuiScreenPlayers.cs.

static void Sandbox.Game.Gui.MyGuiScreenPlayers.Refresh ( )
inlinestaticprotected

Definition at line 613 of file MyGuiScreenPlayers.cs.

void Sandbox.Game.Gui.MyGuiScreenPlayers.RemovePlayer ( ulong  userId)
inlineprotected

Definition at line 351 of file MyGuiScreenPlayers.cs.

static void Sandbox.Game.Gui.MyGuiScreenPlayers.ShowPromoteMessage ( MyPromoteLevel  promoteLevel,
bool  promote 
)
inlinestaticprotected

Definition at line 564 of file MyGuiScreenPlayers.cs.

void Sandbox.Game.Gui.MyGuiScreenPlayers.UnmutePlayer ( ulong  mutedUserId)
inlineprotected

Definition at line 278 of file MyGuiScreenPlayers.cs.

void Sandbox.Game.Gui.MyGuiScreenPlayers.UpdateButtonsEnabledState ( )
inlineprotected

Definition at line 357 of file MyGuiScreenPlayers.cs.

Member Data Documentation

int Sandbox.Game.Gui.MyGuiScreenPlayers.GameAdminColumn = 4
protected

Definition at line 35 of file MyGuiScreenPlayers.cs.

MyGuiControlButton Sandbox.Game.Gui.MyGuiScreenPlayers.m_banButton
protected

Definition at line 42 of file MyGuiScreenPlayers.cs.

MyGuiControlButton Sandbox.Game.Gui.MyGuiScreenPlayers.m_confirmLimitChangeButton
protected

Definition at line 46 of file MyGuiScreenPlayers.cs.

MyGuiControlButton Sandbox.Game.Gui.MyGuiScreenPlayers.m_demoteButton
protected

Definition at line 40 of file MyGuiScreenPlayers.cs.

MyGuiControlButton Sandbox.Game.Gui.MyGuiScreenPlayers.m_inviteButton
protected

Definition at line 38 of file MyGuiScreenPlayers.cs.

MyGuiControlButton Sandbox.Game.Gui.MyGuiScreenPlayers.m_kickButton
protected

Definition at line 41 of file MyGuiScreenPlayers.cs.

ulong Sandbox.Game.Gui.MyGuiScreenPlayers.m_lastSelected
protected

Definition at line 48 of file MyGuiScreenPlayers.cs.

MyGuiControlCombobox Sandbox.Game.Gui.MyGuiScreenPlayers.m_lobbyTypeCombo
protected

Definition at line 43 of file MyGuiScreenPlayers.cs.

MyGuiControlSlider Sandbox.Game.Gui.MyGuiScreenPlayers.m_maxPlayersSlider
protected

Definition at line 44 of file MyGuiScreenPlayers.cs.

HashSet<ulong> Sandbox.Game.Gui.MyGuiScreenPlayers.m_mutedPlayers
protected

Definition at line 47 of file MyGuiScreenPlayers.cs.

MyGuiControlTextbox Sandbox.Game.Gui.MyGuiScreenPlayers.m_playerBlockLimitTextbox
protected

Definition at line 45 of file MyGuiScreenPlayers.cs.

MyGuiControlTable Sandbox.Game.Gui.MyGuiScreenPlayers.m_playersTable
protected

Definition at line 37 of file MyGuiScreenPlayers.cs.

MyGuiControlButton Sandbox.Game.Gui.MyGuiScreenPlayers.m_promoteButton
protected

Definition at line 39 of file MyGuiScreenPlayers.cs.

readonly string Sandbox.Game.Gui.MyGuiScreenPlayers.OWNER_MARKER = "*****"
staticprotected

Definition at line 30 of file MyGuiScreenPlayers.cs.

int Sandbox.Game.Gui.MyGuiScreenPlayers.PlayerFactionNameColumn = 2
protected

Definition at line 33 of file MyGuiScreenPlayers.cs.

int Sandbox.Game.Gui.MyGuiScreenPlayers.PlayerFactionTagColumn = 1
protected

Definition at line 32 of file MyGuiScreenPlayers.cs.

int Sandbox.Game.Gui.MyGuiScreenPlayers.PlayerMutedColumn = 3
protected

Definition at line 34 of file MyGuiScreenPlayers.cs.

int Sandbox.Game.Gui.MyGuiScreenPlayers.PlayerNameColumn = 0
protected

Definition at line 31 of file MyGuiScreenPlayers.cs.


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