{"id":18271106,"url":"https://github.com/yannickl/CCControlExtension","last_synced_at":"2025-04-05T01:31:06.457Z","repository":{"id":145017037,"uuid":"2212418","full_name":"yannickl/CCControlExtension","owner":"yannickl","description":"Collection of classes to make the design of controls easier for Cocos2d-for-iPhone","archived":true,"fork":false,"pushed_at":"2018-12-17T21:32:04.000Z","size":9932,"stargazers_count":208,"open_issues_count":7,"forks_count":68,"subscribers_count":25,"default_branch":"master-v2","last_synced_at":"2024-11-05T11:53:19.893Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://yannickloriot.com/2013/02/the-control-extension-for-cocos2d/","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yannickl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE_CCControlExtention.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2011-08-15T21:34:12.000Z","updated_at":"2024-06-20T00:59:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"509264fe-0f9b-4b7b-b228-b99e89629784","html_url":"https://github.com/yannickl/CCControlExtension","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannickl%2FCCControlExtension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannickl%2FCCControlExtension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannickl%2FCCControlExtension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yannickl%2FCCControlExtension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yannickl","download_url":"https://codeload.github.com/yannickl/CCControlExtension/tar.gz/refs/heads/master-v2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276043,"owners_count":20912286,"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":[],"created_at":"2024-11-05T11:39:05.118Z","updated_at":"2025-04-05T01:31:02.440Z","avatar_url":"https://github.com/yannickl.png","language":"Objective-C","readme":"CCControlExtension\n=================\n\n*Note: CCControlExtension is no longer maintained.*\n\nCCControlExtension is an open-source library that provides many convenient control objects for __Cocos2D v2.x__ for iPhone and Mac, such as buttons, sliders and many more... ([see the exhaustive list](#available-control-list))\n\nAll these controls are subclasses of CCControl, which is inspired by the UIControl API from the UIKit of CocoaTouch. The main goal of CCControl is to simplify the creation of control objects in Cocos2D by providing an interface and a base implementation ala UIKit. I.e that this class manages the target-action pair registration and dispatches them to their targets when events occur.\nThe CCControl extension also uses the power of blocks to dispatch the events in addition to the target/action pair. \n\n*Note: The CCControlExtension's classes are ARC compatible (e.g for use with Kobold2D)*\n\n*Note2: The version for __Cocos2D v1.1__ is available in the [master branch](https://github.com/YannickL/CCControlExtension/tree/master)*\n\n*Note3: __Cocos2d v3__ now provides native controls*\n\n![CCControlExtensions](https://github.com/YannickL/CCControlExtension/blob/master/screenshots/cccontrolextension.png)\n\nAvailable Control List\n====================\n\n  * [Button](http://yannickloriot.com/library/ios/cccontrolextension/Classes/CCControlButton.html):\nIntercepts touch events and sends an action message to a target object when tapped.\n  * [Colour Picker](http://yannickloriot.com/library/ios/cccontrolextension/Classes/CCControlColourPicker.html):\nIt's a very useful control tool to preview and test color values.\n  * [Picker](http://yannickloriot.com/library/ios/cccontrolextension/Classes/CCControlPicker.html):\nUse a spinning-wheel or slot-machine metaphor to show one set of values.\n  * [Potentiometer](http://yannickloriot.com/library/ios/cccontrolextension/Classes/CCControlPotentiometer.html):\nUse a circular representation to show and select a single value from a continuous range of values.\n  * [Slider](http://yannickloriot.com/library/ios/cccontrolextension/Classes/CCControlSlider.html):\nUse a linear representation to show and select a single value from a continuous range of values.\n  * [Stepper](http://yannickloriot.com/library/ios/cccontrolextension/Classes/CCControlStepper.html):\nUser interface for incrementing or decrementing a value.\n  * [Switch](http://yannickloriot.com/library/ios/cccontrolextension/Classes/CCControlSwitch.html):\nUseful to create and manage On/Off buttons.\n\nHow to use it\n====================\n- Include the CCControlExtension folder into your project\n- Where necessary, include this header:\n\n        #import \"CCControlExtension.h\"\n\nThe `CCControlExtension.h` already includes all the controls.\nThere are various [examples][] to learn how the controls work and how to use a pre-made visual for each of them.\n\nFor more information you can check [my blog][] and the [api documentation][].\n\nGetting started with the source\n===================== \nThe example project already includes a version of Cocos2D, so you just need to download the source like the following:\n\n```\n    git clone git@github.com:YannickL/CCControlExtension.git\n\n    # to get latest stable source from master branch, use this command:\n    cd CCControlExtension\n    git checkout master-v2\n\n    # to update the sources\n    git pull\n```\n\nBuild \u0026 Runtime Requirements\n====================\n\n  * Xcode 4.2 or newer (LLVM 3.0 or newer)\n  * iOS 4.0 or newer for iOS games\n  * Mac OS X 10.6 or newer for Mac games\n\nLicense (MIT)\n====================\nAs well as Cocos2D for iPhone, CCControlExtension is licensed under the MIT License:\n\nCopyright (c) 2011-present - Yannick Loriot and contributors\n(see each file to see the different copyright owners)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n \nYou can download *cocos2d-for-iphone* here: https://github.com/cocos2d/cocos2d-iphone\n\n[my blog]: http://yannickloriot.com/2013/02/the-control-extension-for-cocos2d/\n[examples]: https://github.com/YannickL/CCControlExtension/tree/master-v2/CCControlExtensionExamples\n[api documentation]: http://yannickloriot.com/library/ios/cccontrolextension/\n","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyannickl%2FCCControlExtension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyannickl%2FCCControlExtension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyannickl%2FCCControlExtension/lists"}