Coder Social home page Coder Social logo

languageconfig's Introduction

LanguageConfig

配置解析是用的另外一个开源代码 https://github.com/RickJiangShu/ConfigManager, 之所以引用这套代码 我个人觉得比较简洁上手也容易。

LanguageConfig只是为了让语言配置表更加方便灵活,这套思路实现基于UGUI,想要实现其他的ui也是非常容易的。只需要让LanguageText继承其他Text的基类 实现一下函数即可。 主要还是提高项目的开发效率

使用方法也很简单只需要几个步骤: 右键在Canvas下创建LanguageText即可。新文本的话需要填写一下LanguageID 沿用其他已有文本只需要填写对应id,在Text初始化的时候会自动去取语言表的ID。 界面存成prefab之后放在Resource/UIPrefab即可。 在Toos 工具里面点击生成excel 就会把UIprefab下面的文本以及id对应的写入excel表。 极大减少策划与程序的时间成本。当然也可以直接在excel里面修改再导出。 导出之后 再点击output 即可把excel导入到工程里面。

需要注意的就是两个id相同 文本不同的情况 后者会顶替前者的文字内容

languageconfig's People

Contributors

tiankang avatar

Watchers

James Cloos avatar

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.