{"id":18271942,"url":"https://github.com/GloryFish/Cocos2D-Touchable-Nodes","last_synced_at":"2025-04-05T02:30:49.331Z","repository":{"id":822214,"uuid":"535835","full_name":"GloryFish/Cocos2D-Touchable-Nodes","owner":"GloryFish","description":"Provides lightweight CCNodes which can respond to touches within a given rectangle.","archived":false,"fork":false,"pushed_at":"2010-03-18T16:54:53.000Z","size":221,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-05T11:54:25.561Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://gloryfish.org","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"tmpvar/jsdom","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GloryFish.png","metadata":{"files":{"readme":"README","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}},"created_at":"2010-02-25T16:03:21.000Z","updated_at":"2014-06-25T19:51:09.000Z","dependencies_parsed_at":"2022-08-16T11:00:49.558Z","dependency_job_id":null,"html_url":"https://github.com/GloryFish/Cocos2D-Touchable-Nodes","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/GloryFish%2FCocos2D-Touchable-Nodes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GloryFish%2FCocos2D-Touchable-Nodes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GloryFish%2FCocos2D-Touchable-Nodes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GloryFish%2FCocos2D-Touchable-Nodes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GloryFish","download_url":"https://codeload.github.com/GloryFish/Cocos2D-Touchable-Nodes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247279311,"owners_count":20912860,"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:36.803Z","updated_at":"2025-04-05T02:30:48.972Z","avatar_url":"https://github.com/GloryFish.png","language":"Objective-C","funding_links":[],"categories":["etc"],"sub_categories":[],"readme":"\nREADME\nTouchableNodes\n \nCreated by Jay Roberts on 2010-02-25.\nCopyright 2010 GloryFish.org. All rights reserved.\nLicense: http://www.cocos2d-iphone.org/wiki/doku.php/license (GNU LGPL v3 with an extension)\n\nLightweight classes providing invisible and semi-invisible UI elements for responding to touches. Supports canceling a button press by dragging off of the button.\n\nCreated for use in TCG Counter http://tcgcounter.com where most of the UI is provided by a single static background image and touches are indicated with particle system emits. TouchableRegions are used to define static button locations on the screen and are wired into methods on the parent view.\n\nTouchableOverlays are also used for simple static buttons that are part of the background but also have a hover state. An additional CCSprite is provides which is displayed when touched and faded out when cancelled.\n\nUsage:\n\n// Layer init\n-(id)init {\n   TouchableRegion *button = [TouchableRegion regionWithRect: CGRectMake(0.0f, 100.0f, 100.0f, 100.0f) target: self selector:@selector(buttonPress)];\n   button.showOutline = YES; // Optionally draw an outline for testing\n   [self addChild: button z: 1];\n\n}\n\n// Layer method\n-(void) buttonPress {\n   NSLog(@\"Button Pressed!\");\n}","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGloryFish%2FCocos2D-Touchable-Nodes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGloryFish%2FCocos2D-Touchable-Nodes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGloryFish%2FCocos2D-Touchable-Nodes/lists"}