Commit Graph

58 Commits

Author SHA1 Message Date
Robert Jelic
47354f64ee Add easing functions and custom animation support to animation plugin 2025-11-05 14:14:30 +01:00
Robert Jelic
71d23ee9a2 - Updated theme plugin to support changing themes on runtime
- Added 4 themes
- Added Cache System for States
2025-11-05 13:56:19 +01:00
Robert Jelic
cf082af210 - Fixed reactive not using getResolved
- Fixed responsive using default value instead of lower priority state value
2025-11-05 01:36:52 +01:00
Robert Jelic
2ca7ad1e4c - Added comprehensive state management with conditional states, priority-based resolution, and property overrides
- Added responsive.lua with fluent builder API (:when()/:apply()/:otherwise()) for creating responsive layouts that react to parent size or custom conditions
- All elements now use getResolved() to check active states, enabling multiple responsive rules to coexist
2025-11-04 22:40:37 +01:00
Robert Jelic
b4c987d2bd Changed default core-requirement for tons of elements and plugins 2025-11-04 10:01:09 +01:00
Robert Jelic
dc51a73749 Fixed a bug in reactive not calling the observers
Fixed a layout issue (not updating properly)
added the flow layout
2025-11-02 18:36:55 +01:00
Robert Jelic
c2621bbafa XML added attribute version for states 2025-10-30 08:14:06 +01:00
Robert Jelic
9dbdc82167 Reactive State Fix 2025-10-30 07:32:46 +01:00
Robert Jelic
41bd5bdf04 - Added DropDown Scrollbar
- Added List Scrollbar
- Added Statemanagementsystem for XML
2025-10-29 09:10:23 +01:00
Robert Jelic
b96875a3e9 - Added a new system to dynamically require source from multiple locations (including web)
- Added the Collection Element and moved parts of the List logic to collection
- Added a State Management System
- Added a better system to change the position/size of elements
- Removed the state plugin
2025-10-27 08:25:58 +01:00
Robert Jelic
e461476b6a Potential reactive parent is nil fix 2025-09-30 19:22:49 +02:00
Robert Jelic
f10413dddb Added basalt.onEvent(event, callback)
Added basalt.removeEvent(eventcallback)
basalt.triggerEvent(event, ...)

Fixed a event is nil error in Container.lua
2025-09-02 12:24:30 +02:00
Robert Jelic
d2d5f8c3ae Added marquee animation 2025-08-25 14:14:49 +02:00
Robert Jelic
84556d0688 Merge branch 'main' of https://github.com/Pyroxenium/Basalt2 2025-08-25 13:54:13 +02:00
Robert Jelic
ec2a41e390 Animation ScrollText fix 2025-08-25 13:54:10 +02:00
mallowwww
a3a50c769d Fix crash when node has no value 2025-08-14 23:48:08 -05:00
Robert Jelic
15a9995eec IsInBounds Fix 2025-07-17 11:12:35 +02:00
Robert Jelic
06799e0daa Small xml fix 2025-06-20 14:25:32 +02:00
Robert Jelic
e4860bebfb fixed animation skipping one anim when looping 2025-05-12 23:10:02 +02:00
Robert Jelic
14548d9632 (hopefully) fixed reactive decimals bug 2025-05-09 03:29:43 +02:00
Robert Jelic
b042f1bba1 - Added floor, ceil and abs to reactive env
- Changed BasaltProgram env (not finished)
- Fixed program not setting running to false once coroutine is dead
2025-04-23 20:39:35 +02:00
Robert Jelic
d36c7e7867 - Added Timer
- Fixed BaseElement Visual request issues
- Added number animation
- Added entries animation
2025-04-20 10:27:48 +02:00
Robert Jelic
c00409e8d5 Another small change for states 2025-04-16 05:08:20 +02:00
Robert Jelic
6ff71fffb6 State fix 2025-04-16 05:02:58 +02:00
Robert Jelic
b91031afbc Fixed animation
Fixed eventsystem not registering its parent events
2025-04-14 02:39:54 +02:00
Robert Jelic
4c44a62811 States bugfix 2025-04-12 18:35:21 +02:00
Robert Jelic
dae70caa59 small fix for canvas plugin 2025-04-11 14:05:33 +02:00
Robert Jelic
90b4928e6f Fixed Input not sending events
Fixed :destroy sending unnecessary errors
Other small fixes
2025-04-08 09:59:40 +02:00
Robert Jelic
4b4b2e3ca7 Added init fix and small markdown changes 2025-04-08 01:30:18 +02:00
Robert Jelic
72e58c99c1 Fix in theme.lua 2025-04-07 05:01:03 +02:00
Robert Jelic
1e3914739d applyTheme for containers to apply to children 2025-04-06 19:31:24 +02:00
Robert Jelic
371dd8cec0 Theme fix + main changes 2025-04-06 19:27:10 +02:00
Robert Jelic
0a597e63f1 Small coroutine fix 2025-04-06 06:51:43 +02:00
Robert Jelic
b2500117b8 Debug fixes 2025-03-31 08:03:54 +02:00
Robert Jelic
8361e5f9c2 Small fix for canvas:clear() 2025-03-31 03:35:18 +02:00
Robert Jelic
d27760adc2 Canvas test 2025-03-31 03:28:16 +02:00
Robert Jelic
c341eea972 - Fixed createFrame bug
- Added custom XML/Attributes
2025-03-29 03:47:01 +01:00
Robert Jelic
8c0a4017ba Changed state plugin
- Moved state-storing to baseframe
- Fixed :computed
- Fixed a bug with storing states to same file
- Added :bind to bind properties with states
2025-03-20 01:49:17 +01:00
Robert Jelic
9664c75830 Added resize to animation 2025-03-18 02:50:15 +01:00
Robert Jelic
d8d3e6b555 Another small fix 2025-03-18 02:06:02 +01:00
Robert Jelic
2dc08bc3a3 Markdown changes 2025-03-18 01:51:37 +01:00
Robert Jelic
f14e0ce204 Finished(?) annotation parsing
Small fixes for the parser
2025-03-14 03:46:54 +01:00
Robert Jelic
641c767e50 Fixed xml scope access 2025-03-12 00:41:50 +01:00
Robert Jelic
be2077385e Fixed 2 minor bugs 2025-03-06 14:16:45 +01:00
Robert Jelic
1aa0ff62a1 Children Container fix 2025-03-05 09:12:22 +01:00
Robert Jelic
78a42954c0 Reworked XML #2 2025-03-05 01:25:49 +01:00
Robert Jelic
29bd742fe9 XML - Hotfix for colors 2025-03-03 23:44:29 +01:00
Robert Jelic
bfad03cf08 Added scrollableFrame example
Fixed Cursor Bug
Reworked XML
2025-03-03 23:36:42 +01:00
Robert Jelic
34bf53e66c Small and quick fixes:
- setTheme, getTheme and loadTheme changed the wrong reference
- XML changed number properties to be usable with reactive values
2025-02-25 09:09:32 +01:00
Robert Jelic
e65e6510e0 Separated protected functions from public functions 2025-02-24 23:13:28 +01:00