Commit Graph

1544 Commits

Author SHA1 Message Date
Martín Lucas Golini
cd306cc2e6 More general UI code clean up and documentation. 2020-03-31 22:49:09 -03:00
Martín Lucas Golini
b13793e99c More work on the CSS Specification. Some specification changes were made. 2020-03-30 04:33:51 -03:00
Martín Lucas Golini
7677435de5 Minor refactor.
More work on the CSS specification doc.
2020-03-29 04:47:11 -03:00
Martín Lucas Golini
c1904dd01d CSS Specification doc WIP. 2020-03-28 05:37:53 -03:00
Martín Lucas Golini
a3afe7a8e2 Added em and rem units support.
Fixed a bug in tooltips.
2020-03-25 03:19:56 -03:00
Martín Lucas Golini
162a7efde9 Updated SDL 2 to version 2.0.12 (used for the Android build).
Minor optimization in UIBackgroundDrawable.
2020-03-18 01:17:33 -03:00
Martín Lucas Golini
e593430cd0 Added properties rotation-origin-point-x/y and scale-origin-point-x/y.
Added shorthand rotation-origin-point and scale-origin-point.
2020-03-16 22:59:56 -03:00
Martín Lucas Golini
c6c7928a82 Improved background/foreground shorthand parser. 2020-03-16 02:57:02 -03:00
Martín Lucas Golini
f9ab6d0137 Added DrawableImageParser, this class parses the background-image and foreground-image functions and allow to register more functions. 2020-03-16 02:11:08 -03:00
Martín Lucas Golini
be0845fe57 Merge pull request #2 from SpartanJ/dev-css-borders
Dev css borders
2020-03-15 01:51:34 -03:00
Martín Lucas Golini
816b2b3f34 Shorthand parsers are now a std::function and can be customized. 2020-03-15 01:38:16 -03:00
Martín Lucas Golini
3921f81ced Added border-radius support.
Added alias support for shorthands.
Added BorderType::Outline.
Added support for background/foreground masks.
Fixes to the border rendering.
Several fixes and clean up.
2020-03-13 05:10:53 -03:00
Martín Lucas Golini
359685cb6f Added UIBackgroundDrawable. WIP CSS Borders. 2020-03-10 03:57:49 -03:00
Martín Lucas Golini
259dbebc17 Working borders. 2020-03-09 20:26:31 -03:00
Martín Lucas Golini
312f02105f CSS Borders WIP (not working yet). 2020-03-09 15:12:43 -03:00
Martín Lucas Golini
922e247695 UIViewPager now can be locked and emits OnPageChange event.
OpenSSLSocket can load CA Certificate from a Pack.
2020-03-02 22:19:54 -03:00
Martín Lucas Golini
5d17e42d03 Texture packer fixes and new version (this breaks older ETA files). Now the MD5 hash is saved into the texture region info, in order to verify on the texture atlas update if the file changed (instead of relying on the file modification date that's local).
UIViewPager now takes into account the amount of displacement when starting a page change animation, shortening the animation when it's closer to the objective.
TexturePacker now accepts any pixel density instead of the fixed PixelDensitySizes.
2020-03-02 13:31:00 -03:00
Martín Lucas Golini
e530e38895 Fixed UITooltip not showing correctly.
Fixed UITabWidget draw invalidation.
Fixed software keyboard backspace and return key on Android.
Fixed performance issue on onChildCountChange.
2020-03-02 01:34:26 -03:00
Martín Lucas Golini
1920909678 Added UIViewPager::setCurrentPage. 2020-03-01 16:06:22 -03:00
Martín Lucas Golini
d4cf1efc7f UIViewPager fixes.
Fixed structural pseudo-classes states in some specific scenario.
2020-02-28 23:58:00 -03:00
Martín Lucas Golini
cd34f7f4e4 Several fixes for UIViewPager.
Added min-width and max-width CSS properties (still needs testing).
Fixed CSS animations with multiple steps.
Fixed menu sub-menues not appearing.
2020-02-28 04:40:32 -03:00
Martín Lucas Golini
8c108c5ed9 Added UIViewPager.
Node::onChildCountChange reports the child that's being added or removed.
Added Ease::toString.
Added UIWidget::lengthFromValueAsDp.
2020-02-27 14:16:11 -03:00
Martín Lucas Golini
5bec7077c2 Update README.md 2020-02-26 02:00:08 -03:00
Martín Lucas Golini
199628ca7e Merge pull request #1 from SpartanJ/dev-ios
iOS support updated.
2020-02-26 01:38:36 -03:00
Martín Lucas Golini
5e4562b3ec Minor fixes and clean up. 2020-02-26 01:25:49 -03:00
Martín Lucas Golini
4a3b21c938 Improved iOS support. Added and modified a couple of scripts to generate the library and the projects. Updated the premake files. Removed old cross compiling projects. 2020-02-26 00:45:55 -03:00
Martín Lucas Golini
04c407077f Several improvements in the CSS Animations.
UITabWidget now acts as a draw invalidator, skipping the draw invalidation if the element invalidating is not visible in the current tab.
premake5 file now supports different architectures.
Updated README.md and docs.
Minor fixes in UIColorPicker.
Updated SOIL2 and efsw.
Added LICENSE file.
2020-02-25 01:15:27 -03:00
Martín Lucas Golini
f8c21880d1 Replaced StyleSheetPropertyTransition in favor of StyleSheetPropertyAnimation.
This class allows to animate CSS "animation" and "transition". Some CSS animations are working, pending fill-mode implementation, tests and surely many fixes.
Fixed a critical bug in windows resize introduced in the latest Input improvements.
2020-02-24 03:01:32 -03:00
Martín Lucas Golini
e2668d03dd Fixed delay in CSS transitions. 2020-02-22 21:43:38 -03:00
Martín Lucas Golini
e302310973 More work has been done to support the CSS animation property.
Now the "animation*" properties are parsed and converted into an AnimationDefinition.
Added a new obligatory method to Action, Action::getTotalTime, in order to have more precise information about the current execution point in time of the actions.
Added String::isNumber(std::string, bool).
Added Time::fromString and Time::isValid.
2020-02-22 03:43:26 -03:00
Martín Lucas Golini
e788b66543 Updated freetype, zlib, dr_flac and dr_mp3.
Removed openal-soft sources.
2020-02-21 03:23:43 -03:00
Martín Lucas Golini
eba9de768b Minor UIColorPicker fixes. 2020-02-20 19:19:29 -03:00
Martín Lucas Golini
73e9489f81 InputEvents improvements and some minor fixes and optimizations. 2020-02-19 02:07:03 -03:00
Martín Lucas Golini
48d0f06b2b Started implementation of CSS Animations, WIP. 2020-02-18 03:58:58 -03:00
Martín Lucas Golini
c2e0d867fd Added support for multiple background-image and foreground-image.
Added support for structural pseudo class :not().
2020-02-17 04:06:47 -03:00
Martín Lucas Golini
0c58db3652 Transitions fixes (still testing).
Added support for CSS structural pseudo classes (also still testing).
2020-02-15 21:29:52 -03:00
Martín Lucas Golini
d371365adf Fixed a regression in TextureAtlasLoder.
Fixed color alpha in UIWidget background and foreground elements.
Updated efsw.
2020-02-11 18:29:48 -03:00
Martín Lucas Golini
022a04e5f3 Several UI related fixes ( wrong updates, bad rendering, a segfault, and more ). 2020-02-11 03:32:26 -03:00
Martín Lucas Golini
4320841ade Removed StyleSheetElement interface in favor of using UIWidget directly. Thanks to this all dynamic_casts has been removed at the cost of a little less readable code. 2020-02-10 03:19:07 -03:00
Martín Lucas Golini
1a6884aa06 Fixed emscripten build on chrome/ium. 2020-02-08 18:25:15 -03:00
Martín Lucas Golini
1819aa3d64 Fixed text selection when any tab character was involved.
Also optimized the text selection.
2020-01-29 00:50:13 -03:00
Martín Lucas Golini
16e6e1f8d1 Improvements in emscripten build.
Added support in emscripten for Http:getAsync and Http::postAsync.
Fixes with modal dialogs.
Fixes in texture atlas editor.
Fixes in UIColorPicker.
Fix in UITextView text selection.
Improvements in WindowSDL2.
UICheckBox not uses setChecked and isChecked instead of setActive and isActive.
2020-01-20 05:15:18 -03:00
Martín Lucas Golini
502a5f4ca9 Fixed Windows build (for real). 2020-01-19 18:45:59 -03:00
Martín Lucas Golini
65cd9915dc Should fix windows build. 2020-01-19 17:56:04 -03:00
Martín Lucas Golini
b71b935e38 Build fix. 2020-01-19 17:30:18 -03:00
Martín Lucas Golini
9d32e29ffb Added TexturePacker console tool and updated to a new version of the Texture Atlas format.
More premake5 project refactor.
Fixed some Stysheet Properties types and fixed some StyleSheetProperty transitions.
2020-01-19 17:17:09 -03:00
Martín Lucas Golini
57c31ffcb4 Code clean up and some minor fixes.
premake5 is being reworked, might fail in some situations.
2020-01-18 19:40:27 -03:00
Martín Lucas Golini
89df736630 premake5.lua: replaced includedirs with sysincludedirs that should work better in some cases.
Reformated README.md.
Docs improvements.
2020-01-18 05:37:52 -03:00
Martín Lucas Golini
e686320e1f Create eepp-windows-build-check.yml 2020-01-17 23:44:20 -03:00
Martín Lucas Golini
1567708633 Added "windows-vc-build" argument to premake5. 2020-01-17 23:43:25 -03:00