@quenty/guivisiblemanager 4.2.0 → 4.3.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,22 @@
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
+ # [4.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/guivisiblemanager@4.2.1...@quenty/guivisiblemanager@4.3.0) (2022-01-17)
7
+
8
+ **Note:** Version bump only for package @quenty/guivisiblemanager
9
+
10
+
11
+
12
+
13
+
14
+ ## [4.2.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/guivisiblemanager@4.2.0...@quenty/guivisiblemanager@4.2.1) (2022-01-16)
15
+
16
+ **Note:** Version bump only for package @quenty/guivisiblemanager
17
+
18
+
19
+
20
+
21
+
6
22
  # [4.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/guivisiblemanager@4.1.0...@quenty/guivisiblemanager@4.2.0) (2022-01-07)
7
23
 
8
24
  **Note:** Version bump only for package @quenty/guivisiblemanager
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/guivisiblemanager",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "description": "Help manage the visibility of GUIs while only constructing the Gui while visible",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,13 +25,13 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/baseobject": "^3.4.0",
28
+ "@quenty/baseobject": "^3.5.0",
29
29
  "@quenty/cancellabledelay": "^2.2.0",
30
- "@quenty/loader": "^3.3.0",
31
- "@quenty/maid": "^2.0.2"
30
+ "@quenty/loader": "^3.4.0",
31
+ "@quenty/maid": "^2.1.0"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "5a3f3fb6c908fd3874f5ceacc70b404780275119"
36
+ "gitHead": "c094ba8f4e128cdff08919d89de226d3d65247ce"
37
37
  }
@@ -1,5 +1,7 @@
1
1
  --[=[
2
2
  Help manage the visibility of GUIs while only constructing the Gui while visible
3
+
4
+ @client
3
5
  @class GuiVisibleManager
4
6
  ]=]
5
7
 
@@ -15,8 +17,13 @@ local GuiVisibleManager = setmetatable({}, BaseObject)
15
17
  GuiVisibleManager.ClassName = "GuiVisibleManager"
16
18
  GuiVisibleManager.__index = GuiVisibleManager
17
19
 
18
- -- @param promiseNewPane Returns a promise for a new pane.
19
- -- @param[opt=1] maxHideTime
20
+ --[=[
21
+ Constructs a new GuiVisibleManager.
22
+
23
+ @param promiseNewPane Promise<TPane> -- Returns a promise for a new pane.
24
+ @param maxHideTime number? -- Optional hide time
25
+ @return GuiVisibleManager
26
+ ]=]
20
27
  function GuiVisibleManager.new(promiseNewPane, maxHideTime)
21
28
  local self = setmetatable(BaseObject.new(), GuiVisibleManager)
22
29
 
@@ -38,11 +45,20 @@ function GuiVisibleManager.new(promiseNewPane, maxHideTime)
38
45
  return self
39
46
  end
40
47
 
41
-
48
+ --[=[
49
+ Returns whether the Gui is visible.
50
+ @return boolean
51
+ ]=]
42
52
  function GuiVisibleManager:IsVisible()
43
53
  return self._paneVisible.Value
44
54
  end
45
55
 
56
+ --[=[
57
+ Binds visiblity to the bool value being true. There could be other ways
58
+ that the Gui is shown if this is not set.
59
+
60
+ @param boolValue BoolValue
61
+ ]=]
46
62
  function GuiVisibleManager:BindToBoolValue(boolValue)
47
63
  assert(boolValue, "Must have boolValue")
48
64
  assert(not self._boundBoolValue, "Already bound")
@@ -62,6 +78,11 @@ function GuiVisibleManager:BindToBoolValue(boolValue)
62
78
  end
63
79
  end
64
80
 
81
+ --[=[
82
+ Creates a handle that will force the gui to be rendered. Clean up the task
83
+ to stop the showing.
84
+ @return MaidTask
85
+ ]=]
65
86
  function GuiVisibleManager:CreateShowHandle()
66
87
  assert(self._showHandles, "Not initialized yet")
67
88
 
@@ -139,5 +160,4 @@ function GuiVisibleManager:_handleNewPane(maid, pane)
139
160
  updateVisible()
140
161
  end
141
162
 
142
-
143
163
  return GuiVisibleManager