Class: DFCUI::PictureManage

Inherits:
Object show all

Overview

PictureManage 为 DFC 统一的图片管理,显示图片,添加图片 商品图片 材质图片

主要功能包括图片的增加、删除、替换

Examples:

pm = DFCUI::PictureManage.new('标题')
pm.show {|img_array| puts img_array}

Instance Method Summary # collapse

Constructor Details

#initialize(title = "图片管理器") ⇒ PictureManage

初始化

Examples:

pm = DFCUI::PictureManage.new('标题')

Parameters:

  • title (String) (defaults to: "图片管理器")

    窗口标题

Version:

  • 2.1.2

Instance Method Details

#show(imgArr = []) {|img_arr| ... } ⇒ Nil

显示窗口

Examples:

pm = DFCUI::PictureManage.new('标题')
pm.show {|img_array| puts img_array}

Parameters:

  • imgArr (String) (defaults to: [])

    打开窗口的初始化数据

Yields:

  • (img_arr)

Yield Parameters:

  • img_arr (Array)

    选择的图片数组

Returns:

  • (Nil)

Version:

  • 2.1.2