GithubHelp home page GithubHelp logo

adachi-resource-assistant's Introduction

adachi-resource-assistant

弃用警告( Deprecation Warning )

从原神 3.1 版本开始此模块已经弃用,功能已经整合到 Adachi-BOT ,使用说明详见《资源文件制作指引》

This module has been deprecated since Genshin Impact 3.1 version, and the function has been integrated into Adachi-BOT. For details, please refer to 《资源文件制作指引》.

说明

A resource assistant for Adachi-BOT.

安装

pip3 install -U adachi_resource_assistant

使用

生成角色卡池图片

根据角色信息或者配置文件生成角色卡池图片。

adachi_resource_get_gacha_image 刻晴 keqing_042
adachi_resource_get_gacha_image

第二个参数来源于 Honey Impact 的角色页面链接,如 https://genshin.honeyhunterworld.com/keqing_042/?lang=CHS 中的 keqing_042 。不给出参数则获取所有可用的角色。

填充素材图片

根据素材图片自身信息进行填充。

adachi_resource_fill_image /path/to/image.png
adachi_resource_fill_image /path/*.png
adachi_resource_fill_image

参数列表为文件列表,不给出参数时,则递归扫描当前目录中的所有 .png 文件。

许可

MIT License

adachi-resource-assistant's People

Contributors

arondight avatar mark9804 avatar

Watchers

 avatar  avatar

adachi-resource-assistant's Issues

替换卡池角色文件

卡池卡片类型分成武器和角色两种。

武器图片宽度和高度都随缘,但是角色图片宽度严格为 320 px,高度会被裁切。

因此在前端使用 class 对角色卡片和武器卡片进行区分后,就可以使用不同的对齐策略。角色图片底部对齐,武器图片居中对齐。

通过这种方式实现不需要任何 PS 和尺寸修改脚本介入便可以直接使用内鬼网的资源文件。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.