mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	new constructor
This commit is contained in:
		| @@ -454,6 +454,13 @@ CGStatusBar::CGStatusBar(std::shared_ptr<CIntObject> background_, EFonts Font, E | ||||
| 	autoRedraw = false; | ||||
| } | ||||
|  | ||||
| CGStatusBar::CGStatusBar(int x, int y) | ||||
| 	: CLabel(x, y, FONT_SMALL, ETextAlignment::CENTER) | ||||
| 	, enteringText(false) | ||||
| { | ||||
| 	addUsedEvents(LCLICK); | ||||
| } | ||||
|  | ||||
| CGStatusBar::CGStatusBar(int x, int y, const ImagePath & name, int maxw) | ||||
| 	: CLabel(x, y, FONT_SMALL, ETextAlignment::CENTER) | ||||
| 	, enteringText(false) | ||||
|   | ||||
| @@ -125,7 +125,8 @@ class CGStatusBar : public CLabel, public std::enable_shared_from_this<CGStatusB | ||||
| 	bool enteringText; | ||||
|  | ||||
| 	CGStatusBar(std::shared_ptr<CIntObject> background_, EFonts Font = FONT_SMALL, ETextAlignment Align = ETextAlignment::CENTER, const ColorRGBA & Color = Colors::WHITE); | ||||
| 	CGStatusBar(int x, int y, const ImagePath & name = ImagePath::builtin(""), int maxw = -1); | ||||
| 	CGStatusBar(int x, int y, const ImagePath & name, int maxw = -1); | ||||
| 	CGStatusBar(int x, int y); | ||||
|  | ||||
| 	//make CLabel API private | ||||
| 	using CLabel::getText; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user