用户界面
2.0.1
对于所有支持问题,请在我们的 Discord 支持聊天中提问。如果您需要帮助,请勿在 GitHub 上创建问题。问题仅针对错误报告和新功能。
通过成功或失败的回调开始数字迷宫游戏。
exports [ ' ps-ui ' ]: Maze ( function ( success )
if success then
print ( " success " )
else
print ( " fail " )
end
end , timeLimit ) -- Hack Time Limit in seconds
显示包含文本、类型和持续时间的通知。
exports [ ' ps-ui ' ]: Notify ( ' Your message ' , ' notification-type ' , duration )
通过成功或失败的回调开始 Circle 游戏。
exports [ ' ps-ui ' ]: Circle ( function ( success )
if success then
print ( " success " )
else
print ( " fail " )
end
end , numCircles , time ) -- Number of Circles, Time in milliseconds
通过成功或失败的回调开始 Scrambler 游戏。
exports [ ' ps-ui ' ]: Scrambler ( function ( success )
if success then
print ( " success " )
else
print ( " fail " )
end
end , type , time , mirrored ) -- Type options: alphabet, numeric, alphanumeric, greek, braille, runes; Time in seconds; Mirrored options: 0, 1, 2
通过成功或失败的回调开始 VAR Hack 游戏。
exports [ ' ps-ui ' ]: VarHack ( function ( success )
if success then
print ( " success " )
else
print ( " fail " )
end
end , numBlocks , time ) -- Number of Blocks, Time in seconds
通过成功或失败的回调开始铝热剂游戏。
exports [ ' ps-ui ' ]: Thermite ( function ( success )
if success then
print ( " success " )
else
print ( " fail " )
end
end , time , gridSize , incorrectBlocks ) -- Time in seconds, Grid Size (5-10), Incorrect Blocks
创建带有子菜单和事件的菜单。
隐藏当前显示的菜单
exports [ ' ps-ui ' ]: HideMenu ()
exports [ ' ps-ui ' ]: StatusShow ( " Title " , " Description " , " icon " ,
{
{ key = " Key1 " , value = " Value1 " },
{ key = " Key2 " , value = " Value2 " },
{ key = " Key3 " , value = " Value3 " }
})
以指定颜色显示文本
exports [ ' ps-ui ' ]: DisplayText ( " Your text " , " color " )
隐藏当前显示的文本
exports [ ' ps-ui ' ]: HideText ()
显示输入表单并打印输入值。
local input = exports [ ' ps-ui ' ]: Input ({
{
id = ' 1 ' ,
label = ' Label ' ,
type = " input-type " ,
icon = " icon-class "
},
-- Add more inputs as needed
})
for k , v in pairs ( input ) do
print ( k , v . id , v . value )
end
显示来自 URL 的图像。
exports [ ' ps-ui ' ]: ShowImage ( " imageURL " )