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
d07ac2a78a
Minor fixes.
...
--HG--
branch : dev
2019-12-15 22:00:05 -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
59f8e44cfb
More enum refactor.
...
--HG--
branch : dev
2019-12-15 17:32:25 -03:00
Martín Lucas Golini
6b13111d19
General enums refactor. This will break the API for several things.
...
The idea is that this enums should never be used by code from now on, and
always use the XML+CSS features.
--HG--
branch : dev
2019-12-15 17:21:39 -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
9c9d3edddf
Minor clean up.
...
--HG--
branch : dev
2019-12-13 01:31:02 -03:00
Martín Lucas Golini
c7f9ed0383
Vector2 PropertyIds fixes.
...
--HG--
branch : dev
2019-12-12 21:15:34 -03:00
Martín Lucas Golini
3735bf8aa0
Added CSS custom properties (variables) support ( https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties ).
...
Added Node::getParentWidget().
clang-format'ed SceneNode and UISceneNode (no functional changes).
--HG--
branch : dev
2019-12-12 17:30:16 -03:00
Martín Lucas Golini
8d0f2bb366
Minor change.
...
--HG--
branch : dev
2019-12-12 03:56:53 -03:00
Martín Lucas Golini
a856357047
Fixed Action::removeEventListener.
...
--HG--
branch : dev
2019-12-12 03:13:06 -03:00
Martín Lucas Golini
35a9006b4c
Fixed Node::removeEventListener.
...
Fixed UIWidget CSS setBorderWidth.
Fixed a bug in the UIEditor.
--HG--
branch : dev
2019-12-12 03:10:20 -03:00
Martín Lucas Golini
bdbae585c9
UITextInput hint support.
...
--HG--
branch : dev
2019-12-12 01:58:14 -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
90f6f4bdc3
Removed UIThemeManager as a single instance manager, now each UISceneNode owns and
...
instances a UIThemeManager, this allows to use different settings for each UISceneNode
(useful for the UIEditor for example).
Fixed word-wrap CSS property.
Added UINode::getUISceneNode().
UIEditor now takes argument parameters.
Also some minor fixes for controls without a default theme.
--HG--
branch : dev
2019-12-09 17:30:55 -03:00
Martín Lucas Golini
4c4e329c8f
UINode::setSkin now can be NULL.
...
Added tag to RadioButton::active, RadioButton::inactive, DropDownList::ListBox::item.
--HG--
branch : dev
2019-12-08 22:08:07 -03:00
Martín Lucas Golini
2ac0b8b843
More fixes.
...
--HG--
branch : dev
2019-12-08 14:01:46 -03:00
Martín Lucas Golini
20a6c8ea37
Minor fixes.
...
--HG--
branch : dev
2019-12-08 13:49:13 -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
e17c866da8
Merge with dev-css-refactor
...
--HG--
branch : dev
2019-12-02 02:45:35 -03:00
Martín Lucas Golini
9ec6c065ab
(back/fore)ground-position and (back/fore)ground-size support for transitions (still WIP).
...
--HG--
branch : dev-css-refactor
2019-12-02 02:44:49 -03:00
Martín Lucas Golini
4947afdc2c
VS fixes.
...
--HG--
branch : dev-css-refactor
2019-11-30 22:22:23 -03:00
Martín Lucas Golini
7e29bcbe88
NinePatch fix.
...
--HG--
branch : dev
2019-11-30 18:43:14 -03:00
Martín Lucas Golini
02fe48f331
NinePatch fix.
...
--HG--
branch : dev-css-refactor
2019-11-30 18:43:14 -03:00
Martín Lucas Golini
1f92011748
More implementations of getPropertyString.
...
--HG--
branch : dev-css-refactor
2019-11-30 17:18:57 -03:00
Martín Lucas Golini
378eedb09f
Implementing getPropertyString on widgets.
...
--HG--
branch : dev-css-refactor
2019-11-30 15:42:45 -03:00
Martín Lucas Golini
249cb21282
applyProperty clean up.
...
--HG--
branch : dev-css-refactor
2019-11-30 14:00:08 -03:00
Martín Lucas Golini
6aaa598c15
Transition fixes.
...
--HG--
branch : dev-css-refactor
2019-11-30 13:55:26 -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
44eb8cdf8d
Transitions WIP.
...
--HG--
branch : dev-css-refactor
2019-11-29 23:33:22 -03:00
Martín Lucas Golini
9ba1caba65
More WIP.
...
--HG--
branch : dev-css-refactor
2019-11-29 18:09:44 -03:00
Martín Lucas Golini
5148e007e1
Property type definition.
...
Added UIWidget::getPropertyString().
--HG--
branch : dev-css-refactor
2019-11-29 16:18:48 -03:00
Martín Lucas Golini
57b212c81e
Added a couple of shorthands definitions.
...
--HG--
branch : dev-css-refactor
2019-11-29 02:28:01 -03:00
Martín Lucas Golini
2e19736e97
UIImage size fix.
...
--HG--
branch : dev
2019-11-29 01:50:49 -03:00
Martín Lucas Golini
f015284f86
UIImage size fix.
...
--HG--
branch : dev-css-refactor
2019-11-29 01:50:49 -03:00
Martín Lucas Golini
641f30cf14
CSS Properties aliases fixes.
...
--HG--
branch : dev-css-refactor
2019-11-29 01:35:15 -03:00
Martín Lucas Golini
15c03441c7
More WIP.
...
--HG--
branch : dev-css-refactor
2019-11-29 01:22:38 -03:00
Martín Lucas Golini
f20f4beba4
More progress.
...
--HG--
branch : dev-css-refactor
2019-11-28 21:32:56 -03:00
Martín Lucas Golini
ad08beb76f
Experimental refactor in progress.
...
--HG--
branch : dev-css-refactor
2019-11-28 01:22:15 -03:00
Martín Lucas Golini
e240cc7586
Updated clang-format.
...
--HG--
branch : dev
2019-11-27 03:15:31 -03:00
Martín Lucas Golini
f7119463f1
Some minor refactor for the CSS transitions. Starting new transition system.
...
--HG--
branch : dev
2019-11-27 01:39:33 -03:00
Martín Lucas Golini
c22194c554
Minor changes.
...
--HG--
branch : dev
2019-11-26 23:22:56 -03:00
Martín Lucas Golini
246fa4bf80
Removed and repleaced all Nodes delete without a previous close() call. This fixes a possible crash on UIListBox, UITable and UITabWidget.
...
Fixed UIWindow frame buffer pixel density.
Allow "text-decoration" CSS property.
Fixed a crash on the TextureAtlasEditor.
Added Action::getCurrentProgress().
--HG--
branch : dev
2019-11-26 04:21:41 -03:00
Martín Lucas Golini
634ea7f3cb
Fixed frambuffer size.
...
--HG--
branch : dev
2019-11-24 22:12:19 -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
068864f9c0
Foreground now renders after childs.
...
Added foreground-size support.
--HG--
branch : dev
2019-11-23 15:10:35 -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
36fae19cdb
Replaced some mDpSize for getSize().
...
Implementing CSS::StyleSheetLength.
--HG--
branch : dev
2019-11-22 16:18:57 -03:00
Martín Lucas Golini
0662e36231
Nit.
...
--HG--
branch : dev
2019-11-22 02:18:09 -03:00
Martín Lucas Golini
8e70ee1a34
Reverted last change.
...
--HG--
branch : dev
2019-11-22 01:05:02 -03:00
Martín Lucas Golini
99521c6807
Added .gitmodules.
...
--HG--
branch : dev
2019-11-22 00:51:48 -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
8cf77ffd2b
Minor fix.
...
--HG--
branch : dev
2019-11-21 00:43:44 -03:00
Martín Lucas Golini
055d9ac4e6
UINodeDrawable bug fix.
...
--HG--
branch : dev
2019-11-18 12:15:33 -03:00
Martín Lucas Golini
841fe68684
Added UIWidget::removeClasses().
...
--HG--
branch : dev
2019-11-15 12:29:50 -03:00
Martín Lucas Golini
c84d528ae4
Added String::replaceAll() and String::replace() for String type.
...
Added Action::on().
--HG--
branch : dev
2019-11-14 16:15:09 -03:00
Martín Lucas Golini
fce51fc4d1
Allow - as separator for some CSS properties.
...
--HG--
branch : dev
2019-11-13 21:35:00 -03:00
Martín Lucas Golini
18b1a27f49
Border radius fix.
...
--HG--
branch : dev
2019-11-13 21:21:40 -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
ae6fda1faf
UIWindow modal mode fixes.
...
UIColor picker improvements.
--HG--
branch : dev
2019-11-11 02:53:01 -03:00
Martín Lucas Golini
87c80a0872
Fixed UISlider (again).
...
UIImage now can own Drawables.
UIColorPicker improvements.
Removed UISliderButton (not used anymore).
--HG--
branch : dev
2019-11-11 00:51:24 -03:00
Martín Lucas Golini
cb14426b6d
Fixed a bug in UISlider.
...
--HG--
branch : dev
2019-11-10 23:30:10 -03:00
Martín Lucas Golini
b0d767c992
Added String::endsWith().
...
Added support for "!important" in CSS properties.
--HG--
branch : dev
2019-11-10 21:58:12 -03:00
Martín Lucas Golini
78696fc004
Added UIWidget::querySelector() and UIWidget::querySelectorAll().
...
--HG--
branch : dev
2019-11-10 21:12:15 -03:00
Martín Lucas Golini
8b437876b0
UIColorPicker implemented.
...
--HG--
branch : dev
2019-11-10 19:21:30 -03:00
Martín Lucas Golini
d65ecdf63b
Color Picker more progress.
...
UIWindow invalidation fix.
UIWidget new functions: findByClass(), findByTag(), findAllByClass(), findAllByTag().
--HG--
branch : dev
2019-11-10 16:18:40 -03:00
Martín Lucas Golini
58eda1da03
Color Picker WIP.
...
--HG--
branch : dev
2019-11-10 04:14:33 -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
652521961a
Updated efsw.
...
--HG--
branch : dev
2019-11-10 01:16:27 -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
c2a82455d8
UIEditor: Remember loaded layout files.
...
--HG--
branch : dev
2019-11-09 23:14:34 -03:00
Martín Lucas Golini
da74085a06
Fixed Color::toHsv(), Color::fromHsv(), Color::toHsl().
...
Added to Colors::fromString(): rgb(), rgba(), hsl(), hsla(), hsv(), hsva().
--HG--
branch : dev
2019-11-09 21:51:09 -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
478a9ef20b
Crash fix.
...
--HG--
branch : dev
2019-11-09 15:43:28 -03:00
Martín Lucas Golini
c750000a10
Support CSS property "url" function.
...
Added "foreground-image" CSS property.
--HG--
branch : dev
2019-11-08 22:22:47 -03:00
Martín Lucas Golini
45f4337308
GL3CP clipping fix (is this a driver bug?).
...
--HG--
branch : dev
2019-11-08 20:19:37 -03:00
Martín Lucas Golini
5ba55c5432
Minor fix on UIDropDownList.
...
--HG--
branch : dev
2019-11-08 12:51:43 -03:00
Martín Lucas Golini
94a1328690
Minor bug fix.
...
--HG--
branch : dev
2019-11-08 03:13:00 -03:00
Martín Lucas Golini
203bf674d5
UITextEdit scroll fix.
...
--HG--
branch : dev
2019-11-08 02:57:26 -03:00
Martín Lucas Golini
bb2a782f25
Minor clean up.
...
--HG--
branch : dev
2019-11-08 01:36:35 -03:00
Martín Lucas Golini
c1d586eaf9
Reworking input implementation (might have some bugs).
...
Minor bug fixes.
--HG--
branch : dev
2019-11-07 17:34:44 -03:00
Martín Lucas Golini
46a62c6fdb
More clean up.
...
--HG--
branch : dev
2019-11-05 01:35:02 -03:00
Martín Lucas Golini
0b883ede96
Clean up code.
...
--HG--
branch : dev
2019-11-04 22:18:52 -03:00
Martín Lucas Golini
ffcf72deaf
Minor fixes.
...
--HG--
branch : dev
2019-11-04 19:55:25 -03:00
Martín Lucas Golini
f38e7437f1
UILoader fix.
...
--HG--
branch : dev
2019-11-04 19:16:47 -03:00
Martín Lucas Golini
35a7aa6641
Crash fix.
...
--HG--
branch : dev
2019-11-04 18:29:30 -03:00
Martín Lucas Golini
7219454355
Fix android build.
...
--HG--
branch : dev
2019-11-04 17:56:19 -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
99b867cc79
A couple of fixes.
...
--HG--
branch : dev
2019-11-01 19:05:49 -03:00
Martín Lucas Golini
727a356e9b
Minor fix in http_request.
...
--HG--
branch : dev
2019-10-20 23:32:46 -03:00
Martín Lucas Golini
0322d13206
Fixed Window::isMaximized.
...
http_request without parameters now prints --help.
--HG--
branch : dev
2019-10-18 18:07:15 -03:00
Martín Lucas Golini
bb30c62fab
Removed support for SFML2 module (mantaining this backend does not make any sense at this point).
...
Removed custom Platform implementations for windows and cursor control (control is taken by the SDL2 backend).
And some clean up.
--HG--
branch : dev
2019-10-06 02:49:41 -03:00