Commit Graph

90 Commits

Author SHA1 Message Date
Martín Lucas Golini
c1ba882d31 Some minor improvements in UIApplication.
Minor headers clean up.
Avoid duplicating close message box in ecode.
2024-02-13 21:10:12 -03:00
Martín Lucas Golini
3db37b15b2 ecode: LSP - Added code action support. Fixed issues with rust-analyzer. 2023-02-20 20:02:52 -03:00
Martín Lucas Golini
dd9ff2ca77 Fixed emscripten build.
ecode: AutoCompletion: Improved signature help. LSPClientServer: Implementing codeActions in diagnostics.
2022-11-15 19:40:18 -03:00
Martín Lucas Golini
db57f39ae3 Added support to "cubic-bezier" timing function. 2022-09-08 20:14:07 -03:00
Martín Lucas Golini
e222771afa Minor refactor:
UI::Window: Window::setWinFlags is now Window::setWindowsFlags.
Renderer: Added glVersionFromString, graphicsLibraryVersionToString, getDefaultGraphicsLibraryVersion, getAvailableGraphicsLibraryVersions.
Defined Sizeu.
Context and Window ini configurations are now lowercase.
Display: Added getRefreshRate and getSize.
UICodeEditor: hide color preview when mouse leaves the editor.
ecode:
Added Renderer options (vsync, msaa, max frame rate, renderer version).
Added "bechmark-mode" option, to measure rendering performance.
2022-08-28 01:05:25 -03:00
Martín Lucas Golini
b8547579ff UITerminal improvementes: scrollbar support. 2022-07-08 02:35:03 -03:00
Martín Lucas Golini
d949667eaf FontTrueType: Allow disable emoji fallback.
Vector2: Added round, roundUp, roundDown.
KeyEvent: Now sends also the scancode.
GlyphDrawable force glyph offset to be an integer value.
TerminalDisplay: Allow emoji fonts. Fixed minor bugs. Added events callback.
TerminalEmulator: Added clearHistory.
eterm: Implemented title updates.
2022-06-27 02:05:26 -03:00
Martín Lucas Golini
919b9145d7 Restored old DejaVuSansMono font, and now added a separated DejaVuSansMono font with the Nerd Font version.
Added Math::roundDown.
TerminalEmulator: Fixed some memory leaks.
TerminalDisplay: Fixed some minor bugs. Added font grow/shink shortcut.
2022-06-26 14:54:29 -03:00
Martín Lucas Golini
a0d2f73864 ecode code refactor. 2021-01-04 01:46:48 -03:00
Martín Lucas Golini
a33b233359 UIFileDialog: allow opening a folder when no folder is selected.
UIListBoxItem: Don't focus on setSelected.
UIDropDownList: UIListBox now is shown at the top of the drop down if doesn't fit below.
UICodeEditor: Added shift+insert shortcut to paste the clipboard text.
Node: Added Node::clearEventListener.
ecode: Added global search history.
2020-10-11 01:23:09 -03:00
Martín Lucas Golini
2c9e58763b Fixed FileInfo::isHidden.
clang formated files.
2020-08-18 01:24:49 -03:00
Martín Lucas Golini
c5b0f0d845 Code Editor now saves the configuration and allows to configure most relevant stuff from the menus. 2020-06-24 22:37:46 -03:00
Martín Lucas Golini
d50861625e Added Graphics::GlyphDrawable.
Some minor refactor in Graphics::Texture.
2020-06-18 19:56:54 -03:00
Martín Lucas Golini
4f6e73b0a5 UITextEdit now extends from UICodeEditor.
Added support for horizontal scrollbar on UICodeEditor and by extension UITextEdit.
Renamed String::toStr to String::toString.
2020-06-16 04:26:46 -03:00
Martín Lucas Golini
67b163d515 More fixes and improvements to the UICodeEditor. Added optional display of line numbers. 2020-05-22 17:25:24 -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
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
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
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
7b6a3d2f66 Some minor fixes. 2020-01-14 05:13:43 -03:00
Martín Lucas Golini
f60d4c183e clang-formated all project source files.
Improved documentation.

