Commit graph

480 commits

Author SHA1 Message Date
Aloshi 612b196b11 Added the ability to theme multiple elements of the same type
simultaneously.
2014-01-24 19:25:15 -06:00
Aloshi 420dc912e0 If no keyboard input config is found, load a default.
(Previously would only load the keyboard default if *no* input configs were found.)
2014-01-24 18:29:53 -06:00
Aloshi 253ea2b5d3 Metadata now fades out while scrolling.
TextListComponent::isScrolling() now only returns true if the key has been
held down long enough for scrolling to really start.
Fixed opacity for RatingComponent and DateTimeComponent.
Exposed some more of AnimationController.
2014-01-24 18:10:13 -06:00
Aloshi 3ceeca968f Updated/added comments. 2014-01-24 16:21:10 -06:00
Aloshi 8eb9800127 Added color tag to ImageComponent (for colorshift).
Changed TextComponent's truncation from ".." to "...".
Updated documentation.
2014-01-23 15:30:32 -06:00
Aloshi 305e91c9f8 Fixed detailed view launch animation targetting wrong point when game
image is not at origin 0.5 0.5.
Tweaked launch animation to zoom a little faster so that images that the
camera doesn't overstep the bounds of the UI when the image is closer to
the edge.
2014-01-22 17:40:31 -06:00
Aloshi dd0c37ac23 Fix DateTimeComponent relative display for days. 2014-01-22 17:12:38 -06:00
Aloshi ea009315e9 Added horizontal margins to textlist.
Updated and corrected documentation (center -> alignment for textlist, not text!).
2014-01-21 21:16:18 -06:00
Aloshi fa8e60b7b5 Changed "center" property of textlist to "alignment".
TextListComponent can now be aligned either left, right, or center.
2014-01-21 20:43:33 -06:00
Aloshi 49130464ba Added developer and genre to the archive.vg scraper.
Renamed the "Play count:" label to "Times played:".
2014-01-20 19:33:24 -06:00
Aloshi ddcc43b930 Made rating component size work a bit better.
Send an onFileChanged(FILE_METADATA_CHANGED) when a game is launched to catch stat changes.
Updated documentation.
2014-01-20 12:23:39 -06:00
Aloshi 9a9ec3d855 Fixed some formatting. 2014-01-19 19:12:52 -06:00
Aloshi 45592544c1 Renamed some theme elements to be more consistent.
Heavily updated the theming documentation.
2014-01-19 18:59:04 -06:00
Aloshi 5606a07f88 Ratings are now themable. 2014-01-19 17:37:08 -06:00
Aloshi 43972c5be9 Added developer, publisher, genre, and number of players metadata.
Updated TheGamesDB scraper to retrieve said metadata, still need to do the
archive.vg scraper.
TextComponent now abbreviates text if the component's size is single-line and the text is too long.
DateTimeComponent now correctly updates its size.
2014-01-19 17:24:56 -06:00
Aloshi 640493e0a6 Added more metadata to the detailed gamelist view. 2014-01-19 16:06:13 -06:00
Aloshi 3f1fcf2400 Changed texture wrap mode to be determined as part of texture creation.
Should hopefully fix some of the weird artifacts at certain resolutions.
2014-01-19 12:23:01 -06:00
Aloshi 5b5e99c366 Removed "infoPanel" element.
Faked it so the <text name="description"> element looks like it has no container.
2014-01-10 19:18:51 -06:00
Aloshi 8b688d3913 Made description size themable. 2014-01-10 18:28:50 -06:00
Aloshi a83ce289e0 Make new resizing algorithm actually work properly. 2014-01-10 18:05:37 -06:00
Aloshi b35d365dc8 Removed the allowUpscale option for ImageComponent::setResize.
Added ImageComponent::setMaxSize(size).
Added "maxSize" theming option for ImageComponent.
2014-01-10 17:47:34 -06:00
Aloshi 92a6678736 Added DIMTIME slider to settings.
Sliders now show their exact value + a unit suffix to the right of the
slider.
2014-01-10 16:01:28 -06:00
Aloshi 2862171dab Fix creating default theme when default theme file is not present. 2014-01-10 14:58:03 -06:00
Aloshi 330f20f375 Added Ctrl-R shortcut to reload current gamelist view if in debug mode. 2014-01-10 14:41:23 -06:00
Aloshi b7b2998720 Added center theme option for TextListComponent. 2014-01-10 14:24:07 -06:00
Aloshi 997751f56a Fixed draw order for extra elements. 2014-01-09 17:13:52 -06:00
Aloshi 81a9941645 Added an error if the <systemList> tag is missing.
Made SystemView more themable (added a ThemeExtras component, made theming on pre-existing elements less restrictive).
2014-01-07 16:57:30 -06:00
Aloshi 5a84bc03ea Rewrote the theming documentation. 2014-01-06 13:27:34 -06:00
Aloshi 8d1ac3087e Changed the sound cache to be part of the Sound class instead of
ThemeData.
2014-01-03 10:48:34 -06:00
Aloshi 8a52866ca6 Added support for theme "extras".
Fixed a few crashes (e.g. TextListComponent::applyTheme).
2014-01-03 08:26:39 -06:00
Aloshi e6d0da998b Theme applicators have become the virtual method
GuiComponent::applyTheme(theme, view, element, properties).
Applying fonts works now.
2013-12-31 23:39:22 -06:00
Aloshi 8bc33ce309 Better "common" view.
Added <include> tag.
2013-12-30 21:48:28 -06:00
Aloshi 7f46e50688 First part of the theming system rewrite. 2013-12-30 17:23:34 -06:00
Aloshi 6f442556c0 Refactored SystemListView directly into ViewController.
Made system views match up with their gamelist views.
Pressing "back" on a gamelist view now takes you to the correct system view.
2013-12-24 11:50:26 -06:00
Aloshi b6577e630d Hopefully fixed the "black screen" bug.
At least for input configuration.
2013-12-23 20:22:15 -06:00
Aloshi 120f9a4e7b Fix accidentally making the grid view the default (woops) 2013-12-23 18:31:37 -06:00
Aloshi 4df8fc9af0 Fix bad dimming during sleep (again...) 2013-12-22 19:42:10 -06:00
Aloshi 93f850df75 Maybe fix the Linux compile errors 2013-12-22 16:56:11 -06:00
Aloshi 12ee215873 Refactored duplicate functionality in GridGameList and BasicGameList into
ISimpleGameList.
BasicGameList and DetailedGameList now automatically switch as metadata
changes.
2013-12-22 16:16:01 -06:00
Aloshi 9249d67048 Merge pull request #150 from N1xx1/patch-1
Segmentation Fault for pointer being null.
2013-12-22 09:21:46 -08:00
N1xx1 b8d44be6c2 Segmentation Fault for pointer being null. 2013-12-22 14:08:20 +01:00
N1xx1 05948e9302 Segmentation Fault for pointer being null. 2013-12-22 14:03:05 +01:00
Aloshi 4b6f8d9007 Move menu open code to ViewController so you can open it in the system
select
2013-12-20 15:47:21 -06:00
Aloshi bce46cb925 Fixed sleep mode dimming not working 2013-12-20 15:44:12 -06:00
Aloshi bec3a2599a Only run input code when input is pressed, not released. 2013-12-20 15:09:35 -06:00
Aloshi ed64c22dcb Merge branch 'master' into unstable
Conflicts:
	THEMES.md (keep unstable branch's)
2013-12-14 19:07:23 -06:00
Aloshi 019e78d048 Fix the extremely subtley broken FindFreeType.cmake by removing it in
favor of the FindFreetype.cmake that comes with CMake.
Hopefully fixes issue #144.
2013-12-14 18:52:12 -06:00
Aloshi 1398785468 Lock input during launch animation. 2013-12-13 14:38:34 -06:00
Aloshi 7e9b20fac5 Added a fade in from black for ViewController.
Added LambdaAnimation (which lets you use a lambda for the apply method).
Useful for simple one-off animations.
Added animation slots - only one animation can play per slot.  This way
you can have two animations run at the same time.
2013-12-12 21:17:59 -06:00
Aloshi 67818d5727 Don't create gamelist folders even if their parent directory is valid. 2013-12-12 16:08:52 -06:00