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

#include <GUI_MultiplayerSelector.h>

+ Collaboration diagram for RoR::GUI::MultiplayerSelector:

Public Member Functions

 MultiplayerSelector ()
 
void SetVisible (bool v)
 
bool IsVisible () const
 
void StartAsyncRefresh ()
 Launch refresh from main thread. More...
 
void Draw ()
 
void DisplayRefreshFailed (CurlFailInfo *failinfo)
 
void UpdateServerlist (MpServerInfoVec *data)
 

Data Fields

const float BUTTONS_EXTRA_SPACE = 6.f
 
const float TABLE_PADDING_LEFT = 4.f
 

Private Member Functions

void DrawSetupTab ()
 
void DrawDirectTab ()
 
void DrawServerlistTab ()
 

Private Attributes

MpServerInfoVec m_serverlist_data
 
int m_selected_item = -1
 
char m_window_title [100]
 
bool m_is_visible = false
 
bool m_draw_table = false
 
Str< 1000 > m_user_token_buf
 
Str< 1000 > m_player_name_buf
 
Str< 1000 > m_password_buf
 
Str< 1000 > m_server_host_buf
 
Ogre::TexturePtr m_lock_icon
 
bool m_show_spinner = false
 
std::string m_serverlist_msg
 
ImVec4 m_serverlist_msg_color
 
std::string m_serverlist_curlmsg
 Displayed as dimmed text. More...
 
std::string m_serverlist_httpmsg
 Displayed as dimmed text. More...
 

Detailed Description

Definition at line 54 of file GUI_MultiplayerSelector.h.

Constructor & Destructor Documentation

◆ MultiplayerSelector()

MultiplayerSelector::MultiplayerSelector ( )

Definition at line 143 of file GUI_MultiplayerSelector.cpp.

Member Function Documentation

◆ DisplayRefreshFailed()

void MultiplayerSelector::DisplayRefreshFailed ( CurlFailInfo failinfo)

Definition at line 406 of file GUI_MultiplayerSelector.cpp.

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

◆ Draw()

void MultiplayerSelector::Draw ( )

Definition at line 148 of file GUI_MultiplayerSelector.cpp.

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

◆ DrawDirectTab()

void MultiplayerSelector::DrawDirectTab ( )
private

Definition at line 215 of file GUI_MultiplayerSelector.cpp.

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

◆ DrawServerlistTab()

void MultiplayerSelector::DrawServerlistTab ( )
private

Definition at line 236 of file GUI_MultiplayerSelector.cpp.

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

◆ DrawSetupTab()

void MultiplayerSelector::DrawSetupTab ( )
private

Definition at line 187 of file GUI_MultiplayerSelector.cpp.

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

◆ IsVisible()

bool RoR::GUI::MultiplayerSelector::IsVisible ( ) const
inline

Definition at line 63 of file GUI_MultiplayerSelector.h.

+ Here is the caller graph for this function:

◆ SetVisible()

void MultiplayerSelector::SetVisible ( bool  v)

Definition at line 392 of file GUI_MultiplayerSelector.cpp.

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

◆ StartAsyncRefresh()

void MultiplayerSelector::StartAsyncRefresh ( )

Launch refresh from main thread.

Definition at line 379 of file GUI_MultiplayerSelector.cpp.

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

◆ UpdateServerlist()

void MultiplayerSelector::UpdateServerlist ( MpServerInfoVec data)

Definition at line 418 of file GUI_MultiplayerSelector.cpp.

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

Field Documentation

◆ BUTTONS_EXTRA_SPACE

const float RoR::GUI::MultiplayerSelector::BUTTONS_EXTRA_SPACE = 6.f

Definition at line 57 of file GUI_MultiplayerSelector.h.

◆ m_draw_table

bool RoR::GUI::MultiplayerSelector::m_draw_table = false
private

Definition at line 78 of file GUI_MultiplayerSelector.h.

◆ m_is_visible

bool RoR::GUI::MultiplayerSelector::m_is_visible = false
private

Definition at line 77 of file GUI_MultiplayerSelector.h.

◆ m_lock_icon

Ogre::TexturePtr RoR::GUI::MultiplayerSelector::m_lock_icon
private

Definition at line 83 of file GUI_MultiplayerSelector.h.

◆ m_password_buf

Str<1000> RoR::GUI::MultiplayerSelector::m_password_buf
private

Definition at line 81 of file GUI_MultiplayerSelector.h.

◆ m_player_name_buf

Str<1000> RoR::GUI::MultiplayerSelector::m_player_name_buf
private

Definition at line 80 of file GUI_MultiplayerSelector.h.

◆ m_selected_item

int RoR::GUI::MultiplayerSelector::m_selected_item = -1
private

Definition at line 75 of file GUI_MultiplayerSelector.h.

◆ m_server_host_buf

Str<1000> RoR::GUI::MultiplayerSelector::m_server_host_buf
private

Definition at line 82 of file GUI_MultiplayerSelector.h.

◆ m_serverlist_curlmsg

std::string RoR::GUI::MultiplayerSelector::m_serverlist_curlmsg
private

Displayed as dimmed text.

Definition at line 89 of file GUI_MultiplayerSelector.h.

◆ m_serverlist_data

MpServerInfoVec RoR::GUI::MultiplayerSelector::m_serverlist_data
private

Definition at line 74 of file GUI_MultiplayerSelector.h.

◆ m_serverlist_httpmsg

std::string RoR::GUI::MultiplayerSelector::m_serverlist_httpmsg
private

Displayed as dimmed text.

Definition at line 90 of file GUI_MultiplayerSelector.h.

◆ m_serverlist_msg

std::string RoR::GUI::MultiplayerSelector::m_serverlist_msg
private

Definition at line 87 of file GUI_MultiplayerSelector.h.

◆ m_serverlist_msg_color

ImVec4 RoR::GUI::MultiplayerSelector::m_serverlist_msg_color
private

Definition at line 88 of file GUI_MultiplayerSelector.h.

◆ m_show_spinner

bool RoR::GUI::MultiplayerSelector::m_show_spinner = false
private

Definition at line 84 of file GUI_MultiplayerSelector.h.

◆ m_user_token_buf

Str<1000> RoR::GUI::MultiplayerSelector::m_user_token_buf
private

Definition at line 79 of file GUI_MultiplayerSelector.h.

◆ m_window_title

char RoR::GUI::MultiplayerSelector::m_window_title[100]
private

Definition at line 76 of file GUI_MultiplayerSelector.h.

◆ TABLE_PADDING_LEFT

const float RoR::GUI::MultiplayerSelector::TABLE_PADDING_LEFT = 4.f

Definition at line 58 of file GUI_MultiplayerSelector.h.


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