72
edits
No edit summary Tag: Reverted |
Tag: Undo |
||
Line 1: | Line 1: | ||
<onlyinclude>{{Method|name = | <onlyinclude>{{Method|name = Resize | ||
|arguments = [[ | |arguments = [[Integer]] '''Width''', [[Integer]] '''Height''' | ||
|description = | |description = Changes the size of the window. | ||
|object = HtmlWindow | |object = HtmlWindow | ||
}}</onlyinclude> | }}</onlyinclude> | ||
Line 7: | Line 7: | ||
{{clear floats}} | {{clear floats}} | ||
{{Example|This code will | {{Example|This code will create and then spam resize a DHTML window 1000 times: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
local HtmlService = game:service("HtmlService") | local HtmlService = game:service("HtmlService") | ||
Line 13: | Line 13: | ||
htmlWindow:Show() | htmlWindow:Show() | ||
htmlWindow: | |||
for i = 0, 1000 do | |||
htmlWindow:Resize(math.floor(math.random(100, 300)), math.floor(math.random(100, 300))) | |||
end | |||
</syntaxhighlight>}} | </syntaxhighlight>}} |