Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
119 changes: 119 additions & 0 deletions extensions/community/UserClock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
{
"author": "",
"category": "Input",
"extensionNamespace": "",
"fullName": "UserClock",
"gdevelopVersion": "",
"helpPath": "",
"iconUrl": "",
"name": "UserClock",
"previewIconUrl": "",
"shortDescription": "Displays clock from user's device.",
"version": "1.0.0",
"description": [
"This extension receive user's clock from machine and gets it realtime.",
"",
"How it works: Make a new event, with no condition and as action put: Change text of text to ToString(UserClock::Hour())+\":\"+ToString(UserClock::Minutes())+\":\"+ToString(UserClock::Seconds()) ."
],
"tags": [
"clock",
"input",
"user"
],
"authorIds": [
"cWXitlFXDQWRYOL0LTCKHSo0lkp2"
],
"dependencies": [],
"globalVariables": [],
"sceneVariables": [],
"eventsFunctions": [
{
"description": "Returns the current hour in 24-hour format.",
"fullName": "GetHours",
"functionType": "Expression",
"group": "Time",
"name": "Hours",
"sentence": "",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [],
"actions": [
{
"type": {
"value": "SetReturnNumber"
},
"parameters": [
"ToNumber(ToString(Time(\"hour\")))"
]
}
]
}
],
"expressionType": {
"type": "expression"
},
"parameters": [],
"objectGroups": []
},
{
"description": "Returns the minutes.",
"fullName": "GetMinutes",
"functionType": "Expression",
"group": "Time",
"name": "Minutes",
"sentence": "",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [],
"actions": [
{
"type": {
"value": "SetReturnNumber"
},
"parameters": [
"ToNumber(ToString(Time(\"min\")))"
]
}
]
}
],
"expressionType": {
"type": "expression"
},
"parameters": [],
"objectGroups": []
},
{
"description": "Returns the seconds.",
"fullName": "GetMinutes",
"functionType": "Expression",
"name": "Seconds",
"sentence": "",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [],
"actions": [
{
"type": {
"value": "SetReturnNumber"
},
"parameters": [
"ToNumber(ToString(Time(\"sec\")))"
]
}
]
}
],
"expressionType": {
"type": "expression"
},
"parameters": [],
"objectGroups": []
}
],
"eventsBasedBehaviors": [],
"eventsBasedObjects": []
}