-
Notifications
You must be signed in to change notification settings - Fork 0
/
fibbage2.py
executable file
·102 lines (91 loc) · 2.91 KB
/
fibbage2.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#!/usr/bin/python3
import jbpp
import jbppui
class Fibbage2(jbppui.JBPPUI):
def __init__(self):
super().__init__()
super().set_game_name("Fibbage2")
super().set_path("assets/games/Fibbage2")
super().set_content_file("content/fibbageshortie.jet")
super().set_question_path("content/fibbageshortie/%s")
super().set_question_file("data.jet")
super().set_content_field("content")
super().set_content_template({"id": 0, "category": "<new>", "x": True, "bumper": ""})
super().set_question_template({
"fields":[
{
"t":"B",
"v":"false",
"n":"HasBumperAudio"
},
{
"t":"B",
"v":"false",
"n":"HasBumperType"
},
{
"t":"B",
"v":"false",
"n":"HasCorrectAudio"
},
{
"t":"B",
"v":"false",
"n":"HasQuestionAudio"
},
{
"t":"S",
"v":"Suggestions (comma separated)",
"n":"Suggestions"
},
{
"t":"S",
"v":"Category",
"n":"Category"
},
{
"t":"S",
"v":"Correct answer",
"n":"CorrectText"
},
{
"t":"S",
"v":"None",
"n":"BumperType"
},
{
"t":"S",
"v":"Question <BLANK>",
"n":"QuestionText"
},
{
"t":"S",
"v":"Alternative spellings (comma separated)",
"n":"AlternateSpellings"
},
{
"t":"A",
"n":"BumperAudio"
},
{
"t":"A",
"v":"372356_0f",
"n":"CorrectAudio"
},
{
"t":"A",
"v":"372353_1",
"n":"QuestionAudio"
}
]
})
super().add_ui_field("Category", jbppui.TEXTBOX, "Category", "category")
super().add_ui_field("Question", jbppui.TEXTBOX, "QuestionText", "What is <BLANK>?")
super().add_ui_field("Answer", jbppui.TEXTBOX, "CorrectText", "")
super().add_ui_field("Alternate spellings", jbppui.TEXTBOX, "AlternateSpellings", "spelling1,spelling2,...")
super().add_ui_field("Suggestions", jbppui.TEXTBOX, "Suggestions", "suggestion1,suggestion2,...")
super().set_display_name("category", jbppui.CONTENT)
super().add_copy_field("Category", "category")
super().main_screen()
app = Fibbage2()
app.root.mainloop()