Skip to content

Commit

Permalink
Fixed radar dot size of local player and the color of the [TARGET] st…
Browse files Browse the repository at this point in the history
…ring.
  • Loading branch information
bjorn committed Jul 19, 2006
1 parent 28e8649 commit 02ea6ce
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
22 changes: 12 additions & 10 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
2006-07-19 Bjørn Lindeijer <bjorn@lindeijer.nl>

* tmw.cbp: Added Code::Blocks project file.
* src/gui/minimap.cpp: Fixed dot size of local player.
* src/engine.cpp: Fixed color of "[TARGET]".

2006-07-19 Eugenio Favalli <elvenprogrammer@gmail.com>

Expand All @@ -25,21 +27,21 @@
specified in the downloaded resources.txt file, and in the order
in which they are mentioned (the top one being the most
significant).
2006-07-17 Frode Lindeijer <f.lindeijer@gmail.com>

2006-07-17 Frode Lindeijer <f.lindeijer@gmail.com>

* Added shorts to items.png

2006-07-12 Bjørn Lindeijer <bjorn@lindeijer.nl>

* src/gui/newskill.cpp: Fixed up a string comparison that caused a
warning with GCC 4.2.

2006-07-12 Frode Lindeijer <f.lindeijer@gmail.com>
2006-07-12 Frode Lindeijer <f.lindeijer@gmail.com>

* /tmw/trunk/data/graphics/sprites/item001.png: Completed the cotton
shirt equipment graphic.

2006-07-06 Philipp Sehmisch <tmw@crushnet.org>

* src/animation.cpp, src/animation.h, src/being.cpp, src/being.h,
Expand All @@ -53,19 +55,19 @@
* data/graphics/sprites/Makefile.am: Added new files.
* src/animation.cpp: Added missing return value...
* src/Makefile.am: Added new files.

2006-07-05 Bjørn Lindeijer <bjorn@lindeijer.nl>

* data/graphics/sprites/monster0.xml: Fixed frame size of maggot.
* src/being.h: drawName should be virtual, lest we want names to be
drawn.

2006-07-03 Philipp Sehmisch <tmw@crushnet.org>

* src/spriteset.cpp, src/spriteset.h: Spriteset::get() doesn't crash
anymore when requesting a sprite outside of the spriteset. (it returns
NULL instead and logs a warning).

2006-07-03 Philipp Sehmisch <tmw@crushnet.org>

* src/being.cpp: Fixed a compiler issue reported by Pajarico.
Expand All @@ -74,7 +76,7 @@

* tools/Reorganize.java: Added tool used for reorganizing and
auto-cropping the monster spritesets.

2006-07-03 Philipp Sehmisch <tmw@crushnet.org>

* src/main.cpp, src/engine.cpp: Removed some no longer required old
Expand Down Expand Up @@ -238,7 +240,7 @@
Equipment window now show all the slots, and adapted visible shirts to
head (middle) equipments.

2006-06-27 Frode Lindeijer <f.lindeijer@gmail.com>
2006-06-27 Frode Lindeijer <f.lindeijer@gmail.com>

* /tmw/trunk/data/graphics/sprites/player_male_base.png:
Fixed transparency issue with the north punching frames
Expand Down
1 change: 1 addition & 0 deletions src/engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ void Engine::draw(Graphics *graphics)
if ((target = player_node->getTarget()))
{
graphics->setFont(speechFont);
graphics->setColor(gcn::Color(255, 255, 255));
int dy = (target->getType() == Being::PLAYER) ? 90 : 52;

graphics->drawText("[TARGET]", target->getPixelX() - map_x + 15,
Expand Down
3 changes: 2 additions & 1 deletion src/gui/minimap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ void Minimap::draw(gcn::Graphics *graphics)

graphics->fillRectangle(gcn::Rectangle(
being->mX / 2 + getPadding() - offset,
being->mY / 2 + getTitleBarHeight() - offset, 1, 1));
being->mY / 2 + getTitleBarHeight() - offset,
dotSize, dotSize));
}
}

0 comments on commit 02ea6ce

Please sign in to comment.