{"id":13419108,"url":"https://github.com/fairygui/FairyGUI-cocos2dx","last_synced_at":"2025-03-15T04:32:04.126Z","repository":{"id":39421894,"uuid":"44661177","full_name":"fairygui/FairyGUI-cocos2dx","owner":"fairygui","description":"A flexible UI framework for Cocos2d-x","archived":false,"fork":false,"pushed_at":"2023-06-20T04:40:26.000Z","size":21831,"stargazers_count":471,"open_issues_count":21,"forks_count":107,"subscribers_count":26,"default_branch":"master","last_synced_at":"2024-07-31T22:45:42.677Z","etag":null,"topics":["cocos-creator","cocos2d","cocos2dx","cpp-gui","cross-platform-gui","infinite-lists","virtual-list"],"latest_commit_sha":null,"homepage":"https://www.fairygui.com","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fairygui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-21T07:57:15.000Z","updated_at":"2024-07-24T01:06:11.000Z","dependencies_parsed_at":"2024-10-26T16:03:52.075Z","dependency_job_id":"f6d21069-ca0e-47ed-bad6-5399234db688","html_url":"https://github.com/fairygui/FairyGUI-cocos2dx","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fairygui%2FFairyGUI-cocos2dx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fairygui%2FFairyGUI-cocos2dx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fairygui%2FFairyGUI-cocos2dx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fairygui%2FFairyGUI-cocos2dx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fairygui","download_url":"https://codeload.github.com/fairygui/FairyGUI-cocos2dx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243685506,"owners_count":20330980,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cocos-creator","cocos2d","cocos2dx","cpp-gui","cross-platform-gui","infinite-lists","virtual-list"],"created_at":"2024-07-30T22:01:11.446Z","updated_at":"2025-03-15T04:32:04.121Z","avatar_url":"https://github.com/fairygui.png","language":"C++","funding_links":[],"categories":["TODO scan for Android support in followings","C++"],"sub_categories":[],"readme":"FairyGUI Cocos2dx SDK\r\n====\r\n\r\nA flexible UI framework for Cocos2dx, working with the FREE professional Game UI Editor: FairyGUI Editor.  \r\nDownload the editor from here: [www.fairygui.com](https://www.fairygui.com/)  \r\n\r\nFairyGUI编辑器操作简单，使用习惯与Adobe系列软件保持一致，策划和美术设计师可以轻松上手。在编辑器即可组合各种复杂UI组件，以及为UI设计动画效果，无需编写任何代码。可一键导出到Unity，Cocos2dx, Starling, Egret, LayaAir, Pixi, Haxe, Flash等多个主流应用和游戏平台。\r\n\r\n下载UI编辑器：[www.fairygui.com](https://www.fairygui.com/)\r\n\r\nGet Started\r\n====\r\n\r\n目录结构：\r\n- libfairygui 这里是fairygui库的源码。\r\n- Examples 这里是示例的源码。\r\n  - UIProject 这里是示例用到的UI界面的源码，使用FairyGUI编辑器打开。\r\n\r\ncocos2dx源码需要改动一处地方才能通过编译，打开2d/CCLabel.h，大约在672行，为updateBMFontScale函数打上virtual修饰符。即\r\n  ```\r\n    virtual void updateBMFontScale();\r\n  ```\r\n  因为这个方法里有强制字体对象指针为FontFnt类型的代码，但我们不使用FontFnt（FontFnt只支持从外部文件中载入配置，更糟糕的是BMFontConfiguration是定义在cpp里的。）, 所以需要重写这个方法。\r\n\r\n#### 使用Examples/proj.platform文件下的工程文件\r\n请下载3.x版本cocos2dx命名成cocos2d放在Example根目录。\r\n\r\n#### 使用cocos2dx的cmake生成工程\r\n在cocos2dx的CMakeLists.txt文件末尾添加:\r\n```\r\nadd_subdirectory(/youpath/FairyGUI-cocos2dx/libfairygui ${ENGINE_BINARY_PATH}/FairyGUI)\r\nadd_subdirectory(/youpath/FairyGUI-cocos2dx/Examples ${ENGINE_BINARY_PATH}/FairyGUI_Examples)\r\n```\r\n生成的可执行文件在bin/FairyGUI_Examples目录，需要自己复制Examples/Resources目录过去，windows还要复制依赖库（可以从cocos2dx生成的cpp-test目录复制dll）\r\n\r\nLearn\r\n====\r\n\r\n[教程](https://www.fairygui.com/docs/guide/index.html)  \r\n\r\nLicense\r\n====\r\n\r\nMIT\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffairygui%2FFairyGUI-cocos2dx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffairygui%2FFairyGUI-cocos2dx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffairygui%2FFairyGUI-cocos2dx/lists"}