ソースを参照

Adding options to app inputtypes

Ecconia 7 年 前
コミット
592d9140b9
1 ファイル変更20 行追加4 行削除
  1. 20 4
      src/Application/AppPattern.php

+ 20 - 4
src/Application/AppPattern.php

@@ -19,8 +19,12 @@ class AppPattern {
 				{
 					"text": "Age?",
 					"hint": "How old are you? Please leave blank if you don\'t want to tell us!",
+					"optional": true,
 					"type": "age",
-					"optional": true
+					"options": {
+						"min": 1,
+						"max": 150
+					}
 				},
 				{
 					"text": "About how often do you play Minecraft?",
@@ -31,19 +35,31 @@ class AppPattern {
 					"text": "Why are you interested in joining this server?",
 					"hint": "Why would you like to join this server? What can you offer to others on the server? What can this server offer you that other servers can not? Please describe in detail.",
 					"optional": false,
-					"type": "text-box-limited"
+					"type": "text-box-limited",
+					"options": {
+						"min": 270,
+						"steps": 10
+					}
 				},
 				{
 					"text": "Current Redstone knowledge",
 					"hint": "What are your current limits in redstone? Tell us anything you know concerning redstone.",
 					"optional": false,
-					"type": "text-box-limited"
+					"type": "text-box-limited",
+					"options": {
+						"min": 270,
+						"steps": 10
+					}
 				},
 				{
 					"text": "Past Redstone Experience",
 					"hint": "Describe your best Redstone creation(s) to date. Tell us how they work and what kind of Redstone logic was used.",
 					"optional": false,
-					"type": "text-box-limited"
+					"type": "text-box-limited",
+					"options": {
+						"min": 270,
+						"steps": 10
+					}
 				},
 				{
 					"text": "What kind of creations would you like to build on this server?",