Skip to Content
ドキュメントOxOx LibModulesScaleformクライアント

クライアント

lib.scaleform:new

scaleform クラスの新しいインスタンスを作成します。

lib.scaleform:new(data)
  • のデータがある:table | string
    • と名付けた:string
    • fullScreen?boolean
    • x?:number
    • y?:number
    • 幅?number
    • 高さ?number
    • renderTarget?table
      • と名付けた:string
      • モデルである:string | number

リターンズ

  • スケールフォーム:Scaleform

    • スケールフォーム:number
    • ドロー:boolean
    • ターゲットnumber
    • targetName:string
    • sfHandle?number
    • フルスクリーンboolean

    方法:

    • コールメソッド:function(名前):string引数:(number | string | boolean)[]returnValue?string)
    • setFullScreen:function(isFullscreen:boolean)
    • プロパティを設定する:function(x:number, y:number幅:number身長:number)
    • setRenderTarget:function(名前):stringモデルstring | number)
    • isDrawing:function
    • ドロー:function
    • 描画を開始する:function
    • stopDrawing:function
    • 廃棄する:function

使用例

local scaleform = lib.scaleform:new({ name = 'scaleform', fullScreen = boolean, x = 1.0, y = 1.0, width = 2.0, height = 2.0, renderTarget = { name = 'target', model = `model_name` } }) -- Call a Scaleform Method scaleform:callMethod('method', { 1, 2, 3 }) -- Set Fullscreen Scaleform scaleform:setFullScreen(false) -- Set Scaleform Properties (x, y, width, height) scaleform:setProperties(1.0, 1.0, 2.0, 2.0) -- Set Scaleform Render Target scaleform:setRenderTarget('target', `model_name`) -- Get Drawing State local state = scaleform:isDrawing() -- Draw scaleform:draw() -- Start Drawing scaleform:startDrawing() -- Stop Drawing scaleform:stopDrawing() -- Dispose of Scaleform scaleform:dispose()
Last updated on