summaryrefslogtreecommitdiff
path: root/src/gui
AgeCommit message (Collapse)AuthorFilesLines
2011-03-17Now the client centers the pixel positions when using tA.Yohann Ferreira1-6/+33
I made it so that the behaviour can be changed with only a boolean setting in the playerhandler.
2011-03-15Basically merged the two movement algorithms into one.Yohann Ferreira1-84/+35
This was made in favour of the manaserv way of doing things. I also added a way to keep the original server speed value so the pixel value can be recomputed at each map change, as this was necessary since the speed is given before the first map is loaded. The code is much more simpler now about movement handling, and we can already see improvements on other characters movements in The Mana World with this. Everything can't be perfect the first time; here are bugs identified so far: - Monsters direction isn't updated on TmwAthena for obscure reasons. - Remote players walking animation is sometimes reset on each steps. - When changing map, the local player sometimes walks randomly until the player reacts. Stay tuned!
2011-03-08Added a tab scrolling system in tabarea.Yohann Ferreira2-1/+189
Currently working on the chat window. Resolves: Mana-Mantis #308. Reviewed-by: Thorbjorn.
2011-02-21Merge branch '0.5'Thorbjørn Lindeijer1-5/+5
Translation file updates ignored. Conflicts: src/client.cpp src/commandhandler.cpp src/gui/popupmenu.cpp src/localplayer.cpp
2011-02-19Reorder store option to the top, so it is more useful.Ben Longbons1-5/+5
2011-01-25Added a child class to the equipment window specialized for tAthena.Yohann Ferreira2-71/+105
(As requested by Thorbjorn.) Now the foundation to set up per-protocol equipment display is ready.
2011-01-24Refactored the item loading in a more extensible and per protocol way.Yohann Ferreira4-85/+102
This will greatly help into upgrading the need of each protocol separately. This is the first step to a new item and equipment system for manaserv. A subclassing of the EquipmentWindow will be done in the next commit, as requested by Thorbjorn. Reviewed-by: Thorbjorn.
2011-01-13Fix a segfault when attempting to buy free items.Yohann Ferreira1-5/+15
Resolves: Mana-mantis #277 Trivial fix.
2011-01-13Fix a segfault when attempting to buy free items.Yohann Ferreira1-5/+15
Resolves: Mana-mantis #277 Trivial fix.
2011-01-03Merge branch '0.5'Thorbjørn Lindeijer1-3/+3
Conflicts: po/es.po po/fr.po src/net/tmwa/adminhandler.cpp update-creator.sh
2011-01-02Fixing compiler warningsStefan Dombrowski1-2/+2
The compiler gave two times the warning: comparison between signed and unsigned integer expressions. Reviewed-by: thorbjorn
2010-12-29Made the client handle the characters slots properly for Manaserv.Yohann Ferreira2-4/+17
Reviewed-by: Crush.
2010-12-28Revert "Remove the AFK response system"Yohann Ferreira1-0/+1
This reverts commit 3d6a2d9c80a969c3613f567dd7029e75ef59b5cb. I've by that readded the AFK system on master. Please, remove it when we've got a proper replacement.
2010-12-26Fix crash with corrupted links in chat.Andrei Karas1-2/+2
Reviewed-by: Kage
2010-12-16Made the client handle the number of slots given by the server.Yohann Ferreira2-11/+22
I turned the CharacterEntries into a vector. As for now, it's basically working but I discovered bugs about slots handling mainly for Manaserv that were already present before that patch. Hence, there are three remaining issues: - Under ManaServ, the character's slots numbers aren't handled when loading the characters but used when sending selection or deletion attempts. For instance, if you delete the character at slot 1, you won't be able to select or delete characters at slots 2 and 3, since the server believes that the characters are now in slots 1 and 2, even thought the client still displays them at the former slots. - Also under manaserv, you won't be able to create a character at slot 1 and 3, the server will automatically add the new one to the next slot, which is not corresponding to where you clicked to the 'Create' button. I propose to make Manaserv send again the character slots numbers and store them in database since we used them in creation, selection, and deletion attempts. It would make more sense IMHO. - The last remaining issue found is that when switching between different servers, the loginData don't get cleaned up, make the characterSelect dialog look crazy when the number of slots is different between two servers. If this one is accepted, my next patch will make the logindata be cleaned up between each login attempts (as for the slot number, and maybe other sensible data) and the next ones will readd character slot handling server and client side. Reviewed-by: Jaxad0127.
2010-12-15Merge branch '0.5'Thorbjørn Lindeijer2-0/+7
2010-12-15Small hacking cleanups.Yohann Ferreira2-7/+14
In preparation for resolution of mana-issue: #211. Trivial.
2010-12-06Removed superfluous #includes taken from checkheaders list.Yohann Ferreira13-24/+0
Resolves: Mana-Mantis #265. Trivial fix.
2010-11-29Allow enter OK button key in input field.Andrei Karas2-0/+7
By default OK shortcut is space key. Reviewed-by: Jaxad0127, Kage
2010-11-13Replace config listeners with the event systemChuck Miller5-31/+33
Reviewed-by: Jared Adams
2010-11-12Change NPC handling in the net codeChuck Miller2-25/+16
Instead of using events to invoke netcode, invoke netcode directly and have it send events Reviewed-by: Freeyorp
2010-11-11Replace Event names with enums instead of stringsChuck Miller12-49/+49
2010-11-11Have the event system channels use enums instead of stringsChuck Miller14-41/+41
Reviewed-by: Freeyorp
2010-11-07Convert the emote system to use particlesChuck Miller5-11/+9
Reviewed-by: Jared Adams
2010-11-02Re-Enable the support of manaserv servers.Yohann Ferreira2-54/+0
Reviewed-by: CodyMartin.
2010-11-02Adding double-click to server dialog and world select dialogStefan Dombrowski4-0/+24
This resolves http://bugs.manasource.org/view.php?id=259 Reviewed-by: Thorbjorn
2010-11-01Merge branch '0.5' of gitorious.org:mana/manaYohann Ferreira18-298/+317
Conflicts: src/being.cpp src/client.cpp src/commandhandler.cpp src/gui/setup_video.cpp src/gui/socialwindow.cpp src/gui/viewport.cpp src/gui/widgets/browserbox.cpp src/gui/widgets/itemcontainer.cpp src/imageparticle.cpp src/localplayer.cpp src/localplayer.h src/map.cpp src/net/tmwa/beinghandler.cpp src/particle.cpp src/particle.h src/player.cpp src/player.h
2010-10-22Changed 'Low CPU' options and related gui widgets name to 'Disable ↵Yohann Ferreira2-30/+34
transparency'. That name is more explicit about what it actually does. Reviewed-by: CodyMartin.
2010-10-22Turned the OpenGL and disable transparency options as static members.Yohann Ferreira1-2/+2
- Now OpenGL and the transparency disabling are set at startup and not read again for displaying graphics, preventing graphic errors before startup. - We also agreed long time ago that SDL specific functions should have a SDL prefix. The header has been rearranged a bit to do so. - Also fixed a possible discrepancy in the hasAlphaChannel() function. Reviewed-by: CodyMartin. Resolves: Mana-Mantis: #260.
2010-10-19Heavy GUI fixes related to stats for Manaserv.Yohann Ferreira1-19/+30
Also tested to be compatible with tA. Now the Status window is much more nicer when using Manaserv. HP, max hp, ... are now working fine along with corrections made in the attributes.xml file (in next commit.) Reviewed-by: Thorbjorn.
2010-10-19Fix crash in drawing incorrect strings.Andrei Karas1-11/+11
Reviewed-by: cody
2010-10-18Fixing saving of lowcpu value in configStefan Dombrowski1-7/+3
Trivial fix.
2010-10-17Making the setup for lowcpu robustStefan Dombrowski1-4/+15
Reviewed-by: Bertram, Thorbjorn
2010-10-17Added Low CPU Mode toggle in video setup. Defaults to On.madcamel@gmail.com2-3/+55
This disables the Image::setAlpha() function, which uses 60% of the client's CPU cycles. When enabled, visual quality is slightly decreased, especially with the particle system. Toggling this setting On from an Off state requires a client restart or the graphics look quite funny. Bertram's addition: - Renamed 'Low CPU' to 'Disable transparency (Low CPU)' in the gui for better understanding. - Removed the sprite display with 30% opacity when disabling transparency since it made monsters and drops be drawn above all layers at full opacity. - Made the OpenGL mode disable the 'low CPU mode'. - Fixed the GUI logic as much as possible. Please note that the GUI opacity slider stays enabled when transparency is disabled even if told to be disabled in that case. Reviewed-by: CodyMartin, 4144, MadCamel.
2010-10-17Add new three colors.Andrei Karas2-1/+14
Add colors: Local Player Hits Monster Local Player Critical Hit Local Player Miss Reviewed-by: cody
2010-10-16Return to color config options prefix Color.Andrei Karas1-15/+15
Reviewed-by: cody
2010-10-16Implement opacity cache for SDL surfaces.Andrei Karas1-0/+3
Enabled by default. Can be disabled in configuration option "alphaCache" if set it to 0. Reviewed-by: Bertram
2010-10-13Adding theme colors for party tabsStefan Dombrowski3-1/+5
Following Rotonen's advise to "make anything and everything you can think of recolorable", a theme can now define colors for PARTY_CHAT_TAB and PARTY_SOCIAL_TAB. This was badly needed, because the requirements for a color of a chat tab and of a player name are quite different. TODO: When guild support gets enabled, then have a look at the colors for guilds. Reviewed-by: 4144
2010-10-13Hiding Manaserv from the player on TMW-Athena only releaseStefan Dombrowski2-0/+54
With the preprocessor definition MANASERV_SUPPORT the manaserv support is avaible as before. * Removing server type from server dialog GUI. * Ignoring Manaserv entries in serverlist.xml. * In order not to lose Manaserv CustomServers from the config.xml, they get stored in mManaservServers. * The entries in mManaservServers are saved in config.xml again. But they are now behind the TMWA-Athena servers. * For custom server the GUI sets 6901 as default value for port. * If the server type is unknown, then we use TMW-Athena. This is relevant, if the client is started with command line options for server. Reviewed-by: Bertram
2010-10-12Little setup tweaksStefan Dombrowski2-4/+4
* Shortening option names that got cropped in video setup * Moving options to the left hand side in player setup, because they looked like they belong to the "when ignoring" part. Reviewed-by: Bertram
2010-10-10Adding Okdialog if registration is disabledStefan Dombrowski1-6/+11
Reviewed-by: Jaxad0127
2010-10-08Remove the following systemStefan Dombrowski2-10/+0
Removed due to unresolved social issues. In master it had been already removed by Kage in commit 89f192b9039f9c000515f0a12f4bb9fb55c4691c.
2010-10-06Fixing movement with the mouseStefan Dombrowski1-4/+2
When a player clicked on a tile in order to go to it, then he went to the wrong tile. Trivial fix.
2010-10-05Fixing segmentation fault in social windowStefan Dombrowski1-2/+2
How to reproduce the bug: * Press button Leave in social window. * In the confirm dialog press No. * Then switching character makes the client crash. Trivial fix.
2010-10-04Remove the AFK response systemChuck Miller1-1/+0
This would be if it was handled by a addon later. Reviewed-By: Freeyorp < Freeyorp101@hotmail.com >
2010-10-04Remove the following systemChuck Miller2-10/+0
The implamentation is poor, and this is something that would be better handled by the addon engine later down the road. Reviewed-By: Freeyorp < Freeyorp101@hotmail.com >
2010-10-03Fixing segmentation fault and updating the cursor type after mouse pressStefan Dombrowski2-0/+18
Until now the being was only set after a mouse move. If the mouse was pressed after the being was out of sight or dead, then a segmentation fault happened. Furthermore, pressing the mouse now updates the cursor type and sets the being popup invisible. Reviewed-by: Thorbjorn
2010-10-02Avoiding the creation of a party or guild without a nameStefan Dombrowski1-10/+12
If no name is given, then the player obviously didn't want to create it. Now the empty input is handled just the same way as in the invite dialog. Trivial fix.
2010-10-01Fix possible invisible chat.Andrei Karas1-5/+2
Reviewed-by: Thorbjorn
2010-09-30Setting alpha for items in ItemShortcutContainerStefan Dombrowski1-0/+1
Reviewed-by: Thorbjorn