Age | Commit message (Collapse) | Author | Files | Lines |
|
The internal storage for colors was in the file color.h/color.cpp. It
mainly managed the colors in the chat.
The Color class was extended to be more generic now and it stores
gcn::Color objects instead of integers now. A lot of new colortypes are
now available, though not many of them are used for now, that will come
in the next patches.
The Color class was renamed to Palette and color.{h,cpp} to
palette.{h,cpp} to better describe its purpose.
The color config gui now lists the new colors, even changes them, but the
result is not displayed properly for now.
|
|
This is a header only-class that merges the textrendering of the
TextParticle and Text classes. It is done to reduce code duplication and
to prepare some color configuration gui.
|
|
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
from TMW broke this, as it deleted the Being::load() method, which also
loaded the hair styles). Also removed some unused variables in the being
class.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
|
|
width and height for the skin used.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
skin variables public.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
least for popup type functionality, this isn't needed.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
values.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
ItemDB. This helps reduce the junk logging for the player and hair
sprites.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
Window class, but stripped down to the bare essential functionality to
just draw and position them. This means no resizing, no close buttons,
no ability to move them, etc. This should help reduce the overhead in
drawing speech bubbles, as well as other popup type dialogs, but is also
not a drop in replacement for the Window class as well.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
|
|
|
|
|
|
other widget containers to use skins as well, and to make it easier to
extend later.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
Rare crash is in KeyboardConfig, where the active keys array is accessed
before it's initialized. Also remove some debug prints that made it into
a previous commit.
|
|
skin loads.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
dimensions.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
|
|
|
|
|
|
setLocationRelativeTo as well.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
|
|
that position. This makes it so that when resolutions are changed, the
default locations stay relative to the window's position, and not the
800x600 screen resolution.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
|
|
The client can now differentiate between the following hit types:
- hit (normal)
- critical (full attack)
- multi (more than one hit at once, currently not used)
- reflect (reflected damage, currently not used)
- flee (dodging criticals)
The Being's showCrit method is now merged into takeDamage.
Being's takeDamage and handleAttack now both get the opponent, the amount of
damage and the attack type as parameter.
|
|
as removed a redundant call for sizing in the minimap class.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
the maximum width and height. Exceeding the minumum width and height
is a desireable case in some situations.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
This was needed in the Minimap class, but not migrated out to the Window
class until now.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
smaller than the minimum width and height (a check that should have
been enforced in the first place), as well as modified the NPC list and
text dialogs to remember where they were when they were moved or resized
last.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
The cancel button in Video configuration window doesn't switch back the
"show name" setting to the original state. This patch fixes that.
|
|
|
|
This patch makes item links work in any chatLog() message, not only chatSend()
as before. I enabled it for the "You picked <nr> <item>" message by explicitly
adding [] around the item name in the string.
|
|
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
|
|
Both packets do the same, but we should be explicit anyways. Also,
seperate out NPC client packets.
|
|
of adding overridable close functionality to the Window class. Now, if
you need a close button, but need to do something different, or in
addition to the Window close functionality, you can override it and do
that action.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
|
|
code. While this shouldn't do too much, if anything, for performance, it
makes maintenence easier in the future if only one set of ints needs to
be modified rather than 9 when they do the same thing.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
|
|
as some other optimizations that I could see that cut down on some
unneeded redraws, which in turn improved frame rates slightly.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
Using unsigned rarely makes sense, especially when the server doesn't
use it either. Other uses of unsigned should be reviewed.
In all other cases, int is the fastest integer type on any architecture.
Using 8 or 16 bits can basically only be a memory optimization.
|
|
occur on each swing action.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
constant, particle attacks are now weapon specific, so that different
weapons can have different attacks.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
server. TODO: Make this externally configurable, so that specific
servers can specify what they use specific sprite IDs for, as well as
specifying good defaults as well, in case that configuration file isn't
found.
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
animation (case 1 is NOT death, but actually idle in SMSG_PLAYER_UPDATE_1)
Signed-off-by: Ira Rice <irarice@gmail.com>
|
|
Signed-off-by: Ira Rice <irarice@gmail.com>
|