{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/18065","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/18065/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/18065/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/18065/events","html_url":"https://github.com/godotengine/godot/issues/18065","id":312328452,"number":18065,"title":"[suggestion] boolean or if condition to use in gdscript, to detect when code is being exported.","user":{"login":"girng","id":36117592,"avatar_url":"https://avatars0.githubusercontent.com/u/36117592?v=4","gravatar_id":"","url":"https://api.github.com/users/girng","html_url":"https://github.com/girng","followers_url":"https://api.github.com/users/girng/followers","following_url":"https://api.github.com/users/girng/following{/other_user}","gists_url":"https://api.github.com/users/girng/gists{/gist_id}","starred_url":"https://api.github.com/users/girng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/girng/subscriptions","organizations_url":"https://api.github.com/users/girng/orgs","repos_url":"https://api.github.com/users/girng/repos","events_url":"https://api.github.com/users/girng/events{/privacy}","received_events_url":"https://api.github.com/users/girng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-08T18:35:02Z","updated_at":"2018-04-08T18:39:06Z","closed_at":null,"author_association":"NONE","body":"hello my friends!\r\n\r\nso, i was thinking of a cool suggestion but not sure if it's already implemented.\r\n\r\nbut basically, i have a splash screen and i use\r\n`export(bool) var play_splash_screen = false`\r\n\r\nwhich is nice, i can toggle it when editing the scene\r\nhowever, it gets rather annoying to always remember to set it to true before export (as when i'm editing my game i set it to false). my suggestion is if we could could somehow make **it always true, if the code is being exported**.   maybe using a special method similar to `is_editor_hint()` that is `on_game_export()`.\r\n\r\na splash screen is just one example, could be used for many other things\r\n\r\nthanks for reading\r\n"},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/379572150","html_url":"https://github.com/godotengine/godot/issues/18065#issuecomment-379572150","issue_url":"https://api.github.com/repos/godotengine/godot/issues/18065","id":379572150,"user":{"login":"mrcdk","id":483531,"avatar_url":"https://avatars3.githubusercontent.com/u/483531?v=4","gravatar_id":"","url":"https://api.github.com/users/mrcdk","html_url":"https://github.com/mrcdk","followers_url":"https://api.github.com/users/mrcdk/followers","following_url":"https://api.github.com/users/mrcdk/following{/other_user}","gists_url":"https://api.github.com/users/mrcdk/gists{/gist_id}","starred_url":"https://api.github.com/users/mrcdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrcdk/subscriptions","organizations_url":"https://api.github.com/users/mrcdk/orgs","repos_url":"https://api.github.com/users/mrcdk/repos","events_url":"https://api.github.com/users/mrcdk/events{/privacy}","received_events_url":"https://api.github.com/users/mrcdk/received_events","type":"User","site_admin":false},"created_at":"2018-04-08T18:39:06Z","updated_at":"2018-04-08T18:39:06Z","author_association":"CONTRIBUTOR","body":"Looks like `OS.is_debug_build()` is what you are looking for. http://docs.godotengine.org/en/latest/classes/class_os.html#class-os-is-debug-build"}}
{"actor":{"display_login":"mrcdk"}}