Martín Lucas Golini
ffc8fd3953
More code clean up and continued with the CSS Specification documentation.
2020-04-05 04:22:34 -03:00
Martín Lucas Golini
9a43551b6b
More CSS specification clean up and improvements.
...
UIPushButton refactorization.
Fixed crash on tooltip close.
And several minor changes to adapt the CSS specification changes into the widgets.
2020-04-04 02:43:19 -03:00
Martín Lucas Golini
94019a7658
Some UIWidget improvements.
2020-04-03 00:29:09 -03:00
Martín Lucas Golini
6259ca5fb8
More clean up and documentation, this time for: UITabWidget, UITab, UISpinBox and UIPushButton.
2020-04-02 04:18:11 -03:00
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
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
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
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
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
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
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
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
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
7b6a3d2f66
Some minor fixes.
2020-01-14 05:13:43 -03:00
Martín Lucas Golini
94c05b95e7
Added @import support.
...
Fixes for @media support.
Improvements for @font-face.
Http::get, Http:post, Http::request, Http:getAsync, Http:postAsync, Http::requestAsync: changed parameter order, now timeout goes always after the uri parameter.
--HG--
branch : dev
2019-12-16 02:20:52 -03:00
Martín Lucas Golini
70978866ba
Added CSS @font-face support.
...
Fixed a bug when unloading textures outside main thread.
Added Font::Event (events for load/unload font).
--HG--
branch : dev
2019-12-15 21:07:40 -03:00
Martín Lucas Golini
7361db7b41
Added root element to the UISceneNode, in order to support ":root" tag in CSS.
...
--HG--
branch : dev
2019-12-15 03:27:29 -03:00
Martín Lucas Golini
0705dad434
Added CSS media queries support (needs testing, basic support seems to be working).
...
--HG--
branch : dev
2019-12-15 00:32:31 -03:00
Martín Lucas Golini
3a21f2e640
Added TriangleDrawable.
...
CSS vector properties now are separated by space instead of comma.
Added offset to ArcDrawable.
Added new background-image and foreground-image functions: rectangle(), triangle(), circle().
Added some new parameters for the UIEditor, also some minor fixes.
--HG--
branch : dev
2019-12-11 19:56:32 -03:00
Martín Lucas Golini
c008ff2003
Added background-repeat support.
...
--HG--
branch : dev
2019-12-02 17:55:55 -03:00
Martín Lucas Golini
2c64910048
Transitions mostly working.
...
--HG--
branch : dev-css-refactor
2019-11-30 03:51:44 -03:00
Martín Lucas Golini
182b83feb8
Minor clean up.
...
--HG--
branch : dev
2019-11-24 15:17:14 -03:00
Martín Lucas Golini
ec4914a411
background-position transition WIP.
...
Fixed and renamed Node::removeActionByTag() to Node::removeActionsByTag().
--HG--
branch : dev
2019-11-24 03:28:51 -03:00
Martín Lucas Golini
567d19aaed
Fix in UINode::lengthAsPixels().
...
--HG--
branch : dev
2019-11-24 01:30:09 -03:00
Martín Lucas Golini
52965eb9d8
Crash fix on DisplayManager.
...
UINodeDrawable clean ups.
Added Node::removeAction(), Node:removeActionByTag(), Node::clearActions().
Store display DPI on scene node creation.
--HG--
branch : dev
2019-11-24 01:15:39 -03:00
Martín Lucas Golini
8b057fed7a
Quick test changed.
...
--HG--
branch : dev
2019-11-23 22:53:57 -03:00
Martín Lucas Golini
6fc6385718
Edge offsets values support for background-position.
...
--HG--
branch : dev
2019-11-23 19:41:58 -03:00
Martín Lucas Golini
3f6f121d79
New TextureRegions from textures respect current pixel density.
...
--HG--
branch : dev
2019-11-23 19:14:17 -03:00
Martín Lucas Golini
7a7542aa1d
CSS background-size and background-position WIP.
...
--HG--
branch : dev
2019-11-22 23:40:33 -03:00
Martín Lucas Golini
ba7594b83c
Added FrameRateLimit to Context variables.
...
Updated SOIL2 and efsw.
Minor changes in UILoader.
--HG--
branch : dev
2019-11-21 23:29:23 -03:00
Martín Lucas Golini
45cf7f4f73
UINodeDrawable replacing UISkinState for UINode background and foreground.
...
WIP new properties support.
Added "text-align" property to UITextView.
Fixed a bug in StyleSheetSelectorRule.
--HG--
branch : dev
2019-11-13 17:40:38 -03:00
Martín Lucas Golini
54a88adff5
Minor clean up.
...
--HG--
branch : dev
2019-11-12 23:07:49 -03:00
Martín Lucas Golini
8b437876b0
UIColorPicker implemented.
...
--HG--
branch : dev
2019-11-10 19:21:30 -03:00
Martín Lucas Golini
092268f2e4
Color picker layout WIP.
...
--HG--
branch : dev
2019-11-10 01:41:34 -03:00
Martín Lucas Golini
588ce9251a
Fix in editor for Windows.
...
--HG--
branch : dev
2019-11-10 00:45:59 -03:00
Martín Lucas Golini
8917dfebf0
Fixed UIMenu::remove() and UIMenu::removeAll() crashes.
...
Fixed UIImage size bugs.
Minor improvements in UIEditor.
Started implementing the color picker UI.
Fix when closing a Scene::Node when mouse was over that Node.
--HG--
branch : dev
2019-11-09 18:13:24 -03:00
Martín Lucas Golini
33f8a2eebb
Several bug fixes.
...
CSS properties now support real CSS properties names.
--HG--
branch : dev
2019-11-03 03:34:02 -03:00
Martín Lucas Golini
9aa7b4b7d0
Renamed TextureSaver to ScopedTexture.
...
Added System::ThreadPool.
Refactored ResourceLoader.
Removed OjbectLoader and all object type loaders.
Some minor refactors.
--HG--
branch : dev
2019-09-08 02:26:33 -03:00
Martín Lucas Golini
cc5d5a7630
Removed a test printf.
...
--HG--
branch : dev
2019-08-10 15:15:20 -03:00
Martín Lucas Golini
53681be832
Allow custom colors.
...
--HG--
branch : dev
2019-06-26 01:18:21 -03:00
Martín Lucas Golini
f122c1554c
Texture is now a DrawableResource.
...
DrawableResource now can emit events on resource changes, load and unload.
UIImage improvements.
--HG--
branch : dev
2019-06-24 23:42:47 -03:00