adding 'ellipse=blah' tag to units. removing unused ellipse graphics

This commit is contained in:
John W. C. McNabb 2006-03-19 12:19:44 +00:00
parent 3621063b7e
commit 9238ae70be
50 changed files with 17 additions and 3 deletions

View file

@ -42,6 +42,10 @@ SVN trunk (1.1.1+svn):
* 3rd mission: 6 extra turns after killing the leader, this should allow
to free Bjarn even if Arne was not involved in the main battle
* graphics
* added 'ellipse=blah' tag to units which will select the four images from
the misc directory for use as an ellipse: misc/blah-bottom.png,
misc/blah-top.png, misc/selected-blah-bottom.png,
and misc/selected-blah-top.png
* new encampment graphics
* moved hero icon from the South Guard into main directories
* new attack icons: animal fangs, axe, baneblade, battle axe, beak,

View file

@ -3,6 +3,7 @@
name= _ "Goblin Spearman"
race=goblin
image="units/goblins/spearman.png"
ellipse="ellipse-nozoc"
[defend]
[frame]
begin=-150

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 778 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 774 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 927 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1,022 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 965 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 980 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

View file

@ -1407,9 +1407,13 @@ void display::draw_unit_on_tile(int x, int y, surface unit_image_override,
}
//selected ellipse not pure red at all!
char buf[50];
snprintf(buf,sizeof(buf),"misc/%sellipse-1-top.png",selected);
std::string ellipse=it->second.type().image_ellipse();
if(ellipse.empty()){
ellipse="ellipse-1";
}
snprintf(buf,sizeof(buf),"misc/%s%s-top.png",selected,ellipse.c_str());
ellipse_back.assign(image::get_image(image::locator(buf,it->second.team_rgb_range(),temp_rgb)));
snprintf(buf,sizeof(buf),"misc/%sellipse-1-bottom.png",selected);
snprintf(buf,sizeof(buf),"misc/%s%s-bottom.png",selected,ellipse.c_str());
ellipse_front.assign(image::get_image(image::locator(buf,it->second.team_rgb_range(),temp_rgb)));
}

View file

@ -1089,12 +1089,16 @@ const std::string& unit_type::image() const
return cfg_["image"];
}
const std::string& unit_type::image_ellipse() const
{
return cfg_["ellipse"];
}
const std::string& unit_type::image_halo() const
{
return cfg_["halo"];
}
const std::string& unit_type::image_fighting(attack_type::RANGE range) const
{
static const std::string short_range("image_short");

View file

@ -172,6 +172,7 @@ public:
//language_name should eventually be renamed name()
// const std::string& name() const;
const std::string& image() const;
const std::string& image_ellipse() const;
const std::string& image_halo() const;
const std::string& image_profile() const;
const std::string& image_fighting(attack_type::RANGE range) const;