Parametersheader - string - Header Text
placeholder - string - Placeholder text
field - boolean - Small Input or Big Input
Returnsinput - string/number - Input
Asynchronous
-- Small Input WindowMSK.Input.Open('This is a Header', 'This is a Placeholder', function(input)ifnot input thenreturnendprint(input)end)-- Big Input WindowMSK.Input.Open('This is a Header', 'This is a Placeholder', true, function(input)ifnot input thenreturnendprint(input)end)-- As an Export:exports.msk_core:Input(header, placeholder, field, function(input)ifnot input thenreturnendprint(input)end
Synchronous
-- Small Input Windowlocal input = MSK.Input.Open('This is a Header', 'This is a Placeholder')print(input)-- Big Input Windowlocal input = MSK.Input.Open('This is a Header', 'This is a Placeholder', true)print(input)-- As an Export:local input = exports.msk_core:Input(header, placeholder, field)
MSK.Input.Close
Closes the current Input Window.
MSK.Input.Close()-- As an Export:exports.msk_core:CloseInput()
MSK.Input.Active
Checks if the Input Window is active
ReturnsisActive - boolean - whether the Input Window is active
local isActive = MSK.Input.Active()-- As an Export:local isActive = exports.msk_core:InputActive()