Leon Styhre
fc08a83fa0
TextEditComponent will now return an empty string if only whitespace characters were entered.
2021-09-21 22:18:18 +02:00
Leon Styhre
63767347f2
Fixed numerous compiler warnings reported by the -Wall and -Wpedantic flags.
2021-09-19 14:37:10 +02:00
Leon Styhre
0b6d987263
Fixed lots of compiler warnings reported by the -Wall and -Wpedantic flags.
2021-09-18 09:53:26 +02:00
Leon Styhre
bbaf2739d4
Added a blinking cursor to TextEditComponent.
...
Also fixed a text field sizing bug and made a small padding adjustment.
2021-09-17 21:40:48 +02:00
Leon Styhre
7b5d673050
Replaced the internal Vector2i data type and functions with the GLM library equivalent.
...
Also applied some code formatting changes for braced lists using clang-format.
2021-08-17 18:41:45 +02:00
Leon Styhre
1fb0ccef0d
Replaced the internal Vector2f data type and functions with the GLM library equivalent.
2021-08-16 18:25:01 +02:00
Leon Styhre
722468129e
Replaced all internal matrix data types and functions with the GLM library equivalents.
...
Also changed some vectors.
2021-08-15 19:30:31 +02:00
Leon Styhre
23fdc00044
Formatted the es-core source tree using clang-format.
2021-07-07 20:31:46 +02:00
Leon Styhre
3abbb3c85c
Updated TextEditComponent to scale properly on high resolution diplays.
...
Also changed to SVG graphic files for the text input box frame in order to look smoother at higher resolutions.
2021-01-15 18:53:38 +01:00
Leon Styhre
debf072a0e
Rewrote some code from C to C++
2020-12-16 23:59:00 +01:00
Leon Styhre
f4e24bdd56
Fixed an issue where the cursor would end up outside text fields for long strings.
2020-09-18 18:16:12 +02:00
Leon Styhre
8fefc9232c
Reorganized all resources to a subdirectory structure and added the CMake install prefix to the resource search path.
...
CMAKE_INSTALL_PREFIX and CMAKE_INSTALL_DATAROOTDIR are now used to resolve the resource path. As of this commit, there are only two paths where resources are searched, under the user home directory and under this install prefix directory (which defaults to /usr/local/share/emulationstation/resources but can be set to for instance /opt/share/emulationstation/resources using the appropriate CMake flags).
2020-06-21 19:35:43 +02:00
Leon Styhre
67aa6b3dbd
Huge code cleanup and code documentation update.
...
Includes lots of conversions from tabs to spaces. Only cosmetic code changes in this commit.
2020-06-21 14:25:28 +02:00
Leon Styhre
4098c64468
Implemented shoulder- and triggerbutton navigation to TextEditComponent (i.e. text edit quickjumps).
2020-06-13 21:55:58 +02:00
Leon Styhre
4a38271f6a
Expanded the help system to (hopefully) the whole application, removed the completely broken command line scraper and fixed some bugs related to the game collections.
2020-06-09 20:03:31 +02:00
Leon Styhre
b7d4274c6e
Added save confirmation dialogs to the text edit components, reorganized the scraper menu slightly and fixed a bug when toggling the screensaver.
2020-06-07 10:57:49 +02:00
Leon Styhre
a104b653ae
Mapped button Y to backspace in TextEditComponent.
2020-06-06 22:26:35 +02:00
Leon Styhre
709e6b996e
Code cleanup and code documentation. Only cosmetic changes in this commit.
2020-06-06 16:48:05 +02:00
Tomas Jakobsson
489d7de096
Eliminate drawRect that takes int's and make sure everything uses the float version properly, this way everything is rounded the same way
...
Only round the transforms when setting them on the GPU, to make sure everything is rounded the same, but only at the final moment
2019-08-31 17:58:36 +02:00
John Rassa
fc58af98fd
support for color gradients in drawRect and ImageComponent
2019-08-29 19:47:16 -04:00
Tomas Jakobsson
9de16045c9
whitespace cleanup
...
fix faulty line endings
silence warnings on windows
2019-08-25 17:23:02 +02:00
Tomas Jakobsson
a02a747c50
Redid the entire Renderer
...
Made all components render using triangle strips
2019-08-25 15:45:22 +02:00
Rael Gugelmin Cunha
464b0992ad
Work with dpad and analogs
2018-11-15 14:38:20 -02:00
Tomas Jakobsson
bd0c6beed5
Silence warnings
2017-11-18 23:20:09 +01:00
Tomas Jakobsson
ae5f9a0342
Move StringUtil to utils subfolder
...
Added utils/FileSystemUtils which will replace some boost::filesystem functions in the future
2017-11-16 19:18:20 +01:00
Tomas Jakobsson
232f36f866
Implement StringUtil which has stolen some functions from Font and added unicode2Chars
2017-11-10 19:54:03 +01:00
Tomas Jakobsson
a8fc560749
Header inclusion cleanup
2017-11-02 19:16:01 +01:00
Tomas Jakobsson
73a2f6b716
Replace Eigen with "inhouse" vector and matrix math
2017-10-28 22:25:01 +02:00
dirk-de-bugger
b851f91bd3
Fix initial text positioning and improve keyboard handling in TextEditComponent
2017-02-20 21:24:52 +01:00
Alec Lofquist
c870caee03
Fix newlines messing up cursor offset.
...
Fix an uninitialized value in TextEditComponent.
2014-10-18 15:46:14 -05:00
Aloshi
531fb50e01
Fixed text editing for multi-byte characters.
2014-08-30 15:37:51 -05:00
Aloshi
2b22e1fe0b
Rewrote font code to use multiple textures.
...
Will corrupt after playing a game.
2014-07-27 16:44:02 -05:00
Aloshi
dbdbcde6cd
Renamed folders to match their projects properly.
2014-06-20 20:03:05 -05:00