{"id":26252994,"url":"https://github.com/nglsg/mui","last_synced_at":"2026-02-11T23:16:51.460Z","repository":{"id":250713479,"uuid":"835250901","full_name":"NGLSG/MUI","owner":"NGLSG","description":"Simple ECS UI architecture based on imgui implementation","archived":false,"fork":false,"pushed_at":"2024-12-19T13:46:07.000Z","size":390,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-31T10:43:10.714Z","etag":null,"topics":["cpp","framework","software-architecture","uikit"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NGLSG.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2024-07-29T13:08:45.000Z","updated_at":"2025-04-28T10:44:39.000Z","dependencies_parsed_at":"2024-07-29T16:38:46.075Z","dependency_job_id":"c16d0afe-8812-4a02-92c2-8691d215e3c6","html_url":"https://github.com/NGLSG/MUI","commit_stats":null,"previous_names":["nglsg/mui"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NGLSG/MUI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NGLSG%2FMUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NGLSG%2FMUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NGLSG%2FMUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NGLSG%2FMUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NGLSG","download_url":"https://codeload.github.com/NGLSG/MUI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NGLSG%2FMUI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29349302,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T20:11:40.865Z","status":"ssl_error","status_checked_at":"2026-02-11T20:10:41.637Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cpp","framework","software-architecture","uikit"],"created_at":"2025-03-13T17:29:12.620Z","updated_at":"2026-02-11T23:16:51.443Z","avatar_url":"https://github.com/NGLSG.png","language":"C++","readme":"# MUI\n\n\u003cdiv style=\"text-align: center;\"\u003e\n    \u003cimg src=\"Img/img.png\" alt=\"Mio UI\"\u003e\n\u003c/div\u003e\n\n\u003cdiv style=\"text-align: center; font-size: 28px;\"\u003eMio UI\u003c/div\u003e\n\u003cdiv style=\"text-align: center;\"\u003e 🚀 Simple ECS UI architecture based on imgui 🚀\u003c/div\u003e\n\n# Features\n\n- [x] Easy to use\n- [x] Easy to integrate with other libraries\n- [x] Based on ECS architecture\n- [ ] Support multi-language\n- [ ] Support Editor\n\n# Quick start\n\n1. Add `MUI` to your project\n\n```bash\ngit submodule add https://github.com/NGLSG/MUI.git\ngit submodule update --init --recursive\n```\n\n```cmake\nadd_subdirectory(MUI)\ntarget_link_libraries(\u003cyour_target\u003e PRIVATE MUI)\n```\n\n2. Include Application.h to your project\n3. Create a `Mio::Application` instance\n\n```c++\nMio::Application app(windowName,iconPath(optional));\napp.Initialize(); \n```\n\n4. Create a `Mio::GUIManifest` object for your GUI\n\n```c++\n// if you dont have any saved manifest,you can call like this\nauto manifest = Mio::GUIManifest::create(name,SavePathDir);\n// if you have saved manifest,you can call like this\nauto manifest = ResourceManager::LoadManifest(SavePath+name);\n```\n\n5. Create a `Mio::GUIManager` object to manage your GUI\n\n```c++\n//if you want to create a window,you should call like this\nauto window=Mio::Window::Create({\"WindowName\",bool ,flags},\"UniqueName\")\nmanifest-\u003eTryAddManager(window);\n//if you had saved manifest,you can call like this\nauto window=manifest-\u003eGetUI\u003cMio::Window\u003e(\"UniqueName\");\n```\n\n6 Create GUI objects\n\n```c++\n//if your first create a GUI object, you should call like this\nauto button = Mio::Button::Create({\"BTNShowText\"});\n//if you want to add a callback,you should decalre its name first and then implement it\nbutton-\u003eGetComponent\u003cMio::Event\u003e()-\u003eAddListener(\"CallbackName\");\n//if you have saved manifest,you can call like this\nauto button=manifest-\u003eGetUI\u003cMio::Button\u003e(\"BTNShowText\");\n//or you can call like this\nauto button=manifest-\u003eGetUI\u003cMio::Button\u003e(UUID);\n\n//implement your callback\nMio::Event::Modify(\"CallbackName\",implementation);\n\n//if you need change the GUI's position,you can call like this\nbutton-\u003etransform-\u003ecPosition={100,100};\nbutton-\u003etransform-\u003ecScale={1,1};//not recommend\nbutton-\u003etransform-\u003ecSize={100,100};\n\n//if you want to change the GUI's style,you can call like this\nauto style=button-\u003estyle-\u003eGetStyle();\nstyle.cColor[ImGuiCol_Button]={0.5f,0.5f,0.5f,1.0f}\nbutton-\u003estyle-\u003eModify(style);//it will save the different of style\n//then add GUI to your GUI Manifest\nwindow-\u003eAddUIElement(button);\n\n//for more information,you can refer to Application.h and Mio::GUIManifest.h\n```\n\n7. Run your application\n\n```c++\napp.AddManifest(manifest);\nwhile (!app.ShouldClose()){\n    app.Update();\n}   \n```\n\n8. after Application close\n\n```c++\napp.Shutdown();\nMio::ResourceManager::SaveManifest(manifest);\n```\n\n9. Use ResourceManager to manager your data\n\n```c++\n//Mio::Resource it is a static ResourcePackage instance\n//if you need multiple pack you can create it by your self\nResourcePackage pack1(\"name\");//will generate a pack name.pck in build directory when you pack it\n//if you need add other files to the single file,you can call like this\nMio::Resource.AddFiles({filePaths});//it will be auto copy to Resources directory\n//also you can use Marco\nRESOURCING(\"PATH\")//it will return Resources/PATH,and add to Resource pack\n//if you need pack to a single file,you can call like this\nMio::Resource.Pack();//will pack Resources directory to a single file and output to build/Resources.pck\n\n// if you want to use this Data\nResource.UnpackAll();//Will unpack all pack to Resources directory\n//if you only need one single file\nResource.Unpack(\"RelativePathForYourFile\");//it will unpack to Resources directory with the same name\n```\n# Example\n[MioFramework](https://github.com/NGLSG/MioFramework)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnglsg%2Fmui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnglsg%2Fmui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnglsg%2Fmui/lists"}