Commit Graph

60 Commits

Author SHA1 Message Date
Johannes Schickel
89abab97e3 JANITORIAL: Remove trailing whitespaces.
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02:00
Johannes Schickel
a401f0a19e ALL: Replace cursorTargetScale in OSystem API with a simple "do not scale" logic.
All uses of the old target scale API actually wanted to disallow scaling of
the mouse cursor. This commit adapts our API to this and thus simplifies
backend implementations.

Some backends, most notable the Wii and Android, did some implementation of
the cursor target scale, which I didn't adapt yet. I added a TODO for the
porters there.
2012-06-03 02:02:57 +02:00
Johannes Schickel
d21ae1aa40 GUI: Add support for loading TTF files with ISO-8859-1 charset. 2012-01-29 16:26:20 +01:00
MaximRussia
ad4471f70c GUI: Improved pop up and scrollbar arrows look
Previous triangle drawing was all wrong, rewrote it from the scratch.
Added padding to drawsteps in stx files
2011-12-07 14:04:10 +00:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Max Horn
92c896d883 Patch #2973290: Semicolon cleanup
svn-id: r48359
2010-03-22 20:28:08 +00:00
Johannes Schickel
d8b2baee97 Rename 'font_color' attribute for 'text' draw step to 'text_color'.
svn-id: r43206
2009-08-10 14:05:14 +00:00
Johannes Schickel
f812d0e7b7 Made font color configuration independend from font style configuration.
svn-id: r43205
2009-08-10 13:46:17 +00:00
Max Horn
a882a6f467 GUI: Replaced ThemeParser::_drawFunction hashmap by a static function getDrawingFunctionCallback which maps strings to draw funcs
svn-id: r41931
2009-06-28 19:57:27 +00:00
Eugene Sandulenko
b0f7f2e8d4 Implement widget property "textalign". Added it to all theme layouts
svn-id: r41265
2009-06-06 17:51:41 +00:00
Jordi Vilalta Prat
b1999a2a16 Fixed indentation and removed whitespaces at the end of line
svn-id: r35481
2008-12-22 11:22:15 +00:00
Max Horn
1ad8e59c12 minor tweaks
svn-id: r34961
2008-11-09 15:59:14 +00:00
Max Horn
f5b70114ca Removed many unnecessary #includes
svn-id: r34959
2008-11-09 15:14:01 +00:00
Max Horn
7cbd04dc23 Thou shalst never use the 'using' keyword in a header file, lest the wrath of ye fingolfin will crush your sorrow bones to dust... *grrr* ;)
svn-id: r34937
2008-11-08 01:34:02 +00:00
Max Horn
4a56e0d9c1 Merged ThemeEngine::themeEval() and ThemeEngine::evaluator() methods into a single getEvaluator() method
svn-id: r34789
2008-10-12 22:25:35 +00:00
Vicent Marti
dcc72fe29e Massive refactoring/cleanup on the theme engine/parser.
svn-id: r34285
2008-09-02 17:51:08 +00:00
Vicent Marti
784c1114cc Deprecated support for "direction" layout keys.
svn-id: r33904
2008-08-15 16:44:44 +00:00
Vicent Marti
8eaa982c41 Added Classic Theme - WIP (yes, it's working).
Added Builtin theme back.
Added Python script to automatically build themes.

svn-id: r33868
2008-08-14 18:43:27 +00:00
Vicent Marti
0bf2187039 Finished GUI layout in g1x.
svn-id: r33818
2008-08-13 10:42:01 +00:00
Vicent Marti
a4b3434af9 Bugfix: Selection background too short when scrollbar not present.
Bugfix: Vector renderer drawstep for bitmap blitting.
Added bitmap GFX for checkboxes.

svn-id: r33771
2008-08-10 22:03:00 +00:00
Vicent Marti
8a31616f46 Bitmap cursor loading from XML files.
svn-id: r33760
2008-08-10 17:22:12 +00:00
Vicent Marti
103a4f6681 Added support for image loading/blitting.
Added support for loading theme files.
(Make sure to grab the sample theme "scummodern.zip" from the gui/themes/ directory to try it out)
Misc fixes.

svn-id: r33718
2008-08-09 18:34:16 +00:00
Vicent Marti
ea69217a13 Fixed 1.000.000 Valgrind warnings.
svn-id: r33711
2008-08-09 14:15:34 +00:00
Vicent Marti
dab1fa0942 Resolution-dependence in XML files.
G1X scaler GUI now loads. Added layout for the launcher menu.
MILESTONE: All core GUI dialogs/widgets working on G2x/G3x
MILESTONE: Completely removed old Evaluator/Parser.
Improved layout expanding again.
Improved XML parser.
Several bugfixes.

svn-id: r33704
2008-08-08 18:30:16 +00:00
Vicent Marti
7c132d340a Misc text drawing improvements.
Added carets/text edit widgets.

svn-id: r33684
2008-08-07 18:42:47 +00:00
Vicent Marti
21989844a9 Game Options menu parsing.
Added support for importing layouts inside other layouts.
Misc bugfixes.

svn-id: r33676
2008-08-07 10:53:33 +00:00
Vicent Marti
8cb26074bd Added support for customized background dimming on dialogs.
Bugfix: Popup widgets were dimming the background.

svn-id: r33663
2008-08-06 15:06:22 +00:00
Vicent Marti
bd0cdd0f74 Cleanup on default theme.
Added support for Widget Type Declaration (makes XML much cleaner).

svn-id: r33661
2008-08-06 14:28:37 +00:00
Vicent Marti
4256c35791 Options menu layout parsing, featuring the brand new FATPOPUPS.
svn-id: r33651
2008-08-05 23:58:45 +00:00
Vicent Marti
eb3d163439 Look, the launcher is rendered with the new layout parser.
svn-id: r33641
2008-08-05 16:23:17 +00:00
Vicent Marti
70ef503434 Massive refactoring on the layout parsing API.
Added support for layout spacings.
Fixed bug in theme conversion python script.

svn-id: r33630
2008-08-05 09:54:36 +00:00
Vicent Marti
85c36885f5 Theme layout parsing. Work in progress.
svn-id: r33613
2008-08-04 16:59:55 +00:00
Vicent Marti
a3f85956ff Added basic support for inner shadows.
Made sliders look pretty much like the current GUI.

svn-id: r33548
2008-08-02 22:11:57 +00:00
Vicent Marti
a15ebfb73a Theme Layout parsing, WIP.
svn-id: r33494
2008-08-01 15:45:02 +00:00
Vicent Marti
9bd3b07647 Support for XML layout with unspecified keys.
XML Layout parsing. WIP.

svn-id: r33488
2008-08-01 10:18:47 +00:00
Vicent Marti
e8278c4c68 GUI Layout parsing. Work in progress.
svn-id: r33475
2008-07-31 17:23:38 +00:00
Vicent Marti
e7959952bb Rewrote most of the XML parser class.
Added support for defining the XML layout when parsing, allows for safer parsing.
Updated all the documentation regarding the usage of the XMLParser class.

svn-id: r33447
2008-07-30 13:33:32 +00:00
Vicent Marti
9aa07d206e Rendering pipeline. Broken WIP.
svn-id: r33152
2008-07-20 21:47:28 +00:00
Vicent Marti
b44b37d4ca More widgets.
svn-id: r33071
2008-07-15 10:50:31 +00:00
Vicent Marti
ccf9368c53 Added support for Text Steps in the Vector Renderer.
svn-id: r32991
2008-07-10 15:50:44 +00:00
Vicent Marti
48fd843e75 Rendering pipeline. WIP.
svn-id: r32882
2008-07-03 10:26:55 +00:00
Vicent Marti
2d87b29058 GCC compiling fixes.
svn-id: r32877
2008-07-02 18:43:17 +00:00
Vicent Marti
d385c34dd0 InterfaceManager functionality translated into a Theme subclass "ThemeRenderer" to easen integration with the current GUI.
svn-id: r32876
2008-07-02 18:11:41 +00:00
Vicent Marti
6c85e960b2 Rendering pipeline. WIP.
svn-id: r32869
2008-07-01 15:57:30 +00:00
Vicent Marti
3f0f7fa08b Improved support for parsing integers in the XML parser.
Bug fixes.

svn-id: r32818
2008-06-28 00:02:54 +00:00
Vicent Marti
5534ce68a1 - MILESTONE: A widget is drawn on screen loaded straight from its XML description. Yippie.
- XMLParser: Bugfixes.
- ThemeParser: Support for default color values.

svn-id: r32808
2008-06-26 19:54:55 +00:00
Vicent Marti
0cd183b94b InterfaceManager now loads themes.
svn-id: r32800
2008-06-26 13:50:16 +00:00
Vicent Marti
917b750839 XMLParser:
- Bug fixes.

ThemeParser:
- Support for palette colors.
- Expanded theme syntax.

svn-id: r32787
2008-06-25 17:56:00 +00:00
Vicent Marti
8caa7d3f8b Common:
- Added function to get the active host type as a string.

XMLParser: 
- Added support for ignoring keys while parsing (check documentation). Backwards compatible.
- parserError() has been revamped. Shows all kinds of detailed information regarding the error ala Python

InterfaceManager/ThemeParser:
- DrawData keys and their DrawStep subkeys are now successfully parsed and loaded into structs. That's a win.
- Bug fixes.

svn-id: r32768
2008-06-24 19:48:01 +00:00
Vicent Marti
a4b4534a66 Split ThemeParser into XMLParser and ThemeParser as child class to have a common XML Parser.
svn-id: r32734
2008-06-18 23:49:47 +00:00