{"action":"created","issue":{"url":"https://api.github.com/repos/Source-Python-Dev-Team/Source.Python/issues/55","labels_url":"https://api.github.com/repos/Source-Python-Dev-Team/Source.Python/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/Source-Python-Dev-Team/Source.Python/issues/55/comments","events_url":"https://api.github.com/repos/Source-Python-Dev-Team/Source.Python/issues/55/events","html_url":"https://github.com/Source-Python-Dev-Team/Source.Python/pull/55","id":77855552,"number":55,"title":"Changed PagedMenu for csgo and added manual back option","user":{"login":"high-voltage","id":10765718,"avatar_url":"https://avatars.githubusercontent.com/u/10765718?v=3","gravatar_id":"","url":"https://api.github.com/users/high-voltage","html_url":"https://github.com/high-voltage","followers_url":"https://api.github.com/users/high-voltage/followers","following_url":"https://api.github.com/users/high-voltage/following{/other_user}","gists_url":"https://api.github.com/users/high-voltage/gists{/gist_id}","starred_url":"https://api.github.com/users/high-voltage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/high-voltage/subscriptions","organizations_url":"https://api.github.com/users/high-voltage/orgs","repos_url":"https://api.github.com/users/high-voltage/repos","events_url":"https://api.github.com/users/high-voltage/events{/privacy}","received_events_url":"https://api.github.com/users/high-voltage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-18T23:46:40Z","updated_at":"2015-05-24T17:54:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Source-Python-Dev-Team/Source.Python/pulls/55","html_url":"https://github.com/Source-Python-Dev-Team/Source.Python/pull/55","diff_url":"https://github.com/Source-Python-Dev-Team/Source.Python/pull/55.diff","patch_url":"https://github.com/Source-Python-Dev-Team/Source.Python/pull/55.patch"},"body":"As to the issues #52 and #53 I've made changes and tested them, they work well. Maybe you want to use it :)\r\n\r\nWorking example code:\r\n\r\n```\r\n\r\nfrom events import Event\r\n\r\nfrom players.helpers import index_from_userid\r\n\r\nfrom menus import SimpleMenu, SimpleOption, PagedMenu, PagedOption\r\n\r\n\r\n\r\n@Event\r\ndef player_jump(game_event):\r\n    userid = game_event.get_int('userid')\r\n    index = index_from_userid(userid)\r\n    some_menu(index)\r\n    \r\n    \r\ndef some_menu(index):\r\n    menu = SimpleMenu()\r\n    menu.append(SimpleOption(1, 'some other menu', 1))\r\n    menu.select_callback = some_menu_callback\r\n    menu.send(index)\r\n\r\ndef some_menu_callback(menu, index, option):\r\n    if option.value == 1:\r\n        some_other_menu(index)\r\n\r\ndef some_other_menu(index):\r\n    \"\"\"\r\n     Added a \"manual_back_option\" parameter, which is defaulted to None.\r\n     When pressing the \"Back\" button in the first page of the menu,\r\n     this will be passed as option.value in the callback.\r\n    \"\"\"\r\n   \r\n    menu = PagedMenu(manual_back_option='go_back')\r\n    \r\n    for x in range(1, 30):\r\n        menu.append(PagedOption(x, x))\r\n\r\n    menu.select_callback = some_other_menu_callback\r\n    menu.send(index)\r\n\r\ndef some_other_menu_callback(menu, index, option):\r\n    if option.value == \"go_back\":\r\n        return some_menu(index)\r\n\r\n    print(option.value)\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/Source-Python-Dev-Team/Source.Python/issues/comments/105042820","html_url":"https://github.com/Source-Python-Dev-Team/Source.Python/pull/55#issuecomment-105042820","issue_url":"https://api.github.com/repos/Source-Python-Dev-Team/Source.Python/issues/55","id":105042820,"user":{"login":"satoon101","id":5043743,"avatar_url":"https://avatars.githubusercontent.com/u/5043743?v=3","gravatar_id":"","url":"https://api.github.com/users/satoon101","html_url":"https://github.com/satoon101","followers_url":"https://api.github.com/users/satoon101/followers","following_url":"https://api.github.com/users/satoon101/following{/other_user}","gists_url":"https://api.github.com/users/satoon101/gists{/gist_id}","starred_url":"https://api.github.com/users/satoon101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satoon101/subscriptions","organizations_url":"https://api.github.com/users/satoon101/orgs","repos_url":"https://api.github.com/users/satoon101/repos","events_url":"https://api.github.com/users/satoon101/events{/privacy}","received_events_url":"https://api.github.com/users/satoon101/received_events","type":"User","site_admin":false},"created_at":"2015-05-24T17:54:28Z","updated_at":"2015-05-24T17:54:28Z","body":"All menus inherit from list.  This allows you to append options/text to the menu in order."}}