lexgui 0.1.37 → 0.1.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -6
- package/build/components/audio.js +2 -7
- package/build/components/timeline.js +143 -87
- package/build/lexgui.css +34 -0
- package/build/lexgui.js +733 -221
- package/build/lexgui.module.js +701 -263
- package/changelog.md +21 -1
- package/demo.js +7 -2
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# lexgui.js changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.40 (dev)
|
|
4
|
+
|
|
5
|
+
## 0.1.39 (master)
|
|
6
|
+
|
|
7
|
+
New widget: Pad. Bidimensional slider.
|
|
8
|
+
`LX.makeDraggable` now supports 'absolute' and 'fixed' positions.
|
|
9
|
+
Fix passing onDragStart/onMove functions to Dialogs.
|
|
10
|
+
Minor bug fixes.
|
|
11
|
+
|
|
12
|
+
## 0.1.38
|
|
13
|
+
|
|
14
|
+
Timeline: Fixed timeline signals and added callbacks
|
|
15
|
+
|
|
16
|
+
Number/Vector widgets:
|
|
17
|
+
- Support for onPress&onRelease for catching mouse events.
|
|
18
|
+
- Added `setLimits` for min, max, step parameters.
|
|
19
|
+
|
|
20
|
+
Added Size Widget (N dimension number widget).
|
|
21
|
+
Minor bug fixes.
|
|
22
|
+
|
|
3
23
|
## 0.1.37
|
|
4
24
|
|
|
5
25
|
Audio:
|
|
@@ -14,7 +34,7 @@ Fixed Number/Vector precision.
|
|
|
14
34
|
Fixed ContextMenu position on creation over window size.
|
|
15
35
|
Minor bug fixes.
|
|
16
36
|
|
|
17
|
-
## 0.1.36
|
|
37
|
+
## 0.1.36
|
|
18
38
|
|
|
19
39
|
Default skipCallback as `true` on emit widget signal.
|
|
20
40
|
Add some vec2 math functions.
|
package/demo.js
CHANGED
|
@@ -478,14 +478,18 @@ function fillPanel( panel ) {
|
|
|
478
478
|
panel.branch("Preferences", {icon: "fa-solid fa-gear"});
|
|
479
479
|
panel.addButton(null, "Click me, Im Full Width...");
|
|
480
480
|
panel.addText("Text", "Warning text", null, { warning: true });
|
|
481
|
-
panel.addKnob("A Knob", 4, 0, 200, value => { console.log(value) }, /*{ size: 'sm' }*/);
|
|
482
481
|
panel.sameLine(2);
|
|
483
482
|
panel.addFile("Img1", data => { console.log(data) }, {} );
|
|
484
483
|
panel.addFile("Img2", data => { console.log(data) }, {} );
|
|
484
|
+
panel.addPad("2D Pad", [0.5, 0.5], (value, event) => {
|
|
485
|
+
console.log(value);
|
|
486
|
+
}, { padSize: "100px", min: -1, max: 2 });
|
|
487
|
+
panel.addSize("Screen Res", [1280, 720], (value, event) => {
|
|
488
|
+
console.log(value);
|
|
489
|
+
}, { units: "p" });
|
|
485
490
|
panel.addDropdown("Best Engine", ["Godot", "Unity", "Unreal Engine"], "Unity", (value, event) => {
|
|
486
491
|
console.log(value);
|
|
487
492
|
});
|
|
488
|
-
|
|
489
493
|
panel.addDropdown("Best Logo", [{value:"Godot", src: "https://godotengine.org/assets/press/logo_vertical_color_light.webp"}, {value: "Unity", src: "https://logos-world.net/wp-content/uploads/2023/01/Unity-Logo.png"}, {value:"Unreal Engine", src: "https://cdn2.unrealengine.com/ue-logo-stacked-unreal-engine-w-677x545-fac11de0943f.png"}], "Godot", (value, event) => {
|
|
490
494
|
console.log(value);
|
|
491
495
|
}, {filter: true});
|
|
@@ -694,6 +698,7 @@ function fillBottomPanel( panel ) {
|
|
|
694
698
|
panel.addTextArea("Notes", "", (value, event) => {
|
|
695
699
|
console.log(value);
|
|
696
700
|
}, { placeholder: 'Some notes...' });
|
|
701
|
+
panel.addKnob("A Knob", 4, 0, 200, value => { console.log(value) }, /*{ size: 'sm' }*/);
|
|
697
702
|
panel.addButton("Apply", "Add button to branch", (value, event) => {
|
|
698
703
|
const branch = panel.getBranch("Information");
|
|
699
704
|
panel.queue( branch.content );
|