summaryrefslogtreecommitdiff
path: root/src/gui/palette.cpp
AgeCommit message (Collapse)AuthorFilesLines
2024-01-29Apply C++11 fixitsThorbjørn Lindeijer1-28/+27
modernize-loop-convert modernize-deprecated-headers
2024-01-26Apply C++11 fixitsThorbjørn Lindeijer1-2/+2
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-using
2012-01-26Updated copyrights to 2012Thorbjørn Lindeijer1-1/+1
2011-06-19More C++0x Windows compilation fixes.Philipp Sehmisch1-4/+5
Another case of M_PI being no longer defined in cmath.h _MAX_PATH doesn't work anymore, but there is still MAX_PATH putenv doesn't work anymore, so I replaced it with a function from the WINApi Reviewed-by: Thorbjorn
2010-03-12Split Palette into Theme and UserPaletteJared Adams1-217/+12
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-02-24Add more to eAthena guild supportJared Adams1-0/+1
It's not complete yet, but it is closer. Also fix up handling of guild/party members. Reviewed-by: Chuck Miller
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-21Do some more copyright header cleanupsJared Adams1-1/+1
Fix "(C) 2009-2009" to just "(C) 2009" Fix "(C) 2010 TMW" to "(C) 2010 Mana" Remove TMW compyright on (hopefully all) files added after 0.0.29.1
2010-02-22Modify copyright headersFreeyorp1-1/+2
2010-02-20License header update for The Mana ClientThorbjørn Lindeijer1-3/+2
2010-02-14Avoid some unnecessary pointer referencing in the Palette classThorbjørn Lindeijer1-22/+21
2010-02-14Ensure that gradients update when the framerate is 200 or more.Tametomo1-1/+2
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-10-03Changed the default colour for buttons to fit the current skinMaximilian Philipps1-3/+3
2009-08-07Gettext fixesKess Vargavind1-6/+6
Trying to use the same kind of capitalization and interpunctuation for various parts of the gui, melding a few split strings, updating POTFILES.in and adding translators' notes.
2009-08-05patch for #813, adds mouse over highlight forMaximilian Philipps1-4/+4
radio buttons, tabs, checkboxes, slider and scrollbars
2009-08-01makes tab colours also configurableMaximilian Philipps1-0/+1
2009-08-01makes the colour for buttons and disabled buttons configurableMaximilian Philipps1-0/+2
2009-05-10Fix default party colorJared Adams1-1/+1
Also reset name color for speech bubbles back to where it was.
2009-04-29Made sure the right overloads are usedBjørn Lindeijer1-2/+3
2009-04-29Changed palette colors to be once again stored in a human readableTametomo1-2/+14
format once again. This was originally reverted because it caused a regression on Windows, but not Linux, which was later found out to be because there's a Linux kernel function which will convert hex strings into an integer format, while Windows doesn't share the same luxury. So, to avoid any issues, this commit adds an atox (ascii to hex) string utility, and uses it when parsing hex strings for colors from the configuration file. Also ensured that people who have colors saved in the old, raw integer format can get their colors converted to hex values. Signed-off-by: Tametomo <irarice@gmail.com> Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
2009-04-22Some string fixesKess Vargavind1-8/+8
2009-04-15Non-neon-colored HP barsunknown1-3/+3
* Defaults for hp bar are more reasonable * Code::Blocks project file updated to include Desktop.cpp and Desktop.h
2009-04-15Assorted random cleanupsBjørn Lindeijer1-1/+1
2009-04-15Exposed delay values to the user, but made it so that the delay is colorIra Rice1-28/+34
based, instead of global, so that the user can specify different delays for different types of actions. Signed-off-by: Ira Rice <irarice@gmail.com> Signed-off-by: Bjørn Lindeijer <bjorn@lindeijer.nl>
2009-04-15HP Bar Gradual Changes Config (+ bugfixes)Falkreon1-1/+6
* Setup menu now has settings for the HP bar colors. * StatusWindow handles HP bar changes a little more consistently. * Fixed a bug that cut weightedAverage values in half, making the HP bar very dark.
2009-04-06Fix a spelling errorJared Adams1-1/+1
2009-04-06Clean up and expand item equip handling in the GUIJared Adams1-2/+2
2009-03-30Merge item types to remove more #ifdefsJared Adams1-7/+9
2009-03-27Fix the ColorTypes MacroMajin Sniper1-2/+2
2009-03-23Merge branch 'aethyra/master'Bjørn Lindeijer1-31/+63
Conflicts: Many files.
2009-03-22Fixed some compiler warningsBjørn Lindeijer1-8/+9
Superfluous semicolons, initialization order and signed/unsigned mismatches.
2009-03-14Improved pulsating algorithm to look better for impure colors.Ira Rice1-3/+3
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-14Made the slider editable when pulse gradient is selected.Ira Rice1-11/+23
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-14Added a pulse effect into the palette class, which uses the set colorIra Rice1-25/+30
and pulsates back and forth between it and black. Added directly after the spectrum effect. Also modified the gradient delay to be a lot farther out, so that we don't end up with a Pokemon seizure causing disaster (the speed was the same, as well as the colors. The new speed should be a lot more considerate of people who are prone to having issues from that speed of color changing). TODO: Modify the palette class to allow for updating the color for the pulse gradient without needing to have it applied first. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-14Exposed the progress bar colors to the color management tab.Ira Rice1-0/+1
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-14Made a label class derived from the guichan label class which utilizesIra Rice1-0/+1
the palette colors. While technically, this can be accomplished through other means, it's rather clumsy overall, and is prone to introducing in programmer errors. This commit finally catches every case where text is used, and applies the text color from the color dialog to each of them appropriately. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-14Code cleanup in the color/palette codeMajin Sniper1-11/+9
2009-03-14Code cleanup in the color/palette codeMajin Sniper1-18/+16
2009-03-14Fix a spelling error in paletteJared Adams1-1/+1
2009-03-14Fix cancel button in color config dialogMajin Sniper1-4/+5
Also save the committed gradient, not the one currently used.
2009-03-14Fix a spelling error in paletteJared Adams1-1/+1
2009-03-14Fix cancel button in color config dialogMajin Sniper1-4/+5
Also save the committed gradient, not the one currently used.
2009-03-13Added item types to the palette class.Ira Rice1-6/+20
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-12Extending the internal handling of colorssniper1-0/+317
The internal storage for colors was in the file color.h/color.cpp. It mainly managed the colors in the chat. The Color class was extended to be more generic now and it stores gcn::Color objects instead of integers now. A lot of new colortypes are now available, though not many of them are used for now, that will come in the next patches. The Color class was renamed to Palette and color.{h,cpp} to palette.{h,cpp} to better describe its purpose. The color config gui now lists the new colors, even changes them, but the result is not displayed properly for now.
2009-03-12Extending the internal handling of colorssniper1-0/+315
The internal storage for colors was in the file color.h/color.cpp. It mainly managed the colors in the chat. The Color class was extended to be more generic now and it stores gcn::Color objects instead of integers now. A lot of new colortypes are now available, though not many of them are used for now, that will come in the next patches. The Color class was renamed to Palette and color.{h,cpp} to palette.{h,cpp} to better describe its purpose. The color config gui now lists the new colors, even changes them, but the result is not displayed properly for now.