mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Implemented new button for commander window
This commit is contained in:
parent
7f790f9d6a
commit
5111bff6cc
8
Mods/vcmi/Sprites/buttons/commander.json
Normal file
8
Mods/vcmi/Sprites/buttons/commander.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"basepath" : "buttons/",
|
||||
"images" :
|
||||
[
|
||||
{ "frame" : 0, "file" : "commanderNormal.png"},
|
||||
{ "frame" : 1, "file" : "commanderPressed.png"}
|
||||
]
|
||||
}
|
BIN
Mods/vcmi/Sprites/buttons/commanderNormal.png
Normal file
BIN
Mods/vcmi/Sprites/buttons/commanderNormal.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.2 KiB |
BIN
Mods/vcmi/Sprites/buttons/commanderPressed.png
Normal file
BIN
Mods/vcmi/Sprites/buttons/commanderPressed.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
@ -117,7 +117,7 @@ CHeroWindow::CHeroWindow(const CGHeroInstance *hero):
|
||||
|
||||
if (hero->commander)
|
||||
{
|
||||
commanderButton = new CAdventureMapButton ("Commander", "Commander info", boost::bind(&CHeroWindow::commanderWindow, this), 317, 18, "chftke.def", SDLK_c, nullptr, false);
|
||||
commanderButton = new CAdventureMapButton ("Commander", "Commander info", boost::bind(&CHeroWindow::commanderWindow, this), 317, 18, "buttons/commander", SDLK_c, nullptr, false);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user