Skip to content

Commit e1222ca

Browse files
authored
Update UI functions.md
1 parent 53930c7 commit e1222ca

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

UI functions.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ UI:setColumnWidthPixel(column, pxlW)
2929
-- Set default height of elements that follow this function (can be call at the beginning or in the middle of an UI)
3030
UI:setDefaultLineHeightPercent(h)
3131
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
3235
```
3336

3437
## Call before nextLine()
@@ -37,12 +40,6 @@ UI:setLineHeightPercent(pctH) -- Force height of actual line in % of the scree
3740
UI:setLineHeightPixel(pxlH) -- Force height of actual line in pixel
3841
```
3942

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-
4643
## Other
4744
```lua
4845
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

Comments
 (0)