Browse Source

New resolution selection button

Ivan Savenko 11 years ago
parent
commit
52da593292

+ 8 - 0
Mods/vcmi/Sprites/buttons/resolution.json

@@ -0,0 +1,8 @@
+{
+	"basepath" : "buttons/",
+	"images" :
+	[
+		{ "frame" : 0, "file" : "resolutionNormal.png"},
+		{ "frame" : 1, "file" : "resolutionPressed.png"}
+	]
+}

BIN
Mods/vcmi/Sprites/buttons/resolutionNormal.png


BIN
Mods/vcmi/Sprites/buttons/resolutionPressed.png


+ 1 - 1
client/windows/GUIClasses.cpp

@@ -624,7 +624,7 @@ CSystemOptionsWindow::CSystemOptionsWindow():
 
 	gameResButton = new CAdventureMapButton("", texts["resolutionButton"]["help"].String(),
 	                                        boost::bind(&CSystemOptionsWindow::selectGameRes, this),
-	                                        28, 275,"SYSOB12", SDLK_g);
+											28, 275,"buttons/resolution", SDLK_g);
 
 	std::string resText;
 	resText += boost::lexical_cast<std::string>(settings["video"]["screenRes"]["width"].Float());