--HG--
branch : dev
2020-01-10 04:39:46 -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
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
182b83feb8 Minor clean up.
--HG--
branch : dev
2019-11-24 15:17:14 -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
Martín Lucas Golini
dd9d2021f2 Windows fixes and some changes in the premake projects.
--HG--
branch : dev
2019-06-19 03:15:47 -03:00
Martín Lucas Golini
59e2ca8038 CSS Improvements and tests.
--HG--
branch : dev-css
2019-05-20 00:19:44 -03:00
Martín Lucas Golini
af033b2fd0 Minor improvements on http requests and minor bug fix.
--HG--
branch : dev
2019-04-27 22:56:45 -03:00
Martín Lucas Golini
7839a95f77 Node::getRealSize is now Node::getPixelsSize.
Node::writeCtrlFlag is now Node::writeNodeFlag.
Const correctness in some Scene and UI classes.

--HG--
branch : dev
2019-01-13 16:00:04 -03:00
Martín Lucas Golini
d9c2a4ec0a CSS Transitions WIP.
--HG--
branch : dev
2019-01-06 20:22:28 -03:00
Martín Lucas Golini
a3aeead861 Implemented padding for UIScrollBar, UISlider and UIWindow.
--HG--
branch : dev-widget-padding
2018-12-16 04:45:52 -03:00
Martín Lucas Golini
b7908851b0 UIWidget padding support WIP.
--HG--
branch : dev-widget-padding
2018-12-09 04:59:50 -03:00
Martín Lucas Golini
1250eb967b Replacement of PlusCallback in favor of std::functional ( just for lambdas ).
--HG--
branch : dev-functional
2018-07-17 10:31:34 -03:00
Martín Lucas Golini
9d820da6ee Fixes.
--HG--
branch : dev-scenenode
2018-02-16 02:01:07 -03:00
Martín Lucas Golini
64379c9211 UINode::setSize is float ( and a lot of related fields too ).
--HG--
branch : dev-2.1-float
2018-01-30 02:19:42 -03:00
Martí­n Lucas Golini
bfa8075876 Removed mRealPos from UINode, now uses mPosition from Transformable.
--HG--
branch : dev-2.1-float
2018-01-29 17:21:21 -03:00
Martín Lucas Golini
b9d84b447a More changes.
--HG--
branch : dev-2.1-float
2018-01-29 12:44:25 -03:00
Martí­n Lucas Golini
b1947d6d0b Minor refactor.
Added Math::Transformable.

--HG--
branch : dev-2.1
2018-01-14 19:59:37 -03:00
Martín Lucas Golini
20a07c86f3 Cache UINode polygon and screen position.
Renamed all UI_CTRL_FLAG_* to NODE_FLAG_*.
Several minor fixes.

--HG--
branch : dev-2.1
2018-01-14 03:51:08 -03:00
Martí­n Lucas Golini
a89b0a78bd Added Actions: Dealy, Sequence, Spawn.
Fixed several minor bugs in Actions.

--HG--
branch : dev-2.1
2018-01-13 19:29:59 -03:00
Martín Lucas Golini
c5c97c0ff7 Small fix.
--HG--
branch : dev-2.1
2018-01-13 02:28:31 -03:00
Martín Lucas Golini
c470008104 Better views and viewport in ratio instead of pixels.
--HG--
branch : dev-2.1
2018-01-11 03:09:49 -03:00
Martín Lucas Golini
dcc905c4f8 Minor changes.
Interpolation setTotalTime now is setDuration.

--HG--
branch : dev
2017-12-30 00:31:14 -03:00
Martín Lucas Golini
3303defc5f Refactorized Interpolation1d and Interpolation2d.
--HG--
branch : dev
2017-12-24 03:50:43 -03:00
Martín Lucas Golini
cad843f58d Some minor fixes.
--HG--
branch : dev
2017-06-10 04:20:18 -03:00
Martín Lucas Golini
3b891043d8 Implemented ConvexShapeDrawable.
Refactored Polygon2.
Fixed Outline color not being updated in Text.

--HG--
branch : dev
2017-04-16 17:22:35 -03:00
Martín Lucas Golini
9cf73262f4 Changed Recti as Rect.
Removed eeAABB in favor of Rectf.
Implemented UIScrollView XML load.

--HG--
branch : dev
2017-04-16 15:28:36 -03:00
Martí­n Lucas Golini
68854a0abc Added UIScrollView.
ClippingMask fix for negative values.
UIImage src fixed.
Some other minor fixes.

--HG--
branch : dev
2017-04-13 04:00:47 -03:00
Martí­n Lucas Golini
58ca5b82ca UIMenuSubMenu and UIMenuCheckbox don't rely on UISkin::getSubTexture anymore.
--HG--
branch : dev
2017-03-18 00:38:37 -03:00