summaryrefslogtreecommitdiff
path: root/src/gui
AgeCommit message (Collapse)AuthorFilesLines
2010-08-02Remove non-GUI references to MiniStatusWindowJared Adams4-28/+88
Reviewed-by: Freeyorp
2010-08-02Convert most of the remaining chat system to use the event systemChuck Miller1-0/+25
Reviewed-by: Jared Adams
2010-08-01Remove isActive methods from NPC dialogs and InventoryWindowJared Adams7-17/+18
Uses counts in PlayerInfo instead. Reviewed-by: Chuck Miller
2010-08-01Remove isActive methods from buy/sell windowsJared Adams7-16/+21
Uses a state variable in PlayerInfo instead. Moves isTalking from Being to PlayerInfo. Also some small cleanups. Reviewed-by: Chuck Miller
2010-08-01Reduce localChatTab presence replacing it with the event systemChuck Miller6-46/+39
Reviewed-By: Jared Adams
2010-07-30Fixed two more forgotten hard-coded references.Yohann Ferreira1-1/+3
2010-07-29Changed the items loading to handle a new 'attack-action' parameter.Yohann Ferreira1-2/+2
The old behaviour was to load the weapon-type value and do many unnecessary checks and transformation on it: The weapon-type was transformed using hard-coded values into an integer enum value. The exact same thing was done on the opposite side in the animation files before comparing the two. As both data were string values, I simplified all of it by using the value taken in items.xml to call the corresponding action. This now also permit to set up new attack animation in items.xml and in the playerset.xml without having the need to modify the client code. Last but not least, the weapon-type value was used by both the skills and the actions and avoided the possibility to set up a definite action for a weapon-type. Note: The weapon-type parameter will become deprecated for the server in favor of a 'skill' parameter to reflect more it's actual use. This patch is the first step to fix Manasource issue: #157.
2010-07-28Centralized configuration default values using the VariableData system.Yohann Ferreira33-120/+118
Please note that I didn't turned all the getValue() call into new ones, simply because I have to have config object initiated which is not forcefully the case the branding file. Resolves: Manasource Mantis #170.
2010-07-22Add two debug map modes and improve slightly map drawing.Andrei Karas1-1/+1
Reviewed-by: Bertram
2010-07-19Merge branch '1.0'Yohann Ferreira7-19/+56
Conflicts: src/gui/itempopup.cpp src/item.cpp src/monster.cpp src/net/manaserv/playerhandler.cpp src/net/tmwa/partyhandler.cpp src/npc.cpp src/player.cpp src/resources/itemdb.cpp src/resources/monsterdb.cpp src/resources/monsterinfo.cpp src/resources/npcdb.cpp src/resources/spritedef.cpp
2010-07-18Fix runtime crash from bad event keysChuck Miller1-8/+13
Reviewed-by: Jared Adams
2010-07-18Add event.h to eventmanager.h and listener.h to reduce total number of includesChuck Miller4-4/+0
You'll have to include it anyways 99% of the time
2010-07-18Move the majority of the netcode's server messages to the event systemChuck Miller2-1/+19
There is still a good way to go, but this should get us started Reviewed-by: Jared Adams
2010-07-18Add old values to stat and attribute eventsJared Adams1-0/+1
Reviewed-by: Chuck Miller
2010-07-18Fix crash when withdrawing something from storageChuck Miller1-0/+3
Reviewed-by: Jared Adams
2010-07-18Move more from LocalPlayer to PlayerInfoJared Adams5-14/+14
Also cleanup PlayerInfo a bit. Reviewed-by: Chuck Miller
2010-07-17Modify how attributes and stats are handledChuck Miller9-177/+208
Handling moved from LocalPlayer to PlayerInfo class Event system used to update windows Reviewed-by: Jared Adams
2010-07-16Fix memory corruption in chat on exit.Andrei Karas3-6/+24
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-07-11Made the different hard-coded paths and files be now taken from theYohann Ferreira4-11/+30
data/paths.xml configuration file. Also added default gui theme path in branding and default wallpaper path and file searched respectively in the branding and paths.xml files. Hard-coded values are still used as fallbacks. Resolves: Manasource Mantis #148. Reviewed-by: jaxad0127.
2010-07-10Moved parsing of specials.xml from gui/specialswindow.cpp to separate source ↵Philipp Sehmisch3-105/+94
files. Restored functional recharge bars in specials window. Individual specials are only shown after the server informed the client about their status. Made level label, use button and progress bars optional. Their use is controlled through specials.xml. The special window button is again shown even when the player has no specials. This problem needs to be solved differently now for architecture reasons. Reviewed-by: Jaxad0127
2010-07-08Fix whispers.Andrei Karas1-1/+1
Fix receiving whisper message if option whisper in tabs disabled. Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-06-29Make whisper responses from tmwAthena show up in correct tabsJared Adams4-19/+24
Reviewed-by: Bertram
2010-06-29Fixed sell support on tmwAthena while keeping it working for Manaserv.Yohann Ferreira1-2/+6
2010-06-29Fixed the sell support under Manaserv.Yohann Ferreira1-1/+2
Made the sell dialog give the idem id, instead of an internal inventory id when a item is a duplicate. Reviewed-by: Freeyorp, Strikermdd Resolves: Manasource-Mantis #101
2010-06-13Merge remote branch '1.0/1.0'Jared Adams10-23/+64
Conflicts: data/graphics/CMakeLists.txt data/graphics/Makefile.am src/client.cpp
2010-06-13Fix memory leaks in different windows.Andrei Karas3-0/+8
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-06-13Handle char-server login errors betterJared Adams1-0/+1
Also fix a small compilation error sometimes reported. Reviewed-by: Chuck Miller
2010-06-12Add error.xml to client repository and move error.pngJared Adams1-0/+2
There is no reason why error.xml shouldn't be in this repository, as it is used when no sprite data is present and is a very small file anyways. Servers can still replace these if they want to. error.png is only used in sprites, so should be in the new sprites folder too. Reviewed-by: 4144
2010-06-12Fix memory leak in socialwindow.cpp.Andrei Karas1-1/+17
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-06-10Merge BeingManager and FloorItemManager as ActorSpriteManagerJared Adams6-34/+44
No need for two different classes to manage ActorSprites. Reviewed-by: Chuck Miller
2010-06-09Fix dead Beings not being removed using tmwAthenaJared Adams1-2/+2
Rename mWalkTime to mActionTime in Being and have Being manage death. Reviewed-by: 4144
2010-06-06Fix memory leak in setup_playersAndrei Karas1-9/+7
Reviewed-by: Thorbjørn Lindeijer
2010-06-06Fix memory leak in statuswindowAndrei Karas1-0/+7
Reviewed-by: Thorbjørn Lindeijer
2010-06-05Fix memory leak in minimapAndrei Karas1-3/+1
Reviewed-by: Thorbjørn Lindeijer
2010-06-03Cleanup some logging statementsJared Adams1-7/+1
Reviewed-by: Thorbjørn Lindeijer
2010-06-03Ignore unknown server types in the server listJared Adams1-0/+9
Problem reported by Sokon. Reviewed-by: Ignoring server entry with unknown type:
2010-06-03Fix an unitialized variable problem in ThemeJared Adams1-0/+1
Reviewed-by: Thorbjørn Lindeijer
2010-06-01Made the MP bar be shown only if the protocol is using it.Yohann Ferreira2-14/+42
Reviewed-by: Jaxad0127.
2010-05-28Fix memory leak in last patch.Andrei Karas1-0/+1
Reviewed-by: Bertram
2010-05-27Fix drawing incorrect utf8 strings issue.Andrei Karas1-3/+8
Reviewed-by: Bertram Resolve: Manasource Mantis #143
2010-05-22Fix handling of tmwAthena registration disabled bitJared Adams1-1/+2
2010-05-21Remove some unneeded printfsJared Adams1-4/+0
2010-05-21Fix compilationJared Adams1-1/+2
2010-05-21Merge branch '1.0'Thorbjørn Lindeijer16-45/+171
Conflicts: src/beingmanager.cpp src/beingmanager.h src/client.cpp src/localplayer.cpp
2010-05-17Remove Monster, Player, and NPC classesJared Adams19-119/+83
Instead of having these three subclasses with minor differences, this commit merges them back into Being. In the future, we can make Beings that are talkable to some, attackable by others, etc. This also puts back support for monster equipment. Also changes remaining references to Being::Type and the constants to refer to ActorSprite::Type. Reviewed-by: Freeyorp
2010-05-13Draw item image in item popups.Andrei Karas4-11/+55
Now draw image only in chat item popup. Reviewed-by: Bertram
2010-05-06Add support for floor item spritesJared Adams2-5/+8
This commit adds a sprite hierarchy (Sprite->ImageSprite,AnimatedSprite,CompundSprite; CompoundSprite,Actor->ActorSprite;ActorSprite->Being,FloorItem) to collect common functionailty into new base classes which will make other Mantis tickets easier to do. Also allows monsters to use particle effects. Reviewed-by: Bertram
2010-05-06Fix reading arrays at index -1.Andrei Karas2-3/+12
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-05-06Fixed some copy/pasted documentationThorbjørn Lindeijer1-3/+3
2010-05-05Fix showing the type of the default serverJared Adams1-0/+2
Reviewed-by: Thorbjørn Lindeijer