Giter Club home page Giter Club logo

fairygui-cocos2dx's Introduction

FairyGUI Cocos2dx SDK

A flexible UI framework for Cocos2dx, working with the FREE professional Game UI Editor: FairyGUI Editor.
Download the editor from here: www.fairygui.com

FairyGUI编辑器操作简单,使用习惯与Adobe系列软件保持一致,策划和美术设计师可以轻松上手。在编辑器即可组合各种复杂UI组件,以及为UI设计动画效果,无需编写任何代码。可一键导出到Unity,Cocos2dx, Starling, Egret, LayaAir, Pixi, Haxe, Flash等多个主流应用和游戏平台。

下载UI编辑器:www.fairygui.com

Get Started

目录结构:

  • libfairygui 这里是fairygui库的源码。
  • Examples 这里是示例的源码。
    • UIProject 这里是示例用到的UI界面的源码,使用FairyGUI编辑器打开。

请下载3.x版本cocos2dx命名成cocos2d放在Example根目录。cocos2dx源码需要改动一处地方才能通过编译,打开2d/CCLabel.h,大约在672行,为updateBMFontScale函数打上virtual修饰符。即

  virtual void updateBMFontScale();

因为这个方法里有强制字体对象指针为FontFnt类型的代码,但我们不使用FontFnt(FontFnt只支持从外部文件中载入配置,更糟糕的是BMFontConfiguration是定义在cpp里的。), 所以需要重写这个方法。

Learn

  • 下载FairyGUI编辑器。
  • 下载Examples工程,浏览一遍FairyGUI的例子。
  • 解压Examples工程UIProject目录下的UIProject.zip,使用FairyGUI编辑器打开,结合例子浏览一遍UI工程。
  • 观看视频教程:强大的UI编辑器 - FairyGUI入门教程
  • 阅读文字教程:FairyGUI教程
  • FAQ:问答社区
  • 进群与小伙伴一起交流:一群 434866637(已满) 二群 614444599

License

MIT 你可以自由使用FairyGUI在你的商业和非商业项目。
如果觉得FairyGUI好用,请赞助作者

fairygui-cocos2dx's People

Contributors

cze2014 avatar elmerning avatar hanyu363 avatar mengjie0718 avatar xiaoguzhu avatar zeas2 avatar zhongfq avatar zhugefeia avatar

Stargazers

 avatar

Watchers

 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.