summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2009-03-12Extending the internal handling of colorssniper13-104/+711
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.
2009-03-12Added a class for rendering of floating textsniper4-41/+95
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.
2009-03-12Removed some unneeded stub code.Ira Rice1-22/+3
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-12Made hair load again (commit e2d60401eaf55abe9e2251854f3174ffe0f4ad9eIra Rice3-4/+17
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>
2009-03-12Move emote sprite loading into EmoteDBJared Adams9-57/+29
2009-03-11Enforce minimum widths and heights to be at least as big as the minumumIra Rice4-8/+9
width and height for the skin used. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-11Modified Skin class to use proper encapsulation, instead of leaving itsIra Rice4-30/+81
skin variables public. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-11Centered buy/sell dialog.Ira Rice1-0/+2
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-11Removed widget listeners from the popup class. Tests have shown that atIra Rice2-5/+1
least for popup type functionality, this isn't needed. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-11Fixed up speech bubbles slightly so that it respects different paddingIra Rice1-3/+3
values. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-11Only check for name and descriptions in items with positive ID's in theIra Rice1-2/+5
ItemDB. This helps reduce the junk logging for the player and hair sprites. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-11Added a new Popup class, which overall is functionally similar to theIra Rice19-86/+477
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>
2009-03-11Fix a memory leak in dropdownJared Adams1-0/+3
2009-03-11Don't move stuff from inventory when not visibleJared Adams3-3/+7
2009-03-11Fix segfault when being count reaches 0 too oftenJared Adams3-30/+34
2009-03-11Moved the Skin class outside of the Window class, in order to allowIra Rice9-204/+286
other widget containers to use skins as well, and to make it easier to extend later. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-10Delete local player earlier and fix a rare crashJared Adams2-1/+3
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.
2009-03-10Introduced in a Skin holder class, to reduce the amount of needed XMLIra Rice2-41/+91
skin loads. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-10Set minimum bounds for speech bubbles, based on the skin's minimumIra Rice1-0/+3
dimensions. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-10Remove some SetupWindow weirdnessJared Adams4-8/+18
2009-03-10Fix some mem leaksJared Adams13-48/+20
2009-03-10Fix some mem leaksJared Adams13-20/+48
2009-03-10Allow for offsets for the enumerated position version ofIra Rice2-17/+17
setLocationRelativeTo as well. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-10Allow null link handlers for browser boxJared Adams1-0/+1
2009-03-10Extended window layout to take relative positions, as well as offsets toIra Rice23-75/+194
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>
2009-03-10Start NPC dialogs out hiddenJared Adams1-0/+5
2009-03-10Extended hit type handlingsniper6-60/+66
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.
2009-03-10Reverted last commit (since I confused it with something else) as wellIra Rice2-3/+6
as removed a redundant call for sizing in the minimap class. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-10Fixed setContentSize in the window class to only care about exceedingIra Rice1-6/+2
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>
2009-03-10Moved enforcement of minimum widths and heights to the Window class.Ira Rice3-40/+53
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>
2009-03-10Made it so that when windows load previous states, they are neverIra Rice7-22/+61
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>
2009-03-10Fix video config cancel button for "show name".Majin Sniper1-0/+2
The cancel button in Video configuration window doesn't switch back the "show name" setting to the original state. This patch fixes that.
2009-03-10Fix typo in item link parsingJared Adams1-13/+18
2009-03-10Expand the scope where item links workKess Vargavind2-32/+32
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.
2009-03-10Fixed an indentation error in the last commit.Ira Rice1-8/+8
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-10Remove some tabs and trailing whitespaceJared Adams10-23/+23
2009-03-09Send the correct packet for the NPC close buttonJared Adams5-10/+23
Both packets do the same, but we should be explicit anyways. Also, seperate out NPC client packets.
2009-03-09Got rid of an ugly and unified interface breaking cancel button in favorIra Rice5-10/+12
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>
2009-03-09Add an interface for eAthena's storage systemJared Adams19-69/+435
2009-03-06Cut down on redundant constant int declarations in the windows skinningIra Rice1-68/+6
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>
2009-03-06Fix layout of debug windowJared Adams1-3/+2
2009-03-05Made some optimizations based on some profiling done by Octalot, as wellIra Rice36-265/+248
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>
2009-03-05Removed a check I added in the previous commit which isn't necessary.Ira Rice1-9/+0
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-05Got rid of Sint{8,16,32} and Uint32 for being IDBjørn Lindeijer28-122/+122
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.
2009-03-02Cut down on constant streaming of attacks. Attacks from players now onlyIra Rice2-2/+2
occur on each swing action. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-02Added particle attacks back on to the players. However, instead of beingIra Rice5-10/+67
constant, particle attacks are now weapon specific, so that different weapons can have different attacks. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-26Forgot to extend the player or NPC specifying fields as well.Ira Rice1-1/+1
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-26Extended job numbers based on what's actually used for Ragnarok'sIra Rice1-3/+3
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>
2009-02-26Fixed showing being deaths. I removed the wrong pointless deathIra Rice1-6/+3
animation (case 1 is NOT death, but actually idle in SMSG_PLAYER_UPDATE_1) Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-26Fixed an error in shoplistboxes as identified by Octalot.Ira Rice10-27/+14
Signed-off-by: Ira Rice <irarice@gmail.com>