Commit Graph
155 Commits
Author SHA1 Message Date
Martín Lucas Golini c408491633 Minor refactor and UISplitter improvements.
Improved dragging.
UITab now supports close button and proper close control (user can deny the close request).
UITabWidget now allows to rearrange the tabs in the tab bar.
2020-06-05 04:52:33 -03:00
Martín Lucas Golini 951d7b2e7e Renamed UITabWidget "TabContainer" to "TabBar".
Added UITabWidget::set/getHideWhenNotNeeded to hide the TabBar if only 1 tab is available.
UIStyle now restricts the animations in the first onStateChange received (sin there's no previous state to animate from).
Added UISplitter::swap.
Critical fix in Node::setParent.
Added Node::findByType.
Fixed Code Editor splitting.
Minor improvements in Code Editor.
2020-06-04 19:00:58 -03:00
Martín Lucas Golini 56f79a6dfd UISplitter WIP. 2020-06-01 05:30:16 -03:00
Martín Lucas Golini 4b2f431630 Minor clean up and fixes. 2020-05-30 23:21:11 -03:00
Martín Lucas Golini e45c813e53 Renamed UIWinMenu to UIMenuBar. 2020-05-30 21:03:25 -03:00
Martín Lucas Golini 3304fb5f31 Improved the SyntaxColorScheme configuration.
Also a minor fix in the breeze theme.
2020-05-28 02:32:47 -03:00
Martín Lucas Golini 16db174e48 API changes:
LayoutSizeRule is now SizePolicy.
LayoutPositionRule is now PositionPolicy.
get/setLayoutSizeRules is now get/setLayoutSizePolicy.
get/setLayoutPositionRule is now get/setLayoutPositionPolicy.
Added Engine::isThreaded().

Minor emscripten fix.
Added emscripten-fs.html, a simple script loader to test the build emscripten demos.
2020-05-02 23:15:47 -03:00
Martín Lucas Golini 0207180e0e Fixes in UITextEdit.
Some minor performance improvements in the PropertyDefinition class.
Breeze theme improvements.
And some other minor changes.
2020-04-29 03:37:05 -03:00
Martín Lucas Golini 21d952c18b min-width, min-height, max-width and max-height fixes.
UITooltip in debug mode fixes.
Improved breeze theme.
2020-04-27 04:45:49 -03:00
Martín Lucas Golini c893e05cde Several fixes. 2020-04-26 04:56:50 -03:00
Martín Lucas Golini 3ff44da4af Minor changes. 2020-04-26 01:04:39 -03:00
Martín Lucas Golini 397d96d7d7 Fixed input hints and input password text alignment. 2020-04-26 00:03:15 -03:00
Martín Lucas Golini f9053c0d61 Several fixes. 2020-04-25 00:31:02 -03:00
Martín Lucas Golini fa20d393cd Several performance improvements.
Added events: Node::onIdChange, UIWidget::onClassChange, UIWidget::onTagChange.
UIItemContainer is now a widget (required for CSS).
Fixes in UIListBox and UITable.
CSS::StyleSheetStyle is now stored as a shared pointer.
Fixes in UICheckBox, UIRadioButton, UISlider, UIScrollBar, UITab, UIWinMenu, and more.
Better debug tooltips (now shows padding and margin).
Fix in UISceneNode::loadLayoutNodes, ensures that the current SceneNode is the one that it's loading.
2020-04-16 05:31:43 -03:00
Martín Lucas Golini 9c457f4f21 Pure CSS themes support improvements.
Improvementes for dp sizes, now are being rounded to the closest int in several locations.
2020-04-14 02:02:08 -03:00
Martín Lucas Golini aa9202e8b7 More work into supporting pure CSS themes.
Fixed a bug where dirty polygons were unreported.
UISceneNodes now are updated forcing the current UISceneNode as the one that it's being updated.
Added "poly" function for background/foreground images.
Added "tab-height" and "window-title" CSS properties.
2020-04-11 05:42:49 -03:00
Martín Lucas Golini e48b77ddfc Several fixes to allow Widgets to work without skins and enable pure CSS themes.
Added String::contains.
Improved Vector2.
Improved Text::findCharacterFromPos.
Improved set minimum widget size.
Improved var() parsing.
2020-04-09 05:20:55 -03:00
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 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 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 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 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 54a88adff5 Minor clean up.
--HG--
branch : dev
2019-11-12 23:07:49 -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 cc5d5a7630 Removed a test printf.
--HG--
branch : dev
2019-08-10 15:15:20 -03:00
Martín Lucas Golini 6e46bf9968 Minor clean up.
--HG--
branch : dev
2019-01-06 14:46:20 -03:00
Martín Lucas Golini c0d69b8446 More clean up.
--HG--
branch : dev-css
2019-01-03 01:57:45 -03:00
Martín Lucas Golini 5f7281e808 More clean up.
--HG--
branch : dev-css
2019-01-01 15:39:18 -03:00
Martín Lucas Golini 4f988a3c3d More clean up and fixes.
--HG--
branch : dev-css
2018-12-31 20:37:05 -03:00
Martín Lucas Golini e6f2cbe155 More fixes.
--HG--
branch : dev-css
2018-12-31 17:19:47 -03:00
Martín Lucas Golini 3962de8e43 More CSS work.
--HG--
branch : dev-css
2018-12-30 03:28:31 -03:00
Martín Lucas Golini 8094b26310 CSS support WIP.
--HG--
branch : dev
2018-12-29 20:27:31 -03:00
Martín Lucas Golini 8206a8e720 Safer glBlitFrameBuffferEXT implementation.
--HG--
branch : dev-stateful-drawable
2018-12-23 13:44:18 -03:00
Martín Lucas Golini 725738091e Added support for combined UI states.
--HG--
branch : dev-stateful-drawable
2018-12-21 22:03:17 -03:00
Martí­n Lucas Golini 3eb6b5c295 Renamed ui states names:
"menter" is now "hover"
"mdown" is now "pressed"

--HG--
branch : dev-stateful-drawable
2018-12-20 00:10:58 -03:00
Martín Lucas Golini 80e04d0d5b Some minor fixes.
--HG--
branch : dev-2.1
2018-01-27 00:44:52 -03:00
Martín Lucas Golini 77637f71fa Moved "src/eepp/helper" folder to "src/thirdparty".
Also some minor fixes.

--HG--
branch : dev-2.1
2017-12-30 14:29:38 -03:00
Martín Lucas Golini 1586230aa0 UITheme now uses Nine Patch images.
Added HDPI theme.

--HG--
branch : dev-ninepatch
2017-08-20 14:13:49 -03:00
Martín Lucas Golini 2f601b85e5 Minor ui assets fix.
--HG--
branch : dev-ninepatch
2017-08-20 13:29:03 -03:00
Martí­n Lucas Golini 10be0ce6ce WIP nine patch.
--HG--
branch : dev-ninepatch
2017-08-19 23:36:32 -03:00
Martí­n Lucas Golini 39eb7e8f01 Some fixes and clean up.
--HG--
branch : dev
2017-02-28 01:27:08 -03:00
Martí­n Lucas Golini 2048415772 Some fixes.
--HG--
branch : dev
2017-02-27 04:14:21 -03:00
Martí­n Lucas Golini 5d2758e8fd Reimplemented UIComboBox.
--HG--
branch : dev
2017-02-26 04:42:16 -03:00
Martí­n Lucas Golini 59d790fbea Texture Atlas now saves the pixel density information of the subtexture.
Created PixelDensity class, moved the PD functions to that class.
Added support for rendering UIThemes with different pixel densities scaled, still WIP.
Added the atlases base textures.

--HG--
branch : dev
2017-02-25 02:36:28 -03:00
Martí­n Lucas Golini 8e514cdac0 Scrollbar improvements.
Minor fixes.

--HG--
branch : dev
2017-02-24 21:07:25 -03:00