SuperTuxKart
Loading...
Searching...
No Matches
Enumerations | Functions | Variables
SkinConfig Namespace Reference

Small utility to read config file info from a XML file. More...

Enumerations

enum  options {
  MARGIN , BORDER , PADDING , TOP ,
  BOTTOM , LEFT , RIGHT , HORIZONTAL ,
  VERTICAL
}
 

Functions

static void parseElement (const XMLNode *node)
 
static void parseColor (const XMLNode *node)
 
static void loadFromFile (std::string file, bool clear_prev_params)
 loads skin information from a STK skin file
 
std::vector< std::string > getDependencyChain (std::string initial_skin_id)
 
float getVerticalInnerPadding (int wtype, Widget *widget)
 
float getHorizontalInnerPadding (int wtype, Widget *widget)
 
float getInnerPadding (int wtype, int rtype, int axis)
 
float getValue (int value_type, int widget_type, int ribbon_type, int axis)
 

Variables

static std::map< std::string, BoxRenderParamsm_render_params
 
static std::map< std::string, SColor > m_colors
 
static std::string m_data_path
 
static std::vector< std::string > m_normal_ttf
 
static std::vector< std::string > m_digit_ttf
 
static std::string m_color_emoji_ttf
 
static std::vector< std::string > m_icon_theme_paths
 
static bool m_font
 

Detailed Description

Small utility to read config file info from a XML file.

Function Documentation

◆ loadFromFile()

static void SkinConfig::loadFromFile ( std::string  file,
bool  clear_prev_params 
)
static

loads skin information from a STK skin file

Exceptions
std::runtime_errorif file cannot be read