summaryrefslogtreecommitdiff
path: root/src/gui/viewport.cpp
AgeCommit message (Collapse)AuthorFilesLines
2010-08-16Move more to the event systemJared Adams1-11/+12
Most of Net::InventoryHandler is now done through events. The ActorSpriteManager was also replaced by events. A few odds and ends were taken care of too. Reviewed-by: Bertram
2010-08-02Fix some bugsJared Adams1-2/+4
Trivial fixes.
2010-08-02Remove non-GUI references to MiniStatusWindowJared Adams1-3/+7
Reviewed-by: Freeyorp
2010-08-01Remove isActive methods from buy/sell windowsJared Adams1-1/+2
Uses a state variable in PlayerInfo instead. Moves isTalking from Being to PlayerInfo. Also some small cleanups. Reviewed-by: Chuck Miller
2010-07-28Centralized configuration default values using the VariableData system.Yohann Ferreira1-6/+6
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-06-10Merge BeingManager and FloorItemManager as ActorSpriteManagerJared Adams1-13/+19
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-05-17Remove Monster, Player, and NPC classesJared Adams1-32/+12
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-04-17Changed eAthena protocol name to TmwAthena and changed the config files ↵Bertram1-2/+2
accordingly. This makes room for the actual eAthena protocol future inclusion.
2010-04-12Added the player collision rectangle and tweaked colorsBertram1-2/+9
2010-04-12Added a more trusty path debug view for ManaServ.Bertram1-14/+56
2010-03-27Fix crash with showing BeingPopupJared Adams1-1/+1
Reviewed-by: Freeyorp
2010-03-26Replace most dynamic_casts with static_castsJared Adams1-2/+3
The remaining instances can't easily or safely be changed as the classes involved don't have type information like Being does. Reviewed-by: Freeyorp
2010-03-20Initialize missed variables in vieportAndrei Karas1-1/+3
2010-03-12Fix some issues with Being deletionJared Adams1-0/+6
Clear the Viewport's hover being when it gets removed and make sure LocalPlayer's target pointer get's cleared. Reviewed-by: Freeyorp
2010-03-02Forgot a method callJared Adams1-4/+0
2010-03-02Remove some unused membersJared Adams1-15/+5
Reviewed-by: Chuck Miller
2010-03-02Revert "Merge WindowContainer into Viewport and remove extra members"Jared Adams1-30/+26
This reverts commit 67e678094b9fddd21fb3c690130e772937ab2746. Conflicts: src/gui/gui.cpp src/gui/viewport.cpp
2010-03-02Revert "Fix using custom cursors"Jared Adams1-5/+2
This reverts commit d194ea8220658b6ef84522f01fa3cf0d0200545e.
2010-03-01Fix using custom cursorsJared Adams1-2/+5
2010-03-01Simplify BeignPopup and therefore ViewportJared Adams1-7/+3
2010-03-01Merge WindowContainer into Viewport and remove extra membersJared Adams1-29/+39
Reviewed-by: Chuck Miller
2010-03-01Hide BeingPopup when mouseover WindowsJared Adams1-0/+4
Reviewed-by: Thorbjørn Lindeijer Reviewed-by: Chuck Miller
2010-02-28Add some new mousers and simplify related codeidiomatic1-25/+46
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-02-24Move StorageWindow to instancing intead of globalJared Adams1-2/+3
Also make storage under eAthena more flexible. Reviewed-by: Dennis Friis
2010-02-23Add BeingPopup hiding.Andrei Karas1-2/+2
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-02-22Cleanup some popup-related code and make sure BeingPopup is includedJared Adams1-1/+4
2010-02-21Handle packet 0x0195, and shows player's party name in a popupChuck Miller1-3/+6
2010-02-21Made tick counter and framerate limiter work during login sequenceThorbjørn Lindeijer1-1/+1
Much code was moved from main() to the new Client::exec(). This new event loop now integrates with the Game class, so that the tick counter and framerate limiter apply universally. The Client class is also responsible for some things that used to be global variables. Mantis-issue: ...
2010-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-4/+3
2010-02-14Fixed Viewport from acknowledging clicks from widgets on top of it whenTametomo1-0/+3
they happened within a contained widget. Signed-off-by: Tametomo <irarice@gmail.com>
2010-02-13Make NPC dialogs instance instead of globalJared Adams1-1/+1
This change allows players to talk to multiple NPCs at a time (if the server agrees). Manaserv's netcode allows multiple commerce instances too. eAthena's is limited to one commerce instance, due to protocol limitations.
2010-02-07Updated Copyright year to 2010!Bertram1-1/+1
Also added the update copyright tool from the Wormux Team. ( And not forgetting credit's due. :P )
2010-02-01Small cleanups.Bertram1-3/+3
2010-01-31Unify eAthena and manaserv support in to one build.Daniel Bradshaw1-3/+8
Finish support for server types in the server dialog. Using the new server type function, strip out ifdefs, replacing them with if blocks for later merging in smaller atomic commits. Remove any remaining references to the support defs, including in build system.
2010-01-27Added mutators/accessors to being.h and smal cleanups.Bertram1-4/+4
2010-01-26Removed a non-hurting ifdef...Bertram1-2/+2
2010-01-25Finished Freeyorp's ViewPort bug fixing commit:Bertram1-5/+5
http://gitorious.org/mana/mana/commit/58149dca937410826971f99b72e304121e61abb7 by merging ViewPort::mLocalWalkTime and ::mLocalWalktime into the first one, removing ifdefs, and making sure the setDestination() calls aren't done each ticks by setting the mLocalWalkTime equal to player->mWalkTime while Mouse Left Dragging, I also set it back to -1 when stop walking to avoid the bug where you have to start walking using the keyboard before being able to walk dragging the mouse under eAthena.
2010-01-18Unified BeingManager::findNearestLivingBeing for eAthena and manaservThorbjørn Lindeijer1-11/+10
It now always works with pixels.
2010-01-13Adds a follow manager for usersBlueSansDouze1-0/+1
Right click contextual menu on player "follow" entry Cancel the following by moving with mouse or keys Adds a special behavior for map changes
2010-01-11Cleanup GUI classesJared Adams1-4/+4
Moved remaining widgets into widgets folder, standardized include order, moved TextRenderer out.
2010-01-10Change code styleAndrei Karas1-4/+5
2010-01-09Add special map mode.Andrei Karas1-2/+20
This mode hide big map objects and show collisions.
2009-12-19Allow the player to move using the mouse at startupFreeyorp1-1/+1
Previously, the player had to move using the keyboard before movement with the mouse was possible
2009-10-29Cleaned up the viewport code, when dealing with mouse movement.Bertram1-52/+45
Now, both eAthena and ManaServ clients follow the mouse correctly when it is dragged.
2009-10-29Second round of fine tuning for keyboard movement.Bertram1-1/+12
I just discovered that the X,Y offsets aren't handled the same way between eAthena and Manaserv to draw the player's character. So, this patch hopefully fix the walk on water bug. There are some glitches left: - Like walking diagonally to a blocked corner. - Or Some times the character miss a blocked tile and correct its route. - The character's name is drawn in the wrong place for Manaserv client. - The playerBox draws the player at the wrong location; He's not centered at login and isn't diplayed at all in equipment window... But anyway, it's better than before. I'll go on for some polishing before continuing. Some cleanups are becoming vital for code's understanding.
2009-10-24REplace instances of TMW with ManaJared Adams1-3/+3
2009-10-16Made the keyboard walking pixel exact again.Bertram1-0/+1
What's left is working on player corner handling and directions while walking.