aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeNew.cpp
AgeCommit message (Collapse)Author
2006-06-03*Loads* of Common::String related optimizations. Woa, *tons* of methods were ↵Max Horn
copying strings needlessly svn-id: r22873
2006-05-30Should fix drawing on systems with alpha mask.Johannes Schickel
svn-id: r22773
2006-05-30A quick hack to let PSP gui use bigger fonts. Proper solution is to addEugene Sandulenko
possibility to specify font for each widget class svn-id: r22770
2006-05-29Introduces special switch for GraphicsWidget for use of theme transparency ↵Johannes Schickel
again. svn-id: r22746
2006-05-29Oops this reverts my last commit. :/Johannes Schickel
svn-id: r22742
2006-05-29- comments out getColorAlphaImp2Johannes Schickel
- adds note in getColorAlpha about we handle negative alpha values currently (could be removed when getColorAlphaImp2 get's fixed) svn-id: r22741
2006-05-29- cleanupJohannes Schickel
- uses working getColorAlphaImpl for alpha == 0 in getColorAlpha svn-id: r22740
2006-05-29- changes transparency parameter of Theme::drawSurface to alpha parameter.Johannes Schickel
- adds possibility to draw GraphicsWidgets with alpha values. svn-id: r22738
2006-05-27Don't draw the shadow outside the scrollbar (should fix 'garbage' when ↵Johannes Schickel
moving the scrollbar) svn-id: r22680
2006-05-27Fixes caret drawing in EditTextWidgets.Johannes Schickel
svn-id: r22678
2006-05-27Major GUI update:Eugene Sandulenko
- Implemented padding in console - Update only current line in console instead of whole screen - Fixed caret positioning in edit text widget - Improved buttons drawing, now they look more realistic - Added label spacing in popup widget - Correct shadow in popup widget - Fixed up with selected popup widget being drawn on wrong tab - Added shading to list dialog - Adjusted shading of inactive widgets - Proper coloring of browset (add game) dialog - Introduced Container widget - Used Container widget in scumm save/load dialog. Now it looks properly - Adjusted button colors even more. Now they match almost perfectly albeit with banding - Made scrollbar appear only when it is really needed svn-id: r22670
2006-05-26Use Courier 12pt (free one) for 2x and 3x console. Looks much more useable now.Eugene Sandulenko
svn-id: r22644
2006-05-25The GUI never asked for the cursor to be visible. I'm not sure why that used toTorbjörn Andersson
work before the cursor manager. Oh well, the launcher should have a visible cursor again, knock on wood. svn-id: r22641
2006-05-25Set and show/hide mouse cursors through a "cursor manager" (analogous to theTorbjörn Andersson
recently added (cursor) palette manager) so that the cursor can be properly restored after returning from the GUI. If there's any C++ magic that can keep the backend functions from being called by anything else than these managing classes, that would probably be a good idea. Also, since the cursor manager keeps a copy of the cursor image, perhaps there are at least some backends that will no longer need to? svn-id: r22639
2006-05-20After the GUI has finished, restore the old cursor palette (if any). For thisTorbjörn Andersson
to work, cursor palette now has to be set using the new "palette manager". See graphics/paletteman.cpp svn-id: r22543
2006-05-18Proper rendering of slider widget.Eugene Sandulenko
svn-id: r22527
2006-05-18- Fix spelling in theme configEugene Sandulenko
- Introduce embossing shadow - Less round corners in popup widget - Custom border in editable text widget - Matched color in popup widget and editable text widget with mock-ups - Less round corners in editable text widget - Text padding in editable text widget svn-id: r22525
2006-05-18- Revert additional setUpCursor() call as it broke in-game cursor paletteEugene Sandulenko
- Disable scaling for cursors which have target scale defined svn-id: r22509
2006-05-18Better cursor imageEugene Sandulenko
svn-id: r22507
2006-04-25Uses the special cursor color palette for the cursor now (this fixes ↵Johannes Schickel
problems with creation of thumbnails of the scumm engine) svn-id: r22152
2006-04-21Fix valgrind warningTravis Howell
svn-id: r22065
2006-04-19Adds handleScreenChanged() to NewGui, so (scumm) engine can call it when it ↵Johannes Schickel
recives a EVENT_SCREEN_CHANGED. svn-id: r22025
2006-04-19Fixes problems with wrong colors on the overlay in scumm engine.Johannes Schickel
svn-id: r22024
2006-04-19Implements custom cursor support for the new theme and includes a standard ↵Johannes Schickel
cursor (it should be replaced though). svn-id: r22019
2006-04-19Started to prepare the gui for runtime resolution switches.Johannes Schickel
(some little things could be missing yet though) svn-id: r22017
2006-04-18Restores background before drawing a popupwidget.Johannes Schickel
svn-id: r22015
2006-04-18Oops forgot to use shadows for the PopUpWidget.Johannes Schickel
svn-id: r22013
2006-04-18- Fixed popup widget for --force-1x-overlay with new themeJohannes Schickel
- adds support for highlightened popupwidgets svn-id: r22012
2006-04-18- adds own drawing function for (not expanded) popup widgetsJohannes Schickel
- adds pixmaps, colorfades, and gradient factor for the (not expanded) popup widget in new theme - bumps themeconfig version svn-id: r22011
2006-04-17Moved ColorMasks to their own new header graphics/colormasks.h, so that both ↵Max Horn
the scalers and the GUI code can access them. Also added (untested) entries for 1555, 444, 888 and 8888 modes svn-id: r21966
2006-04-16- Moves Graphics::loadFont to Graphics::NewFont::loadFontJohannes Schickel
- adds code for caching of fonts (just for Graphics::NewFont) - implements cache using in the modern theme for custom fonts - adds cache file for current normal font in the theme zip file svn-id: r21952
2006-04-16- Implemented text padding in ListWidget and PopUpWidget. Right padding does ↵Eugene Sandulenko
not work yet. - Implemented highlisght padding in ListWidget - Eval::getVar() method with default value - Removed unused constructors for ListWidget and PoUpWidget - cleanup - bumped theme version svn-id: r21934
2006-04-14- implements .bdf font loader based on convbdf (sure could have some clean up)Johannes Schickel
- adds three different font styles to the themes (normal, bold (default one), italic) - implements code for specifing the font files in the theme config ('fontfile_normal','fontfile_bold' and 'fontfile_italic' in the 'extra' section) - changes EditTextWidget to use the normal font (has some minor aligment problems with the caret now, though) - extends the FontManager (new functions: getFontByName, assignFontToName, removeFontName) - adds the font style constans to the builtin constants for the evaluator) svn-id: r21868
2006-04-13- No longer draws full shadows for disabled widgetsJohannes Schickel
- Implements 'negativ alpha' values for drawSurfaceMasked (from -1 to -100, used to dim the pixels -1 means very very small dim -100 should be black) - Changes drawSurfaceMasked to use macros for easy changing drawing code svn-id: r21852
2006-04-13Deletes color cache and custom dialog shading.Johannes Schickel
svn-id: r21850
2006-04-12Speeds up calcGradient again a little bit.Johannes Schickel
Also this should fix a bug in getColorAlphaImpl (I'm not 100% sure if it was wrong before though) svn-id: r21818
2006-04-12- some little clean upsJohannes Schickel
- improves speed of the dimming effect (get's rid of divisions in favour of shifts) - improves speed of calcGradient (nearlly twice as fast in my tests now) svn-id: r21817
2006-04-11Checks if something is drawn out of the screen in drawSurfaceMasked (fixes ↵Johannes Schickel
crashes with --force-1x-overlay) svn-id: r21794
2006-04-11- cleans up drawSurfaceMasked a little bitJohannes Schickel
- get rid of getColorAlpha in drawSurfaceMasked if no alpha blending is used svn-id: r21792
2006-04-11Changed drawScrollbar to use drawShadow.Johannes Schickel
svn-id: r21791
2006-04-10Implements saving the color cache to a file (much faster startup for custom ↵Johannes Schickel
effect + less memory while gui isn't shown) svn-id: r21766
2006-04-02With this change, backends are now responsible for instantiating their ↵Max Horn
OSystem class before calling scummvm_main (Note: PalmOS and Symbian are not yet converted, and won't work currently) svn-id: r21557
2006-04-02- moves some code in ThemeNew.cpp (calcGradient and calcAlpha to the bottom)Johannes Schickel
- added possibility to use a shading effect on inactive dialogs (luminance and dim are builtin, and special ablility to specifiy a own expression, evaluated via the evaluator) - adds also a color cache (atm it's generated on startup) - uses luminance effect by default - bumps theme config version to 7 svn-id: r21544
2006-03-25- Revert my last change with moving addDefaultDirectory() from TheneNew.cppEugene Sandulenko
- Removed locking of further directory adds because it did not work for themes. svn-id: r21452
2006-03-25- Move AddDefaultDirectory() calls in somon engine to constructorEugene Sandulenko
- Move AddDefaultDirectory() from NewTheme.cpp to main.cpp svn-id: r21451
2006-03-24Fix chechbox label alignment.Eugene Sandulenko
svn-id: r21433
2006-03-24o Rearranged options dialogEugene Sandulenko
o Made button corners less round to match mock-ups svn-id: r21423
2006-03-24Bump theme version numberEugene Sandulenko
svn-id: r21421
2006-03-21Fix bug #1455213: "GUI: ExtraPath won't display" and turn theme versionEugene Sandulenko
into #define. svn-id: r21395
2006-03-20Updates the config version for the new theme to 4 in the warning which is ↵Johannes Schickel
printed if the version is too low. svn-id: r21393