{"id":1085,"date":"2018-10-24T20:38:41","date_gmt":"2018-10-24T20:38:41","guid":{"rendered":"https:\/\/lab.florianschwarz.net\/PennController\/?post_type=yada_wiki&#038;p=1085"},"modified":"2018-10-30T16:06:52","modified_gmt":"2018-10-30T16:06:52","slug":"button-settings-once","status":"publish","type":"yada_wiki","link":"https:\/\/lab.florianschwarz.net\/PennController\/wiki\/button-settings-once\/","title":{"rendered":"button.settings.once"},"content":{"rendered":"<p class='command-format'><code>getButton(id).settings.once()<\/code><\/p>\n<p>Disables the button right after it is clicked for the first time.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p>[js highlight=&#8221;3&#8243; try=&#8221;true&#8221;]newButton(&#8220;test&#8221;, &#8220;It&#8217;s a test!&#8221;)<br \/>\n    .settings.log()<br \/>\n    .settings.once()<br \/>\n    .print()<br \/>\n,<br \/>\nnewAudio(&#8220;sound&#8221;, &#8220;test.mp3&#8221;)<br \/>\n    .play()<br \/>\n    .wait()[\/js]<\/p>\n<p>Adds a button to the screen, plays the audio file <em>test.mp3<\/em> and proceeds when the audio is done playing. The button can only be clicked once, and if it is, it will add a line in the results file (see <a href=\"https:\/\/lab.florianschwarz.net\/PennController\/wiki\/audio-settings-log\/\" class=\"wikilink-published\">.settings.log<\/a>).<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"inline_featured_image":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"wiki_cats":[17,13,5,4,14],"wiki_tags":[],"class_list":["post-1085","yada_wiki","type-yada_wiki","status-publish","hentry","wiki_cats-button-element","wiki_cats-command","wiki_cats-documentation","wiki_cats-element","wiki_cats-settings-command"],"_links":{"self":[{"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/yada_wiki\/1085","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/yada_wiki"}],"about":[{"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/types\/yada_wiki"}],"author":[{"embeddable":true,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/comments?post=1085"}],"version-history":[{"count":3,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/yada_wiki\/1085\/revisions"}],"predecessor-version":[{"id":1554,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/yada_wiki\/1085\/revisions\/1554"}],"wp:attachment":[{"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/media?parent=1085"}],"wp:term":[{"taxonomy":"wiki_cats","embeddable":true,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/wiki_cats?post=1085"},{"taxonomy":"wiki_tags","embeddable":true,"href":"https:\/\/lab.florianschwarz.net\/PennController\/wp-json\/wp\/v2\/wiki_tags?post=1085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}