Отсканируй на iPhone, чтобы установить
Roll The Dice For You!
Что нового
Версия 3.2
Updated By Shortcuts blocks
Что делает
Действий: 30-
Choose from MenuNumber
-
Choose from Menu6
-
Random Number
-
Random Number
-
Show Alert
-
Run ShortcutRoll The Dice
-
Choose from Menu12
-
Random Number
-
Random Number
-
Show Alert
-
Run ShortcutRoll The Dice
-
Choose from Menu18
-
Random Number
-
Random Number
-
Show Alert
-
Run ShortcutRoll The Dice
-
Choose from MenuCustom
-
Ask for InputHow much sides
-
If
-
Show Alert…
-
If
-
Random Number
-
Random Number
-
Show Alert
-
Run ShortcutRoll The Dice
-
Get My Shortcuts
-
If
-
Dictionary
-
Run ShortcutShortcuts Updater
-
If
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#include 'actions/shortcuts'
#define color green
#define glyph dice
const IfResult = menu "Number" {
item "6":
randomNumber(1, 6)
randomNumber(1, 6)
confirm("{} And {}")
runSelf(MenuResult)
item "12":
randomNumber(1, 12)
randomNumber(1, 12)
confirm("{} And {}")
runSelf(MenuResult)
item "18":
randomNumber(1, 18)
randomNumber(1, 18)
confirm("{} And {}")
runSelf(MenuResult)
item "Custom":
const ProvidedInput = prompt("How much sides", "Number")
const MenuResult = if ProvidedInput >= 100 {
alert("Is To Much Found In That Number Must Be under 100...", ProvidedInput)
} else {
randomNumber(1, ProvidedInput)
randomNumber(1, ProvidedInput)
confirm("{} And {} ")
}
runSelf(IfResult)
}
const MyShortcuts = getShortcuts()
if MyShortcuts {
const Dictionary = {
"name ": "Roll The Dice",
"shareid": 206,
"version": "3.2"
}
run("Shortcuts Updater", Dictionary)
} else {
}
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от thefinders
Вам также может понравиться
Реклама