summaryrefslogtreecommitdiff
path: root/src/client.cpp
AgeCommit message (Collapse)AuthorFilesLines
2010-08-03Move Theme and UserPalette to the resources folderJared Adams1-2/+2
Reviewed-by: Yohann Ferreira
2010-08-03Merge remote branch 'origin/1.0'Jared Adams1-2/+2
Conflicts: src/net/tmwa/chathandler.cpp
2010-07-28Centralized configuration default values using the VariableData system.Yohann Ferreira1-27/+23
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-19Merge branch '1.0'Yohann Ferreira1-0/+4
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-18Add event.h to eventmanager.h and listener.h to reduce total number of includesChuck Miller1-1/+0
You'll have to include it anyways 99% of the time
2010-07-18Replace some state-related netcode methods with eventsJared Adams1-4/+0
Also move the virtual destructors of the Net handler base classes to the top of their method lists. Reviewed-by: Chuck Miller
2010-07-18Move more from LocalPlayer to PlayerInfoJared Adams1-0/+12
Also cleanup PlayerInfo a bit. Reviewed-by: Chuck Miller
2010-07-17Fixed config directory, updated project file.David Athay1-2/+2
2010-07-11Made the different hard-coded paths and files be now taken from theYohann Ferreira1-0/+4
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 Sehmisch1-0/+2
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-06-13Merge remote branch '1.0/1.0'Jared Adams1-13/+13
Conflicts: data/graphics/CMakeLists.txt data/graphics/Makefile.am src/client.cpp
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-10Fix a bug with empty update hostsJared Adams1-0/+4
2010-06-03Unload loaded DBs before loading them againJared Adams1-8/+8
This greatly simplifies handling DBs when changing states. No more need to manage unloading in Client (except when exiting). Reviewed-by: Thorbjørn Lindeijer
2010-05-21Merge branch '1.0'Thorbjørn Lindeijer1-6/+4
Conflicts: src/beingmanager.cpp src/beingmanager.h src/client.cpp src/localplayer.cpp
2010-05-21Avoid a crash when the updateHost is set to nothing in the config file.Yohann Ferreira1-2/+2
Reviewed-by: Jaxad0127
2010-05-09Move target cursor management into ActorSpriteJared Adams1-8/+15
This simplifies handling of target cursors, centralizing their logic into a single class, instead of two. Also make them more flexible and move the image files outside of the theme so servers can can control them and give them better names. Reviewed-by: Thorbjørn Lindeijer
2010-05-06Remove hardcoded standard server urlsseeseekey1-5/+3
Signed-off-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
2010-05-05Fix showing the type of the default serverJared Adams1-1/+1
Reviewed-by: Thorbjørn Lindeijer
2010-05-01Add chat logging.Andrei Karas1-0/+11
Add option in players setup page. Add command line option. Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-04-25Fix resource errors when chaning serversJared Adams1-8/+8
Reviewed-by: Freeyorp
2010-04-19Add afk mode for player.Andrei Karas1-0/+1
Add variable cur_time for current time. Add command /away [text] Reviewed by: Bertram
2010-04-17Changed an EATHENA remaining reference to TMWATHENA.Bertram1-1/+1
Latest two patches reviewed by Jaxad0127.
2010-04-16Fix canceling game connectionJared Adams1-4/+5
Reviewed-by: Bertram
2010-04-12Fix canceling game connect leaving no characters to selectJared Adams1-1/+1
2010-04-12Add support for map-server switching under eAthenaJared Adams1-2/+13
Also do some cleanup that's been needed for a while. Reviewed-by: Bertram
2010-03-18Copy old tmw config if foundBernd Wachter1-0/+26
Reviewed-by: Thorbjørn Lindeijer
2010-03-17Allow branding to bypass server listJared Adams1-2/+5
Reviewed-by: Bernd Wachter
2010-03-15Fix some branding issuesJared Adams1-0/+2
Reviewed-by: Chuck Miller
2010-03-13Fix icon under non-Windows systemsJared Adams1-1/+1
Reviewed-by: Chuck Miller
2010-03-12Split Palette into Theme and UserPaletteJared Adams1-4/+4
Themes can now control the colors they use. Colors in the Viewport (being names, particles, etc) can still be changed by the user. Also make ProgressBars more easily colored. DyePalette was made more flexible in the process. Also fixes comparing strings of different lengths insensitively. Reviewed-by: Thorbjørn Lindeijer
2010-03-05Rename SkinLoader to ThemeJared Adams1-6/+6
Also merge the guialpha ConfigListener into Theme. Reviewed-by: Thorbjørn Lindeijer
2010-03-01Check and create screenshot directory only when a screenshot is madeBernd Wachter1-12/+0
2010-02-28Fix loading branding dataJared Adams1-3/+1
Reviewed-by: Chuck Miller
2010-02-28Some code cleanup regarding the server dialogThorbjørn Lindeijer1-8/+2
Reviewed-by: Jared Adams
2010-02-28Make the gui more themeable and distribute two themesJared Adams1-9/+34
The older gray theme and the new wood theme are available as themes. The gray theme needs some new graphics for hilights. Add a theme option for branding and add path/to/branding/data to the PhysFS search path. Reviewed-by: Thorbjørn Lindeijer Reviewed-by: Chuck Miller
2010-02-28Avoid sending log output to the console on startupThorbjørn Lindeijer1-4/+2
By initializing the configuration before starting to log, so that we can take into account the logToStandardOut setting. Reviewed-by: Jared Adams
2010-02-27Fix program exit on windows.Andrei Karas1-0/+1
Signed-off-by: Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
2010-02-27Some cleanup and compile fixJared Adams1-9/+9
Reviewed-by: Thorbjørn Lindeijer
2010-02-27Corrected some variables names after recent renamingThorbjørn Lindeijer1-19/+19
With help from Jared. Reviewed-by: Jared Adams
2010-02-27Forgot to amend the last change with thisThorbjørn Lindeijer1-1/+1
2010-02-27Added m prefix to Client's member variablesThorbjørn Lindeijer1-158/+158
Reviewed-by: Jared Adams
2010-02-26Fix configuration saving on exit.Andrei Karas1-2/+3
Some settings are set after the old position. Signed-off-by: Jared Adams <jaxad0127@gmail.com>
2010-02-26Use MYPICTURES on windows, add config parameter for screenshot directoryBernd Wachter1-9/+47
Under Windows try to place the screenshots in the `My Pictures' directory, and use Desktop as a fallback. On all platforms, add a Suffix to the screenshot directory path to avoid cluttering the Desktop/... Usage of suffix/suffix content/path are configurable. Create the screenshot directory if it does not exist, and fall back to saving screenshots in the users home directory if it could not be created. Reviewed-by: Jared Adams
2010-02-25Add support for platform specifig config/data directories #84Bernd Wachter1-19/+47
Reviewed-by: Jared Adams
2010-02-25Use recursive mkdir for config directories, fix log initializationBernd Wachter1-9/+5
Logger now logs to stdout by default, and allows logging without having a log file open. This allows using logger for error logging in early startup functions. Reviewed-by: Jared Adams
2010-02-24Added the possibility to pass a branding file by command line. Reviewed-by: ↵Philipp Sehmisch1-1/+4
Thorbjørn Lindeijer <thorbjorn@lindeijer.nl>
2010-02-23Fixed compile on WindowsThorbjørn Lindeijer1-1/+1
Reviewed-by: Bernd Wachter
2010-02-21Made tick counter and framerate limiter work during login sequenceThorbjørn Lindeijer1-0/+1152
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: ...