Git Product home page Git Product logo

psd2ui's Introduction

前端开发流程:
1.把本目录Psd2UI拷贝到PS安装目录\Presets\Scripts下,打开Psd2UI.jsx脚本,
修改下面两处配置路径:
var sourcePath = "D:/newWork/source/client";
var resPath = "D:/newWork/data/client/www/res/client";
打开XPNG2JPG.bat.bak批处理副本文件,修改下面路径:
set PROJECT_DIR=D:\newWork
2.打开美术给的Psd(source/client_psd目录下)文件,按命名规范命名各个控件,调整层次关系,保存文件;
3.在PS里点击文件——脚本——选中PSD2UI,会打开个面板,选择需要的功能选项,点击运行开始执行脚本,
执行完毕会生成XML文件和模版代码,生成png原图文件到对应目录,打包图片到res对应目录。


美术制作规范:
1.维护公共资源uilib.psd,制作模块UI时,把图层拷贝到模块psd中,通过命名来判断是否公共资源。

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.