Commit Graph

332 Commits

Author SHA1 Message Date
Robert Jelic
de4997dd87 Forgot to remove log spam
Forgot to remove log spam
2022-09-29 17:37:07 +02:00
Robert Jelic
40650d16c1 Small Changes
- Fixed a bug in basalt.setMouseDragThrottle
- Added some new curves for animation (anim:setMode("curveyouwant")
- Small fix for checkbox -> mouse_up
- Fix for Input (if type is number and you use . or - it gets ignored)
2022-09-29 17:34:53 +02:00
Robert Jelic
ba29ceb3eb Graphic Object update
Reworked the graphic object
The goal is to create a object people can use for drawing stuff while the program is running. It has to be done programatically
- Added bimg lib (simple one) to make it easier for me to work with bimg
- Small bugfix when using mouseclick/mouseup events
2022-09-25 16:59:37 +02:00
Robert Jelic
58c92277bd Small onError/onDone event fix 2022-09-24 16:13:31 +02:00
Robert Jelic
1f299153d0 Bugfix
- Focus fix for programs
- package.path for Program object fix
2022-09-23 19:22:10 +02:00
Robert Jelic
39a238c3c0 forgot to remove log spam 2022-09-23 18:30:40 +02:00
Robert Jelic
9de0485538 Program update
- Added onError and onDone events
- Added enviroments (you can add a env into the enviroment, but you will have to setup the enviroment before executing the program)
2022-09-23 18:15:28 +02:00
Robert Jelic
6907a44781 Small fix
very small fix
2022-09-21 22:40:28 +02:00
Robert Jelic
f228db33f2 Bimg
- added some basic bimg support
- added basaltdraw.blit (and frame.blit for internal use)
2022-09-21 22:07:33 +02:00
Robert Jelic
45c430867f Very small fixes
- Visual border fix
- Fix with :setSize (if you are creating a dynamic value and after that you just want to add a number to it, it would crash)
2022-09-19 21:04:26 +02:00
Robert Jelic
a6c47ce61a border update
Final border update (hopefully), now the border is inside the object, which means other objects can be above the border
2022-09-15 20:07:31 +02:00
Robert Jelic
96bc472b0d -Added drag throttle
Drag events is now skipping some update calls, now i should work much better
Also added basalt.setDragThrottle(number)
2022-09-14 06:43:24 +02:00
Robert Jelic
f76ead42ce Mouse_move + shrink fix
- Added mouse_move support (still not fully done but should work)
- fixed :shrink bug ignoring object size
2022-09-13 21:55:22 +02:00
Robert Jelic
4857753c08 1.6.0@Dev
1.6.0 Version on dev branch
2022-08-25 22:21:16 +02:00
Robert Jelic
e150737d32 very small bugfixes
- basalt_resize and basalt_reposition events fix
- Animations now automatically cancel other animations on same object
- some smaller fixxes
2022-08-23 22:56:51 +02:00
Robert Jelic
6bd1f6d49d Fixes
- fixed a bug where program still listens to other events (even the program is using a filter for pullEvent)
- fixed a focus bug, now if a program is focused and you terminate, the program will be terminated instead of basalt)
2022-08-20 23:38:33 +02:00
Robert Jelic
535dddb41d some fixes
- added logsystem (basalt.log(text))
- changed programs: using now shell.execute instead of os.run
- added basalt.logging boolean which turns on the logsystem (currently only logs errors, will add more in the near future)
- fixed a bug with setTransparent
- changed the default background color of sliders and labels to false
2022-08-20 21:26:43 +02:00
Robert Jelic
d6a4c06363 Monitor/Mirror fixes
- Fixed monitor events
- Monitor's now automatically resize
- Fixed mirror events
- Fixed input's cursor position if height is bigger than 1
2022-08-18 23:45:22 +02:00
Robert Jelic
97df49d7c2 smaller changes
- fixed setTheme
- changed drag event (it does not have to be inside the parent frame anymore
- added a bg symbol feature to setBackground - obj:setBackground(bgcolor, bgsymbol, bgsymbolcolor)
2022-08-17 22:55:25 +02:00
Robert Jelic
948b1dac96 Drawsystem update
- changed the draw system to only draw when something really changes
- added stopUpdate
- changed focusSystem a bit
2022-08-15 01:07:35 +02:00
Robert Jelic
373bbdc490 some finishing moves for the new event system
- focus order bug fixed
- added a new parameter for onChange() (its the value you would get with :getValue()
- small fix with drag events
- added paste events to textfields and input
- added a mouse event to input's (now you can change the text x position with mouse, like you can do in textfields
2022-08-12 23:24:27 +02:00
Robert Jelic
f863b986c2 fixes and changes
- added other events (now animations/threads/timers should work like intended)
- fixed a bug with auto resize (especially for craftos pc)
- removed importantScroll (i really disliked this, but now its just not necessary anymore)
- removed setMaxScroll and setMinScroll, now it's only 1 method called :setScrollAmount()
- if you make a frame scrollable (:setScrollable()) the frame will calculate the allowed scroll amount by it's childrens object's position+height unless you are using :setScrollAmount()
2022-08-12 12:06:33 +02:00
Robert Jelic
6dcd4c2427 changed eventHandler
- the event handler is now only listening to necessary events, which makes the overall event loop much smaller and makes other stuff also possible
- base frame is now auto. resizing
- setMoveable -> setMovable

Note: There may be some (ofc expected) bugs..
2022-08-12 01:52:06 +02:00
Robert Jelic
5f76a059cc Small improvements
- added term_resize event for craft os pc
- added auto resize on baseframe until you use :setSize()
- added auto max. scrollheight (it will be automatically calculated based on the frames children positions) you can cancel that when using :setMaxScroll()
2022-07-30 19:02:14 +02:00
Robert Jelic
a19cddfc37 Update basaltPackager.lua 2022-07-29 23:03:50 +02:00
Robert Jelic
00f3267901 update
updated dev branch to master changes
added bugfix for basalt.update
2022-07-29 00:56:32 +02:00
Robert Jelic
4782360bb6 bugfixes
-fixed bug where dynamicvalue table increases which makes the program very laggy
- improved focuslose/focusget events
2022-07-24 23:16:04 +02:00
Robert Jelic
ae8c9dd64b test 2022-07-24 19:51:14 +02:00
Robert Jelic
09e640d845 Update Object.lua 2022-07-24 19:38:53 +02:00
Robert Jelic
25baa2fc22 Update Frame.lua 2022-07-24 19:27:41 +02:00
Robert Jelic
738ad2576e bugfix
- some offset bugfixes
- reworked dynamic values - % got removed for now, now you are able to use parent.w*0.8 instead of 80% - but you are also able to use objectid.x/y/w/h
2022-07-23 21:57:34 +02:00
Robert Jelic
ea36b124be Merge branch 'master' of https://github.com/Pyroxenium/Basalt 2022-07-18 16:46:01 +02:00
Robert Jelic
9d10e95fae docs 2022-07-18 16:45:59 +02:00
Robert Jelic
dbfa91dc28 Update Basalt.md 2022-07-18 14:16:29 +02:00
Robert Jelic
6ab840cb1c Update Basalt.md 2022-07-18 14:11:37 +02:00
Robert Jelic
8157c025ea docs again 2022-07-18 13:58:43 +02:00
Robert Jelic
af34fa1a18 docs 2022-07-17 23:17:28 +02:00
Robert Jelic
dfc53658f1 Merge branch 'master' of https://github.com/Pyroxenium/Basalt 2022-07-17 22:39:13 +02:00
Robert Jelic
01412b4c55 docs 2022-07-17 22:37:32 +02:00
Robert Jelic
3107a7adb8 Update Frame.md 2022-07-17 20:24:09 +02:00
Robert Jelic
3819c14c08 Update README.md 2022-07-17 19:33:13 +02:00
Robert Jelic
8242f7868d Delete geometric.lua 2022-07-17 19:25:17 +02:00
Robert Jelic
f6cdd02270 Delete Lerp.lua 2022-07-17 19:24:58 +02:00
Robert Jelic
4d66e2778f Merge branch 'master' of https://github.com/Pyroxenium/Basalt 2022-07-17 19:20:06 +02:00
Robert Jelic
b940ef7154 added new features
-remade animation
-added xml support
-finished dynamic values
-added new object: graphic
-added themes for frames
-textfield got some basic improvements to create coding editors
2022-07-17 19:20:02 +02:00
Robert Jelic
3e89e73c64 Update Basalt.md 2022-07-12 22:33:53 +02:00
Robert Jelic
fca756888c Update Basalt.md 2022-07-12 22:30:29 +02:00
Robert Jelic
3b33bb7009 small path fix 2022-07-10 19:18:58 +02:00
Robert Jelic
e98c552fa1 Update Basalt.md 2022-07-09 06:35:30 +02:00
Robert Jelic
21b261332d Update Basalt.md 2022-07-08 22:33:37 +02:00