@quenty/uiobjectutils 6.4.0 → 6.4.1-canary.496.cb49bdf.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [6.4.1-canary.496.cb49bdf.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/uiobjectutils@6.4.0...@quenty/uiobjectutils@6.4.1-canary.496.cb49bdf.0) (2024-09-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Ensure datamodel exists too ([cb49bdf](https://github.com/Quenty/NevermoreEngine/commit/cb49bdf8d79aac6e6901901c914271148df358b2))
12
+
13
+
14
+
15
+
16
+
6
17
  # [6.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/uiobjectutils@6.3.0...@quenty/uiobjectutils@6.4.0) (2024-09-12)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/uiobjectutils",
3
- "version": "6.4.0",
3
+ "version": "6.4.1-canary.496.cb49bdf.0",
4
4
  "description": "UI object utils library for Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -28,11 +28,11 @@
28
28
  "access": "public"
29
29
  },
30
30
  "dependencies": {
31
- "@quenty/brio": "^14.5.0",
32
- "@quenty/enumutils": "^3.2.0",
33
- "@quenty/instanceutils": "^13.5.0",
34
- "@quenty/loader": "^10.4.0",
35
- "@quenty/rx": "^13.5.0"
31
+ "@quenty/brio": "14.5.0",
32
+ "@quenty/enumutils": "3.2.0",
33
+ "@quenty/instanceutils": "13.5.0",
34
+ "@quenty/loader": "10.4.0",
35
+ "@quenty/rx": "13.5.0"
36
36
  },
37
- "gitHead": "fb172906f3ee725269ec1e5f4daf9dca227e729d"
37
+ "gitHead": "cb49bdf8d79aac6e6901901c914271148df358b2"
38
38
  }
@@ -19,10 +19,16 @@ local GuiInteractionUtils = {}
19
19
  function GuiInteractionUtils.observeInteractionEnabled(gui)
20
20
  assert(typeof(gui) == "Instance" and gui:IsA("GuiObject"), "Bad gui")
21
21
 
22
- return RxInstanceUtils.observeProperty(gui, "GuiState"):Pipe({
22
+ return Rx.combineLatest({
23
+ visible = RxInstanceUtils.observeProperty(gui, "Visible");
24
+ guiState = RxInstanceUtils.observeProperty(gui, "GuiState");
25
+ dataModel = RxInstanceUtils.observeFirstAncestorBrio(gui, "DataModel");
26
+ }):Pipe({
23
27
  Rx.map(function(state)
24
- -- Ensure we have interaction enabled (visible, et cetera)
25
- return state ~= Enum.GuiState.NonInteractable
28
+ return state.visible
29
+ and state.guiState ~= Enum.GuiState.NonInteractable
30
+ and state.dataModel
31
+ and true or false
26
32
  end);
27
33
  Rx.distinct();
28
34
  })