Просмотр исходного кода

Default continuous updates in UIColorBox and UIHSlider to false

Ivan Safrin 12 лет назад
Родитель
Сommit
b0e672dd5f

+ 2 - 0
Modules/Contents/UI/Source/PolyUIColorBox.cpp

@@ -32,6 +32,8 @@ using namespace Polycode;
 UIColorPicker::UIColorPicker() : UIWindow(L"", 300, 240) {
 	closeOnEscape = true;
 	
+	continuous = false;
+		
 //	topPadding
 	Config *conf = CoreServices::getInstance()->getConfig();	
 		

+ 2 - 0
Modules/Contents/UI/Source/PolyUIHSlider.cpp

@@ -29,6 +29,8 @@ using namespace Polycode;
 
 UIHSlider::UIHSlider(Number start, Number end, Number width) : UIElement() {
 
+	continuous = false;
+	
 	Config *conf = CoreServices::getInstance()->getConfig();	
 	
 	String bgImage = conf->getStringValue("Polycode", "uiHSliderBg");