Last active
November 4, 2016 13:23
-
-
Save narumitukasa/32593664c13239d17c32e74742148af6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#イベントポイントの作成 | |
_DEFINE_ :event_point do |id:, x:, y:, width:, height: | | |
_SEND_ [:screen] do | |
_BUTTON_BASE_ id: id, width: width, height: height, x: x, y: y do | |
#背景 | |
_CREATE_ :DrawableLayout, id: :bg, | |
width: width, height: height, bgcolor: [128, 255, 0, 0] | |
_DEFINE_ :on_key_push do | |
_CHECK_ :_TEMP_, not_equal: {event?: true} do | |
_SET_ :_TEMP_, event_id: id | |
end | |
end | |
end | |
end | |
end | |
#シーンの終了処理 | |
_DEFINE_ :scene_end do | |
_SEND_ [:screen] do | |
_SEND_ALL_ do | |
_DELETE_ | |
end | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment