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

#include <GUI_LoadingWindow.h>

Public Member Functions

void SetProgress (int _percent, const std::string &_text="", bool render_frame=true)
 
void SetProgressNetConnect (const std::string &net_status)
 
void Draw ()
 
void SetVisible (bool v)
 
bool IsVisible () const
 

Data Fields

const int PERC_HIDE_PROGRESSBAR = -1
 
const int PERC_SHOW_SPINNER = -2
 

Private Attributes

int m_percent = PERC_HIDE_PROGRESSBAR
 
bool m_is_visible = false
 
std::string m_text
 
int m_text_num_lines = -1
 
Ogre::Timer m_timer
 
float m_spinner_counter = 0.f
 

Detailed Description

Definition at line 31 of file GUI_LoadingWindow.h.

Member Function Documentation

◆ Draw()

void LoadingWindow::Draw ( )

Definition at line 80 of file GUI_LoadingWindow.cpp.

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

◆ IsVisible()

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

Definition at line 42 of file GUI_LoadingWindow.h.

+ Here is the caller graph for this function:

◆ SetProgress()

void LoadingWindow::SetProgress ( int  _percent,
const std::string &  _text = "",
bool  render_frame = true 
)

Definition at line 33 of file GUI_LoadingWindow.cpp.

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

◆ SetProgressNetConnect()

void LoadingWindow::SetProgressNetConnect ( const std::string &  net_status)

Definition at line 73 of file GUI_LoadingWindow.cpp.

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

◆ SetVisible()

void RoR::GUI::LoadingWindow::SetVisible ( bool  v)
inline

Definition at line 41 of file GUI_LoadingWindow.h.

+ Here is the caller graph for this function:

Field Documentation

◆ m_is_visible

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

Definition at line 46 of file GUI_LoadingWindow.h.

◆ m_percent

int RoR::GUI::LoadingWindow::m_percent = PERC_HIDE_PROGRESSBAR
private

Definition at line 45 of file GUI_LoadingWindow.h.

◆ m_spinner_counter

float RoR::GUI::LoadingWindow::m_spinner_counter = 0.f
private

Definition at line 50 of file GUI_LoadingWindow.h.

◆ m_text

std::string RoR::GUI::LoadingWindow::m_text
private

Definition at line 47 of file GUI_LoadingWindow.h.

◆ m_text_num_lines

int RoR::GUI::LoadingWindow::m_text_num_lines = -1
private

Definition at line 48 of file GUI_LoadingWindow.h.

◆ m_timer

Ogre::Timer RoR::GUI::LoadingWindow::m_timer
private

Definition at line 49 of file GUI_LoadingWindow.h.

◆ PERC_HIDE_PROGRESSBAR

const int RoR::GUI::LoadingWindow::PERC_HIDE_PROGRESSBAR = -1

Definition at line 34 of file GUI_LoadingWindow.h.

◆ PERC_SHOW_SPINNER

const int RoR::GUI::LoadingWindow::PERC_SHOW_SPINNER = -2

Definition at line 35 of file GUI_LoadingWindow.h.


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