summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
AgeCommit message (Collapse)AuthorFilesLines
2012-07-22Replaced font with DejaVu Serif CondensedThorbjørn Lindeijer1-2/+2
Looks nicer in the game in my opinion.
2012-07-12Implemented scaling in OpenGL modeThorbjørn Lindeijer1-0/+3
The screen will be scaled up as much as possible, while keeping a minimum 'virtual' resolution of 640x360.
2012-02-18Added notification sound on receiving whisperThorbjørn Lindeijer1-1/+2
One of the sound channels is reserved for notification sounds, of which the volume can be configured separately. Currently, the only notification sound that is played is for receiving whispers. That can be extended later. The newmessage.ogg sound used currently is the one for receiving a message with the Psi instant messenger. Parts of this patch are based on the new message notification in ManaPlus. Reviewed-by: Erik Schilling
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2012-01-22Allow resizing of the game in windowed modeThorbjørn Lindeijer1-2/+12
Window positions are semi-smartly corrected as a result of the resize. Not supported when using OpenGL on Windows for now. Reviewed-by: Yohann Ferreira
2011-05-13Made the setup keyboard tab prettier.Angelo Castellani1-0/+17
Incidentally I added support for a monospaced font (which may come in handy).
2011-04-09Renamed Listener to EventListenerThorbjørn Lindeijer1-2/+2
Makes it clear what kind of listener it is, since there are other listener classes as well. Acked-by: Jared Adams
2011-04-09Removed the Mana namespaceThorbjørn Lindeijer1-5/+5
It's just an annoyance when it's only applied to a few classes. Either we place everything in this namespace or nothing, and at the moment I don't see any rationale for placing everything in a Mana namespace. Acked-by: Jared Adams
2011-04-09Moved Channels to Mana::Event::ChannelThorbjørn Lindeijer1-3/+3
Acked-by: Jared Adams
2011-04-09Moved Events to Mana::Event::TypeThorbjørn Lindeijer1-1/+1
Acked-by: Jared Adams
2010-11-13Replace config listeners with the event systemChuck Miller1-8/+11
Reviewed-by: Jared Adams
2010-11-01Merge branch '0.5' of gitorious.org:mana/manaYohann Ferreira1-0/+3
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-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-08-03Move Theme and UserPalette to the resources folderJared Adams1-1/+1
Reviewed-by: Yohann Ferreira
2010-07-28Centralized configuration default values using the VariableData system.Yohann Ferreira1-3/+3
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-11Made the different hard-coded paths and files be now taken from theYohann Ferreira1-0/+1
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-03-12Split Palette into Theme and UserPaletteJared Adams1-1/+1
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-4/+3
Also merge the guialpha ConfigListener into Theme. Reviewed-by: Thorbjørn Lindeijer
2010-03-02Revert "Merge WindowContainer into Viewport and remove extra members"Jared Adams1-9/+10
This reverts commit 67e678094b9fddd21fb3c690130e772937ab2746. Conflicts: src/gui/gui.cpp src/gui/viewport.cpp
2010-03-01Simplify BeignPopup and therefore ViewportJared Adams1-8/+8
2010-03-01Merge WindowContainer into Viewport and remove extra membersJared Adams1-3/+2
Reviewed-by: Chuck Miller
2010-02-28Make the gui more themeable and distribute two themesJared Adams1-3/+2
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-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-4/+3
2010-02-14Don't create the viewport until it's really needed.Tametomo1-8/+0
Signed-off-by: Tametomo <irarice@gmail.com>
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 )
2009-04-15Made the PopupMenu a Popup subclassBjørn Lindeijer1-0/+2
It's a natural better fit. The SkinLoader was changed into a singleton, since it's used by both Window and Popup classes.
2009-04-15Also hardcode the bold font, we ship it after allBjørn Lindeijer1-16/+10
Plus some tweaks and cleanups.
2009-04-07Moved basic widgets into the gui/widgets directoryBjørn Lindeijer1-21/+22
In an attempt to make the GUI code a little more structured, basic widgets are now put in gui/widgets. Many includes were also cleaned up.
2009-03-25Merge branch 'eathena/master'Bjørn Lindeijer1-26/+11
Conflicts: A lot of files.
2009-03-23Merge branch 'aethyra/master'Bjørn Lindeijer1-0/+6
Conflicts: Many files.
2009-03-22Merged the tmwserv client with the eAthena clientBjørn Lindeijer1-2/+4
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-19Reformatted the item amount window and the buy/sell windows so thatIra Rice1-0/+5
their guis are similarly laid out. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-12Extend color config gui to support the new colorsMajin Sniper1-5/+3
The new color palette supports many more colors that the browserbox can display. So a change to the color config gui was needed.
2009-03-12Make use of the new available colorsMajin Sniper1-5/+0
This patch lets all being derivatives use the palette to set their name's colors. Text Particle Effects all respect the new settings. Some widgets were updated to use the colors.
2009-03-12Extend color config gui to support the new colorsMajin Sniper1-2/+5
The new color palette supports many more colors that the browserbox can display. So a change to the color config gui was needed.
2009-03-11Moved the Skin class outside of the Window class, in order to allowIra Rice1-0/+1
other widget containers to use skins as well, and to make it easier to extend later. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-26Merge branch 'aethyra/master'Bjørn Lindeijer1-21/+1
Conflicts: data/graphics/images/login_wallpaper.png src/being.cpp src/beingmanager.cpp src/engine.cpp src/game.cpp src/gui/buysell.cpp src/gui/buysell.h src/gui/gui.h src/gui/npc_text.cpp src/gui/npc_text.h src/gui/npcintegerdialog.cpp src/gui/npclistdialog.cpp src/gui/npclistdialog.h src/gui/npcstringdialog.cpp src/gui/sell.cpp src/gui/shop.cpp src/gui/table.cpp src/net/beinghandler.cpp src/net/npchandler.cpp src/net/playerhandler.cpp src/npc.cpp src/npc.h src/shopitem.cpp src/shopitem.h src/utils/stringutils.cpp src/utils/stringutils.h src/utils/trim.h
2009-02-22Renamed InfoParicleFont to InfoParticleFont (typo?)Philipp Sehmisch1-1/+1
2009-02-20Removed the last of the image particle guichan fonts.Ira Rice1-22/+2
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-20Added a pickup notification as particle effect. Also make a ui option to ↵Majin Sniper1-0/+1
enable/disable this effect (default is off) and another option to disable the pickup notification in the chat log (default is on).
2009-02-19Added a pickup notification as particle effect. Also make a ui option to ↵Majin Sniper1-0/+1
enable/disable this effect (default is off) and another option to disable the pickup notification in the chat log (default is on).
2009-02-15Removed unnecessary parenthesis at constructorsBjørn Lindeijer1-2/+2
When not passing any parameters to constructors, there is no reason for using parenthesis.
2009-02-11Shut up some compiler warnings.Philipp Sehmisch1-2/+2
2009-02-11Shut up some compiler warnings.Philipp Sehmisch1-2/+2
2009-02-11Changed spelling from colour to color.Philipp Sehmisch1-1/+1
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-10Changed spelling from colour to color.Philipp Sehmisch1-1/+1
2009-02-04Went through the gui folder and revised the include statements to notIra Rice1-10/+15
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-27Added font size config for the bold font as well.Ira Rice1-1/+2
Signed-off-by: Ira Rice <irarice@gmail.com>