You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- Set default height of elements that follow this function (can be call at the beginning or in the middle of an UI)
30
30
UI:setDefaultLineHeightPercent(h)
31
31
UI:setDefaultLineHeightPixel(h)
32
+
33
+
UI:setWidthPercent(pctW) -- Set width of window in % of the screen [0-1]
34
+
UI:setWidthPixel(pxlW) -- Set width of window in pixel
32
35
```
33
36
34
37
## Call before nextLine()
@@ -37,12 +40,6 @@ UI:setLineHeightPercent(pctH) -- Force height of actual line in % of the scree
37
40
UI:setLineHeightPixel(pxlH) -- Force height of actual line in pixel
38
41
```
39
42
40
-
## Call before saveLayout()
41
-
```lua
42
-
UI:setWidthPercent(pctW) -- Set width of window in % of the screen [0-1]
43
-
UI:setWidthPixel(pxlW) -- Set width of window in pixel
44
-
```
45
-
46
43
## Other
47
44
```lua
48
45
UI:isSubUIOf(UI2) -- If the UI is a sub UI. Like that if the parent is close, the sub UI is close too. And you can acces the parentUI with the variable
0 commit comments