{"action":"created","comment":{"url":"https://api.github.com/repos/minetest/minetest/pulls/comments/34945411","id":34945411,"diff_hunk":"@@ -145,6 +145,28 @@ function mm_texture.set_game(identifier,gamedetails)\n \t\n \tlocal path = gamedetails.path .. DIR_DELIM ..\"menu\" ..\n \t\t\t\t\t\t\t\t\t DIR_DELIM .. identifier .. \".png\"\n+\n+\tlocal count = 1\n+\tfor i = 9, 1, -1 do\n+\t\tlocal check_path = gamedetails.path .. DIR_DELIM ..\"menu\" ..\n+\t\t\t\t\tDIR_DELIM .. identifier .. \".\" .. i .. \".png\"","path":"builtin/mainmenu/textures.lua","position":8,"original_position":8,"commit_id":"6f3a3bd4a76768d9ca8a49b514827b0422ea57a7","original_commit_id":"6f3a3bd4a76768d9ca8a49b514827b0422ea57a7","user":{"login":"est31","id":8872119,"avatar_url":"https://avatars.githubusercontent.com/u/8872119?v=3","gravatar_id":"","url":"https://api.github.com/users/est31","html_url":"https://github.com/est31","followers_url":"https://api.github.com/users/est31/followers","following_url":"https://api.github.com/users/est31/following{/other_user}","gists_url":"https://api.github.com/users/est31/gists{/gist_id}","starred_url":"https://api.github.com/users/est31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/est31/subscriptions","organizations_url":"https://api.github.com/users/est31/orgs","repos_url":"https://api.github.com/users/est31/repos","events_url":"https://api.github.com/users/est31/events{/privacy}","received_events_url":"https://api.github.com/users/est31/received_events","type":"User","site_admin":false},"body":"Followup indentation should be one tab, not 3.","created_at":"2015-07-18T07:27:35Z","updated_at":"2015-07-18T07:27:35Z","html_url":"https://github.com/minetest/minetest/pull/2911#discussion_r34945411","pull_request_url":"https://api.github.com/repos/minetest/minetest/pulls/2911","_links":{"self":{"href":"https://api.github.com/repos/minetest/minetest/pulls/comments/34945411"},"html":{"href":"https://github.com/minetest/minetest/pull/2911#discussion_r34945411"},"pull_request":{"href":"https://api.github.com/repos/minetest/minetest/pulls/2911"}}},"pull_request":{"url":"https://api.github.com/repos/minetest/minetest/pulls/2911","id":39909293,"html_url":"https://github.com/minetest/minetest/pull/2911","diff_url":"https://github.com/minetest/minetest/pull/2911.diff","patch_url":"https://github.com/minetest/minetest/pull/2911.patch","issue_url":"https://api.github.com/repos/minetest/minetest/issues/2911","number":2911,"state":"open","locked":false,"title":"Allow random menu images for subgames","user":{"login":"Amaz1","id":4390945,"avatar_url":"https://avatars.githubusercontent.com/u/4390945?v=3","gravatar_id":"","url":"https://api.github.com/users/Amaz1","html_url":"https://github.com/Amaz1","followers_url":"https://api.github.com/users/Amaz1/followers","following_url":"https://api.github.com/users/Amaz1/following{/other_user}","gists_url":"https://api.github.com/users/Amaz1/gists{/gist_id}","starred_url":"https://api.github.com/users/Amaz1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amaz1/subscriptions","organizations_url":"https://api.github.com/users/Amaz1/orgs","repos_url":"https://api.github.com/users/Amaz1/repos","events_url":"https://api.github.com/users/Amaz1/events{/privacy}","received_events_url":"https://api.github.com/users/Amaz1/received_events","type":"User","site_admin":false},"body":"This allows subgames to put images into the menu folder, and one of them shall be chosen at random, depending on how many are placed in the folder (under 9).\r\n\r\nThe images must follow a naming schedule along the lines of:\r\n<game>/menu\r\n    -background.png\r\n    -background.1.png\r\n    -background.2.png\r\n    -background.3.png\r\n    and so on up to 9\r\n(ofc, background.png can be replaced by overlay.png or header.png)\r\nI based it on the sound naming scheme.","created_at":"2015-07-14T12:14:34Z","updated_at":"2015-07-18T07:27:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"41c97cced57f19c0b1d678219529f327fdc6406f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/minetest/minetest/pulls/2911/commits","review_comments_url":"https://api.github.com/repos/minetest/minetest/pulls/2911/comments","review_comment_url":"https://api.github.com/repos/minetest/minetest/pulls/comments{/number}","comments_url":"https://api.github.com/repos/minetest/minetest/issues/2911/comments","statuses_url":"https://api.github.com/repos/minetest/minetest/statuses/6f3a3bd4a76768d9ca8a49b514827b0422ea57a7","head":{"label":"Amaz1:random_menu_images","ref":"random_menu_images","sha":"6f3a3bd4a76768d9ca8a49b514827b0422ea57a7","user":{"login":"Amaz1","id":4390945,"avatar_url":"https://avatars.githubusercontent.com/u/4390945?v=3","gravatar_id":"","url":"https://api.github.com/users/Amaz1","html_url":"https://github.com/Amaz1","followers_url":"https://api.github.com/users/Amaz1/followers","following_url":"https://api.github.com/users/Amaz1/following{/other_user}","gists_url":"https://api.github.com/users/Amaz1/gists{/gist_id}","starred_url":"https://api.github.com/users/Amaz1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amaz1/subscriptions","organizations_url":"https://api.github.com/users/Amaz1/orgs","repos_url":"https://api.github.com/users/Amaz1/repos","events_url":"https://api.github.com/users/Amaz1/events{/privacy}","received_events_url":"https://api.github.com/users/Amaz1/received_events","type":"User","site_admin":false},"repo":{"id":39071559,"name":"minetest","full_name":"Amaz1/minetest","owner":{"login":"Amaz1","id":4390945,"avatar_url":"https://avatars.githubusercontent.com/u/4390945?v=3","gravatar_id":"","url":"https://api.github.com/users/Amaz1","html_url":"https://github.com/Amaz1","followers_url":"https://api.github.com/users/Amaz1/followers","following_url":"https://api.github.com/users/Amaz1/following{/other_user}","gists_url":"https://api.github.com/users/Amaz1/gists{/gist_id}","starred_url":"https://api.github.com/users/Amaz1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amaz1/subscriptions","organizations_url":"https://api.github.com/users/Amaz1/orgs","repos_url":"https://api.github.com/users/Amaz1/repos","events_url":"https://api.github.com/users/Amaz1/events{/privacy}","received_events_url":"https://api.github.com/users/Amaz1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Amaz1/minetest","description":"Minetest, an open source infinite-world block sandbox game with survival and crafting. [also https://github.com/minetest/minetest_game]","fork":true,"url":"https://api.github.com/repos/Amaz1/minetest","forks_url":"https://api.github.com/repos/Amaz1/minetest/forks","keys_url":"https://api.github.com/repos/Amaz1/minetest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Amaz1/minetest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Amaz1/minetest/teams","hooks_url":"https://api.github.com/repos/Amaz1/minetest/hooks","issue_events_url":"https://api.github.com/repos/Amaz1/minetest/issues/events{/number}","events_url":"https://api.github.com/repos/Amaz1/minetest/events","assignees_url":"https://api.github.com/repos/Amaz1/minetest/assignees{/user}","branches_url":"https://api.github.com/repos/Amaz1/minetest/branches{/branch}","tags_url":"https://api.github.com/repos/Amaz1/minetest/tags","blobs_url":"https://api.github.com/repos/Amaz1/minetest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Amaz1/minetest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Amaz1/minetest/git/refs{/sha}","trees_url":"https://api.github.com/repos/Amaz1/minetest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Amaz1/minetest/statuses/{sha}","languages_url":"https://api.github.com/repos/Amaz1/minetest/languages","stargazers_url":"https://api.github.com/repos/Amaz1/minetest/stargazers","contributors_url":"https://api.github.com/repos/Amaz1/minetest/contributors","subscribers_url":"https://api.github.com/repos/Amaz1/minetest/subscribers","subscription_url":"https://api.github.com/repos/Amaz1/minetest/subscription","commits_url":"https://api.github.com/repos/Amaz1/minetest/commits{/sha}","git_commits_url":"https://api.github.com/repos/Amaz1/minetest/git/commits{/sha}","comments_url":"https://api.github.com/repos/Amaz1/minetest/comments{/number}","issue_comment_url":"https://api.github.com/repos/Amaz1/minetest/issues/comments{/number}","contents_url":"https://api.github.com/repos/Amaz1/minetest/contents/{+path}","compare_url":"https://api.github.com/repos/Amaz1/minetest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Amaz1/minetest/merges","archive_url":"https://api.github.com/repos/Amaz1/minetest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Amaz1/minetest/downloads","issues_url":"https://api.github.com/repos/Amaz1/minetest/issues{/number}","pulls_url":"https://api.github.com/repos/Amaz1/minetest/pulls{/number}","milestones_url":"https://api.github.com/repos/Amaz1/minetest/milestones{/number}","notifications_url":"https://api.github.com/repos/Amaz1/minetest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Amaz1/minetest/labels{/name}","releases_url":"https://api.github.com/repos/Amaz1/minetest/releases{/id}","created_at":"2015-07-14T11:44:09Z","updated_at":"2015-07-14T11:44:12Z","pushed_at":"2015-07-16T09:52:14Z","git_url":"git://github.com/Amaz1/minetest.git","ssh_url":"git@github.com:Amaz1/minetest.git","clone_url":"https://github.com/Amaz1/minetest.git","svn_url":"https://github.com/Amaz1/minetest","homepage":"http://minetest.net/","size":35553,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"minetest:master","ref":"master","sha":"b30e8d8ec689fbb65b1cee6fb6ff79322b204d0d","user":{"login":"minetest","id":2624745,"avatar_url":"https://avatars.githubusercontent.com/u/2624745?v=3","gravatar_id":"","url":"https://api.github.com/users/minetest","html_url":"https://github.com/minetest","followers_url":"https://api.github.com/users/minetest/followers","following_url":"https://api.github.com/users/minetest/following{/other_user}","gists_url":"https://api.github.com/users/minetest/gists{/gist_id}","starred_url":"https://api.github.com/users/minetest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minetest/subscriptions","organizations_url":"https://api.github.com/users/minetest/orgs","repos_url":"https://api.github.com/users/minetest/repos","events_url":"https://api.github.com/users/minetest/events{/privacy}","received_events_url":"https://api.github.com/users/minetest/received_events","type":"Organization","site_admin":false},"repo":{"id":2168780,"name":"minetest","full_name":"minetest/minetest","owner":{"login":"minetest","id":2624745,"avatar_url":"https://avatars.githubusercontent.com/u/2624745?v=3","gravatar_id":"","url":"https://api.github.com/users/minetest","html_url":"https://github.com/minetest","followers_url":"https://api.github.com/users/minetest/followers","following_url":"https://api.github.com/users/minetest/following{/other_user}","gists_url":"https://api.github.com/users/minetest/gists{/gist_id}","starred_url":"https://api.github.com/users/minetest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minetest/subscriptions","organizations_url":"https://api.github.com/users/minetest/orgs","repos_url":"https://api.github.com/users/minetest/repos","events_url":"https://api.github.com/users/minetest/events{/privacy}","received_events_url":"https://api.github.com/users/minetest/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/minetest/minetest","description":"Minetest, an open source infinite-world block sandbox game with survival and crafting. [also https://github.com/minetest/minetest_game]","fork":false,"url":"https://api.github.com/repos/minetest/minetest","forks_url":"https://api.github.com/repos/minetest/minetest/forks","keys_url":"https://api.github.com/repos/minetest/minetest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/minetest/minetest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/minetest/minetest/teams","hooks_url":"https://api.github.com/repos/minetest/minetest/hooks","issue_events_url":"https://api.github.com/repos/minetest/minetest/issues/events{/number}","events_url":"https://api.github.com/repos/minetest/minetest/events","assignees_url":"https://api.github.com/repos/minetest/minetest/assignees{/user}","branches_url":"https://api.github.com/repos/minetest/minetest/branches{/branch}","tags_url":"https://api.github.com/repos/minetest/minetest/tags","blobs_url":"https://api.github.com/repos/minetest/minetest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/minetest/minetest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/minetest/minetest/git/refs{/sha}","trees_url":"https://api.github.com/repos/minetest/minetest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/minetest/minetest/statuses/{sha}","languages_url":"https://api.github.com/repos/minetest/minetest/languages","stargazers_url":"https://api.github.com/repos/minetest/minetest/stargazers","contributors_url":"https://api.github.com/repos/minetest/minetest/contributors","subscribers_url":"https://api.github.com/repos/minetest/minetest/subscribers","subscription_url":"https://api.github.com/repos/minetest/minetest/subscription","commits_url":"https://api.github.com/repos/minetest/minetest/commits{/sha}","git_commits_url":"https://api.github.com/repos/minetest/minetest/git/commits{/sha}","comments_url":"https://api.github.com/repos/minetest/minetest/comments{/number}","issue_comment_url":"https://api.github.com/repos/minetest/minetest/issues/comments{/number}","contents_url":"https://api.github.com/repos/minetest/minetest/contents/{+path}","compare_url":"https://api.github.com/repos/minetest/minetest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/minetest/minetest/merges","archive_url":"https://api.github.com/repos/minetest/minetest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/minetest/minetest/downloads","issues_url":"https://api.github.com/repos/minetest/minetest/issues{/number}","pulls_url":"https://api.github.com/repos/minetest/minetest/pulls{/number}","milestones_url":"https://api.github.com/repos/minetest/minetest/milestones{/number}","notifications_url":"https://api.github.com/repos/minetest/minetest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/minetest/minetest/labels{/name}","releases_url":"https://api.github.com/repos/minetest/minetest/releases{/id}","created_at":"2011-08-07T13:48:36Z","updated_at":"2015-07-18T02:39:29Z","pushed_at":"2015-07-18T07:27:21Z","git_url":"git://github.com/minetest/minetest.git","ssh_url":"git@github.com:minetest/minetest.git","clone_url":"https://github.com/minetest/minetest.git","svn_url":"https://github.com/minetest/minetest","homepage":"http://minetest.net/","size":100756,"stargazers_count":1563,"watchers_count":1563,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":509,"mirror_url":null,"open_issues_count":561,"forks":509,"open_issues":561,"watchers":1563,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/minetest/minetest/pulls/2911"},"html":{"href":"https://github.com/minetest/minetest/pull/2911"},"issue":{"href":"https://api.github.com/repos/minetest/minetest/issues/2911"},"comments":{"href":"https://api.github.com/repos/minetest/minetest/issues/2911/comments"},"review_comments":{"href":"https://api.github.com/repos/minetest/minetest/pulls/2911/comments"},"review_comment":{"href":"https://api.github.com/repos/minetest/minetest/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/minetest/minetest/pulls/2911/commits"},"statuses":{"href":"https://api.github.com/repos/minetest/minetest/statuses/6f3a3bd4a76768d9ca8a49b514827b0422ea57a7"}}}}