1 /*! 2 @file 3 @author Albert Semenov 4 @date 12/2010 5 */ 6 7 #include "Precompiled.h" 8 #include "PropertyFieldAlpha.h" 9 #include "Parse.h" 10 11 namespace tools 12 { 13 PropertyFieldAlpha(MyGUI::Widget * _parent)14 PropertyFieldAlpha::PropertyFieldAlpha(MyGUI::Widget* _parent) : 15 PropertyFieldEditBox(_parent) 16 { 17 } 18 onCheckValue()19 bool PropertyFieldAlpha::onCheckValue() 20 { 21 bool success = utility::checkParseInterval<float>(mField, 1, 0., 1.); 22 23 return success; 24 } 25 26 } 27