Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/CGUISetting.cpp
Show All 16 Lines | |||||
#include "precompiled.h" | #include "precompiled.h" | ||||
#include "CGUISetting.h" | #include "CGUISetting.h" | ||||
#include "gui/CGUI.h" | #include "gui/CGUI.h" | ||||
template<typename T> | template<typename T> | ||||
CGUISetting<T>::CGUISetting(IGUIObject& pObject, const CStr& Name) | |||||
: m_pSetting(T()), m_Name(Name), m_pObject(pObject) | CGUISetting<T>::CGUISetting(IGUIObject& pObject, const CStr& Name, T& Value) | ||||
: m_pSetting(Value), m_Name(Name), m_pObject(pObject) | |||||
{ | { | ||||
} | } | ||||
template<typename T> | template<typename T> | ||||
bool CGUISetting<T>::FromString(const CStrW& Value, const bool SendMessage) | bool CGUISetting<T>::FromString(const CStrW& Value, const bool SendMessage) | ||||
{ | { | ||||
T settingValue; | T settingValue; | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator