2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-16 08:57:03 +00:00

Text alignment and Text Button

This commit is contained in:
Jack Andersen
2015-12-13 11:00:30 -10:00
parent 72bd17890d
commit 2efa64b7b0
8 changed files with 278 additions and 94 deletions

View File

@@ -9,8 +9,8 @@ namespace Specter
struct IControlBinding
{
virtual const std::string& name() const=0;
virtual const std::string& help() const=0;
virtual const char* name() const=0;
virtual const char* help() const=0;
};
struct IButtonBinding : IControlBinding
@@ -37,8 +37,8 @@ struct CVarControlBinding : IControlBinding
HECL::CVar* m_cvar;
CVarControlBinding(HECL::CVar* cvar)
: m_cvar(cvar) {}
const std::string& name() const {return m_cvar->name();}
const std::string& help() const {return m_cvar->rawHelp();}
const char* name() const {return m_cvar->name().c_str();}
const char* help() const {return m_cvar->rawHelp().c_str();}
};
class Control : public View