Skip to content

Instantly share code, notes, and snippets.

@deathponta
Last active December 20, 2016 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deathponta/48910dbe8e215afea9dce9c957a81c41 to your computer and use it in GitHub Desktop.
Save deathponta/48910dbe8e215afea9dce9c957a81c41 to your computer and use it in GitHub Desktop.
【MaxScript】真偽値の反転サンプル
try( DestroyDialog rol_test )catch()
global b = true
rollout rol_test "SwitchTest" width:120 height:32(
button btn1 "押して" pos:[8,8] width:104 height:16
on btn1 pressed do(
b = not b
btn1.text = b as string
)
)
CreateDialog rol_test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment