Mit dem iPhone scannen, um zu installieren
Quick and easy rolling of different types of dice. Has a custom die option.
Neue Funktionen
Version 1.0
First release
Was er macht
37 Aktionen-
Choose from MenuWhat Kind?
-
Choose from Menutetrahedron (4 sides)
-
Random Number
-
Show NotificationRolling...
-
Wait
-
Show Notification…
-
Choose from Menunormal die (6 sides)
-
Random Number
-
Show NotificationRolling...
-
Wait
-
Show Notification…
-
Choose from Menuoctahedron (8 sides)
-
Random Number
-
Show NotificationRolling...
-
Wait
-
Show Notification…
-
Choose from Menudodecahedron (12 sides)
-
Random Number
-
Show NotificationRolling...
-
Wait
-
Show Notification…
-
Choose from Menuicosahedron (20 sides)
-
Random Number
-
Show NotificationRolling...
-
Wait
-
Show Notification…
-
Choose from Menucustom die (# number of sides)
-
Ask for InputHow Many Sides?
-
Random Number
-
Show NotificationRolling...
-
Wait
-
Show Notification…
-
Choose from MenuRoll Again?
-
Choose from MenuYes
-
Run ShortcutRoll A Die
-
Choose from MenuNo
-
Stop This Shortcut
Als Code ansehen
Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.
#define color gray
#define glyph boxOutline
menu "What Kind?" {
item "tetrahedron (4 sides)":
randomNumber(1, 4)
showNotification("Rolling... ", false)
wait(0)
showNotification(, false)
item "normal die (6 sides)":
randomNumber(1, 6)
showNotification("Rolling... ", false)
wait(0)
showNotification(, false)
item "octahedron (8 sides)":
randomNumber(1, 8)
showNotification("Rolling... ", false)
wait(0)
showNotification(, false)
item "dodecahedron (12 sides)":
randomNumber(1, 12)
showNotification("Rolling... ", false)
wait(0)
showNotification(, false)
item "icosahedron (20 sides)":
randomNumber(1, 20)
showNotification("Rolling... ", false)
wait(0)
showNotification(, false)
item "custom die (# number of sides)":
const ProvidedInput = prompt("How Many Sides?", "Number")
randomNumber(1, ProvidedInput)
showNotification("Rolling... ", false)
wait(0)
showNotification(, false)
}
menu "Roll Again?" {
item "Yes":
runSelf()
item "No":
stop()
}
In Cherri Playground öffnen
Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.
Bewertungen und Rezensionen
Rezension schreiben–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Werbung
Mehr von theshortcutguy2
Das gefällt dir vielleicht auch
Werbung