Created
April 13, 2018 11:35
-
-
Save deathponta/e076b75f105ac3ac0ab5b2f5709b670a 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
// 現在のシーンを開き直す | |
proc ReOpener(){ | |
$filePath = `file -q -sceneName`; | |
$result = `confirmDialog -title "確認" -message "開き直す?" | |
-button "あい" -button "いいえ" -defaultButton "あい" | |
-cancelButton "いいえ" -dismissString "いいえ"`; | |
if ($result == "あい") { | |
file -f -ignoreVersion -o $filePath; | |
} | |
} | |
ReOpener(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment