Changeset View
Changeset View
Standalone View
Standalone View
source/gui/IGUIObject.cpp
Show First 20 Lines • Show All 223 Lines • ▼ Show 20 Lines | if (!SettingExists(Setting)) | ||||
return PSRETURN_GUI_InvalidSetting; | return PSRETURN_GUI_InvalidSetting; | ||||
SGUISetting set = m_Settings[Setting]; | SGUISetting set = m_Settings[Setting]; | ||||
#define TYPE(type) \ | #define TYPE(type) \ | ||||
else if (set.m_Type == GUIST_##type) \ | else if (set.m_Type == GUIST_##type) \ | ||||
{ \ | { \ | ||||
type _Value; \ | type _Value; \ | ||||
if (!GUI<type>::ParseString(Value, _Value)) \ | if (!GUI<type>::ParseString(GetGUI(), Value, _Value)) \ | ||||
return PSRETURN_GUI_UnableToParse; \ | return PSRETURN_GUI_UnableToParse; \ | ||||
GUI<type>::SetSetting(this, Setting, _Value, SkipMessage); \ | GUI<type>::SetSetting(this, Setting, _Value, SkipMessage); \ | ||||
} | } | ||||
if (0) | if (0) | ||||
; | ; | ||||
#include "GUItypes.h" | #include "GUItypes.h" | ||||
#undef TYPE | #undef TYPE | ||||
▲ Show 20 Lines • Show All 309 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator