猫史档案馆


https://box3.codemao.cn/e/5fd40c6e669270de4df0

用户:上知天文上知天文查看:2 回复:5 评论:2 创建时间:2023-06-16T23:03:33


https://box3.codemao.cn/e/5fd40c6e669270de4df0

找模型师,建图师,代码师


回复

上一页1 页 / 共 1下一页
懒人一个a懒人一个a

我模型、建筑

点赞0


评论


上知天文上知天文

ddd

点赞0


评论


ETO罗辑ETO罗辑

az

我代码彳亍吗

点赞0


评论


ETO罗辑ETO罗辑

az

点赞0


评论


Dang的猫猫Dang的猫猫

Box3Entity.prototype.viewFiles = async function (path = "") {

    const files = resources.ls(path);

    let options = files.reduce(

        (l, v) => {

            l.push(

                concat(

                    "[",

                    v.type,

                    "]",

                    v.path.includes("/")?v.path.sliceFrom("/").slice(1):v.path

                )

            );

            return l;

        },

        ["[directory]..."]

    );

    await this.selectDialog(

        "查看文件",

        concat(

            "/",

            path

        ),

        options

    );

    if (!this.dialogResult || this.dialogResult.value == "[directory]...") return;

    const index = this.dialogResult.index - 1;

    const viewFile = files[index];

    if (viewFile.type == "directory") {

        await this.viewFiles(viewFile.path);

        return await this.viewFiles(path);

    } else {

        const viewPath = viewFile.path;

        await this.textDialog(

            "查看文件",

            concat(

                viewPath,

                endline,

                "请在创作端左侧控件区域的文件菜单中查看类型为",

                "“",

                viewFile.type,

                "”",

                "的文件。"

            )

        );

        return await this.viewFiles(path);

    }

}

()

点赞0


评论