Resize DHTML (Method): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
No edit summary |
ObsidianPLG (talk | contribs) m forgot the space, woops |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 15: | Line 15: | ||
for i = 0, 1000 do | for i = 0, 1000 do | ||
htmlWindow:Resize | wait(math.random(1, 2)) | ||
htmlWindow:Resize(math.random(100, 300), math.random(100, 300)) | |||
end | end | ||
</syntaxhighlight>}} | </syntaxhighlight>}} |
Latest revision as of 21:06, 10 November 2023
![]() | |
Returns | nil |
Description: | Changes the size of the window. |
Member of: | HtmlWindow |
Example
This code will create and then spam resize a DHTML window 1000 times:
local HtmlService = game:service("HtmlService")
local htmlWindow = HtmlService:NewWindow()
htmlWindow:Show()
for i = 0, 1000 do
wait(math.random(1, 2))
htmlWindow:Resize(math.random(100, 300), math.random(100, 300))
end