RigsofRods
Soft-body Physics Simulation
Public Member Functions | Private Member Functions | Private Attributes
RoR::GUI::MpClientList Class Reference

#include <GUI_MultiplayerClientList.h>

Public Member Functions

void Draw ()
 
void UpdateClients ()
 

Private Member Functions

void DrawIcon (Ogre::TexturePtr tex, ImVec2 reference_box)
 
void CacheIcons ()
 
void DrawPeerOptionsMenu ()
 
void DrawPeerOptCheckbox (const BitMask_t flag, const std::string &label)
 
void DrawServerCommandBtn (const std::string &cmdfmt, const std::string &label)
 

Private Attributes

std::vector< RoRnet::UserInfom_users
 
std::vector< BitMask_tm_users_peeropts
 
const int PEEROPTS_MENU_CONTENT_WIDTH = 150
 
const int PEEROPTS_MENU_MARGIN = 10
 
const int PEEROPTS_HOVER_MARGIN = 100
 
int m_peeropts_menu_active_user_vectorpos = -1
 
ImVec2 m_peeropts_menu_corner_tl = ImVec2(0, 0)
 
ImVec2 m_peeropts_menu_corner_br = ImVec2(0, 0)
 
bool m_icons_cached = false
 
Ogre::TexturePtr m_icon_arrow_down
 
Ogre::TexturePtr m_icon_arrow_down_grey
 
Ogre::TexturePtr m_icon_arrow_down_red
 
Ogre::TexturePtr m_icon_arrow_up
 
Ogre::TexturePtr m_icon_arrow_up_grey
 
Ogre::TexturePtr m_icon_arrow_up_red
 
Ogre::TexturePtr m_icon_flag_red
 
Ogre::TexturePtr m_icon_flag_blue
 
Ogre::TexturePtr m_icon_flag_green
 
Ogre::TexturePtr m_icon_warn_triangle
 

Detailed Description

Definition at line 38 of file GUI_MultiplayerClientList.h.

Member Function Documentation

◆ CacheIcons()

void MpClientList::CacheIcons ( )
private

Definition at line 373 of file GUI_MultiplayerClientList.cpp.

+ Here is the call graph for this function:

◆ Draw()

void MpClientList::Draw ( )

Definition at line 74 of file GUI_MultiplayerClientList.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DrawIcon()

void MpClientList::DrawIcon ( Ogre::TexturePtr  tex,
ImVec2  reference_box 
)
private

Definition at line 359 of file GUI_MultiplayerClientList.cpp.

◆ DrawPeerOptCheckbox()

void MpClientList::DrawPeerOptCheckbox ( const BitMask_t  flag,
const std::string &  label 
)
private

Definition at line 290 of file GUI_MultiplayerClientList.cpp.

+ Here is the call graph for this function:

◆ DrawPeerOptionsMenu()

void MpClientList::DrawPeerOptionsMenu ( )
private

Definition at line 312 of file GUI_MultiplayerClientList.cpp.

◆ DrawServerCommandBtn()

void RoR::GUI::MpClientList::DrawServerCommandBtn ( const std::string &  cmdfmt,
const std::string &  label 
)
private

Definition at line 303 of file GUI_MultiplayerClientList.cpp.

+ Here is the call graph for this function:

◆ UpdateClients()

void MpClientList::UpdateClients ( )

Definition at line 45 of file GUI_MultiplayerClientList.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ m_icon_arrow_down

Ogre::TexturePtr RoR::GUI::MpClientList::m_icon_arrow_down
private

Definition at line 64 of file GUI_MultiplayerClientList.h.

◆ m_icon_arrow_down_grey

Ogre::TexturePtr RoR::GUI::MpClientList::m_icon_arrow_down_grey
private

Definition at line 65 of file GUI_MultiplayerClientList.h.

◆ m_icon_arrow_down_red

Ogre::TexturePtr RoR::GUI::MpClientList::m_icon_arrow_down_red
private

Definition at line 66 of file GUI_MultiplayerClientList.h.

◆ m_icon_arrow_up

Ogre::TexturePtr RoR::GUI::MpClientList::m_icon_arrow_up
private

Definition at line 67 of file GUI_MultiplayerClientList.h.

◆ m_icon_arrow_up_grey

Ogre::TexturePtr RoR::GUI::MpClientList::m_icon_arrow_up_grey
private

Definition at line 68 of file GUI_MultiplayerClientList.h.

◆ m_icon_arrow_up_red

Ogre::TexturePtr RoR::GUI::MpClientList::m_icon_arrow_up_red
private

Definition at line 69 of file GUI_MultiplayerClientList.h.

◆ m_icon_flag_blue

Ogre::TexturePtr RoR::GUI::MpClientList::m_icon_flag_blue
private

Definition at line 71 of file GUI_MultiplayerClientList.h.

◆ m_icon_flag_green

Ogre::TexturePtr RoR::GUI::MpClientList::m_icon_flag_green
private

Definition at line 72 of file GUI_MultiplayerClientList.h.

◆ m_icon_flag_red

Ogre::TexturePtr RoR::GUI::MpClientList::m_icon_flag_red
private

Definition at line 70 of file GUI_MultiplayerClientList.h.

◆ m_icon_warn_triangle

Ogre::TexturePtr RoR::GUI::MpClientList::m_icon_warn_triangle
private

Definition at line 73 of file GUI_MultiplayerClientList.h.

◆ m_icons_cached

bool RoR::GUI::MpClientList::m_icons_cached = false
private

Definition at line 63 of file GUI_MultiplayerClientList.h.

◆ m_peeropts_menu_active_user_vectorpos

int RoR::GUI::MpClientList::m_peeropts_menu_active_user_vectorpos = -1
private

Definition at line 58 of file GUI_MultiplayerClientList.h.

◆ m_peeropts_menu_corner_br

ImVec2 RoR::GUI::MpClientList::m_peeropts_menu_corner_br = ImVec2(0, 0)
private

Definition at line 60 of file GUI_MultiplayerClientList.h.

◆ m_peeropts_menu_corner_tl

ImVec2 RoR::GUI::MpClientList::m_peeropts_menu_corner_tl = ImVec2(0, 0)
private

Definition at line 59 of file GUI_MultiplayerClientList.h.

◆ m_users

std::vector<RoRnet::UserInfo> RoR::GUI::MpClientList::m_users
private

Definition at line 48 of file GUI_MultiplayerClientList.h.

◆ m_users_peeropts

std::vector<BitMask_t> RoR::GUI::MpClientList::m_users_peeropts
private

Definition at line 49 of file GUI_MultiplayerClientList.h.

◆ PEEROPTS_HOVER_MARGIN

const int RoR::GUI::MpClientList::PEEROPTS_HOVER_MARGIN = 100
private

Definition at line 57 of file GUI_MultiplayerClientList.h.

◆ PEEROPTS_MENU_CONTENT_WIDTH

const int RoR::GUI::MpClientList::PEEROPTS_MENU_CONTENT_WIDTH = 150
private

Definition at line 55 of file GUI_MultiplayerClientList.h.

◆ PEEROPTS_MENU_MARGIN

const int RoR::GUI::MpClientList::PEEROPTS_MENU_MARGIN = 10
private

Definition at line 56 of file GUI_MultiplayerClientList.h.


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