aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeNew.cpp
AgeCommit message (Collapse)Author
2006-06-15- Adds 'THEME_HINT_NO_BACKGROUND_RESTORE' for buttons which don't want ↵Johannes Schickel
restored background (example: the tab scrolling buttons). - Call _theme->drawAll() at the end of the redraw method of NewGui svn-id: r23134
2006-06-15Delete the old cursor buffer before allocating a new one. If the theme isTorbjörn Andersson
enabled by the time it's refreshed, replace the cursor. svn-id: r23122
2006-06-15Fix drawing of tab widget. Now it matches mock-ups. Added tab scrolling.Eugene Sandulenko
svn-id: r23116
2006-06-14Implements new Tab drawing for modern theme (nearlly matches mockups now)Johannes Schickel
svn-id: r23106
2006-06-13Removed printf() debug message.Torbjörn Andersson
svn-id: r23085
2006-06-13Let the [cursor] palette manager handle disableCursorPalette() too, to avoidTorbjörn Andersson
cursor glitch in at least some HE games which first set a cursor palette, and then disable it. (The disabled palette would be re-enabled after dismissing the GUI.) svn-id: r23081
2006-06-07oops. More appropriate place for loading fonts. Avoids loading fonts onEugene Sandulenko
each GUI start svn-id: r22968
2006-06-07Fix regression with console having wrong font on startup.Eugene Sandulenko
svn-id: r22967
2006-06-06Move whole theme ini file to evaluator. Next step is caching. Also now it isEugene Sandulenko
possible to use per-resolution gfx and colors, i.e. complete customization. svn-id: r22964
2006-06-05Some more string usage tweaksMax Horn
svn-id: r22936
2006-06-05cleanupMax Horn
svn-id: r22930
2006-06-05Fixing some more typenames to comply to the ScummVM coding guidelinesMax Horn
svn-id: r22929
2006-06-05Fix various typenames to comply to the ScummVM coding guidelinesMax Horn
svn-id: r22928
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