summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
AgeCommit message (Collapse)AuthorFilesLines
2009-03-25Merge branch 'eathena/master'Bjørn Lindeijer1-34/+51
Conflicts: A lot of files.
2009-03-23Merge branch 'aethyra/master'Bjørn Lindeijer1-9/+15
Conflicts: Many files.
2009-03-23Move all TMWServ-specific code to net/tmwservJared Adams1-2/+2
Also fix several instances where the same net handler was being used for both servers, and a few other related oddities.
2009-03-23Merge eA's command handling into CommandHandlerJared Adams1-443/+58
Also drop Aethyra's custom magic code
2009-03-22Move handling of eA skill messages to SkillHandlerJared Adams1-95/+3
2009-03-22Fix chat under eAthenaJared Adams1-63/+56
2009-03-22Merged the tmwserv client with the eAthena clientBjørn Lindeijer1-25/+265
This merge involved major changes on both sides, and as such took several weeks. Lots of things are expected to be broken now, however, we now have a single code base to improve and extend, which can be compiled to support either eAthena or tmwserv. In the coming months, the plan is to work towards a client that supports both eAthena and tmwserv, without needing to be recompiled. Conflicts: Everywhere!
2009-03-15Overrode the reset window function in the chat window to also reset theIra Rice1-0/+6
position of the recorder, as well as fixed resetting the help window, and exposing the buy/sell window to being resettable, as well as remembering its previous position. All windows should now be covered by the reset button on the setup pane. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-15Fix some mem leaksJared Adams1-0/+2
2009-03-10Fix some mem leaksJared Adams1-2/+0
2009-03-10Fix some mem leaksJared Adams1-0/+2
2009-03-10Fix some mem leaksJared Adams1-0/+2
2009-03-10Extended window layout to take relative positions, as well as offsets toIra Rice1-1/+1
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-10Fix typo in item link parsingJared Adams1-13/+18
2009-03-10Expand the scope where item links workKess Vargavind1-31/+31
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 Adams1-8/+8
2009-03-10Fix typo in item link parsingJared Adams1-13/+18
2009-03-10Remove some tabs and trailing whitespaceJared Adams1-8/+8
2009-03-10Expand the scope where item links workKess Vargavind1-31/+31
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-02-28Allow chatting while talking to NPCsJared Adams1-1/+6
2009-02-18Introduced a toLower method and grouped string utilsBjørn Lindeijer1-18/+5
The string utility methods are now grouped together in the stringutils.h header. Also, a toLower method was added for convenience.
2009-02-18Introduced a toLower method and grouped string utilsBjørn Lindeijer1-18/+5
The string utility methods are now grouped together in the stringutils.h header. Also, a toLower method was added for convenience.
2009-02-17Merge branch 'aethyra/master'Bjørn Lindeijer1-1/+21
Conflicts: src/gui/npc_text.cpp src/gui/npc_text.h src/gui/npcintegerdialog.cpp src/gui/npclistdialog.cpp src/gui/npcstringdialog.cpp src/net/npchandler.cpp src/npc.cpp
2009-02-16Moved location of trim checking, since it really should be done afterIra Rice1-6/+3
the recipient nickname is parsed out. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-16Trim whitespace from the beginning and end of whispers, as well asIra Rice1-0/+21
disallowing empty whispers and whispers to yourself, since both of those cases cause the server to report back stating that the player wasn't found (even if they are there, like yourself). Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-16Fixed a nasty crash that was only visible from the @help command. If theIra Rice1-1/+3
line's string was empty after trimming, the client would crash when trying to get a substring. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-15Don't make window name translatableBjørn Lindeijer1-1/+1
The window name is used in the configuration file, in contrast to the window title.
2009-02-15Removed unnecessary parenthesis at constructorsBjørn Lindeijer1-1/+1
When not passing any parameters to constructors, there is no reason for using parenthesis.
2009-02-15Add configurable units systemJared Adams1-1/+1
2009-02-12Describe the /me command in chat helpKess Vargavind1-13/+23
Also a few whitespace and spelling fixes.
2009-02-12Describe the /me command in chat helpKess Vargavind1-13/+23
Also a few whitespace and spelling fixes.
2009-02-11Implemented /meMadCamel1-0/+16
2009-02-11Fixed crash when sending a blank item linkMadCamel1-1/+1
2009-02-11Implemented /meMadCamel1-0/+16
2009-02-11Fixed crash when sending a blank item linkMadCamel1-1/+1
2009-02-10Use string::empty() instead of comparing to ""Bjørn Lindeijer1-9/+9
2009-02-10Fixed header files, as well as removed the unused buddy list class (notIra Rice1-2/+3
useful since buddy lists are tracked through the player relation interface instead) Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-10Use string::empty() instead of comparing to ""Bjørn Lindeijer1-9/+9
2009-02-09Mostly whitespace fixesBjørn Lindeijer1-17/+17
Removed tab characters and trailing spaces and added spaces between "if(", "for(", "while(" and "switch(".
2009-02-09Merged with Aethyra master as of 2009-02-09Bjørn Lindeijer1-49/+43
Conflicts: A lot of files...
2009-02-09Mostly whitespace fixesBjørn Lindeijer1-18/+18
Removed tab characters and trailing spaces and added spaces between "if(", "for(", "while(" and "switch(".
2009-02-09Merged with Aethyra master as of 2009-01-27Bjørn Lindeijer1-95/+438
Conflicts: Almost everywhere.
2009-02-07Added a text color preview to the setup color tab.Ira Rice1-2/+0
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-06Fixed the help function so that the help commands on help commands wouldIra Rice1-1/+0
work. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-06Sanitized item links so that at no point is the internal representationIra Rice1-2/+2
of the item link shown. This should help make it easier for people to represent the square brackets with item links, and prevent people from forging item links when they never see the internal representation of an item link. Should also reduce confusion from people who haven't upgraded their clients as well, as they wonder what all the junk is around the item name. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04Few more unneeded headers that weren't noticed originally in the lastIra Rice1-2/+0
commit. Also, while the overall performance improved a little, it doesn't appear to be as drastic as the last commit was suggesting. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-04Went through the gui folder and revised the include statements to notIra Rice1-25/+18
include anything not needed by that specific widget or window. This appears to have cleaned up system performance a bit on my current setup, where it went from idling on 45% in game with opengl down to 30% now. Also moved iptostring to the tostring header, as importing all of network.h is a little overkill to use that function, and it goes along with the basic functions that are in that header file anyways. TODO: find out a way to get rid of warnings when a class doesn't use this function. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-29Trimmed out a few help functions from some subclasses, and moved themIra Rice1-4/+9
back to the chat class, where they really belong. Since the party class parses its own suboptions, I left the suboptions within that class. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-29Don't send empty chats (long lines of empty spaces).Ira Rice1-0/+5
Signed-off-by: Ira Rice <irarice@gmail.com>