summaryrefslogtreecommitdiff
path: root/client/menu/credits.gd
blob: 017bf91f98bf8617904b3fb554c7c32b9b334693 (plain)
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
# Hurry Curry! - a game about cooking
# Copyright 2024 metamuffin
# Copyright 2024 nokoe
# Copyright 2024 BigBrotherNii
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, version 3 of the License only.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.
#
extends Menu

var contributors := ["sofviic", "metamuffin", "nokoe", "tpart", "BigBrotherNii"]
const cc_by_4 := "CC-BY 4.0"
const cc_by_3 := "CC-BY 3.0"
const cc0 := "CC0"
var credits := [
	[tr("c.credits.models"), [
		["kenney.nl", "Various Models", cc0],
		["Kay Lousberg", "Kitchen tiles", cc0],
		["Poly by Google", "Strawberry", cc_by_3],
		["Poly by Google", "Fish", cc_by_3]
	]],
	[tr("c.credits.sounds"), [
		["Dryoma", "Footstep sounds", cc_by_4],
		["Koops", "Page_Turn_24.wav", cc_by_4],
		["InspectorJ", "Pencil, Writing, Close, A.wav", cc_by_4],
		["Dillon Becker", "Super Dialogue Audio Pack", cc_by_4],
		["Ellr", "Universal UI/Menu Soundpack", cc_by_4],
		["toyoto", "Woosh Fleuret Escrime B.wav", cc_by_4],
		["deleted_user_877451", "Game_over.wav", cc_by_3],
		["Quaternius", "Someting, dont remember...", cc0],
		["Dillon Becker", "Super Dialogue Audio Pack V1", cc_by_4]
	]],
	[tr("c.credits.translations"), {
		tr("c.settings.ui.language.zh_Hans"): ["Outbreak2096"],
		tr("c.settings.ui.language.zh_Hant"): ["hugoalh"],
		tr("c.settings.ui.language.nl"): ["Vistaus"],
		tr("c.settings.ui.language.it"): ["Miner34"],
		tr("c.settings.ui.language.eu"): ["josuigoa"],
		tr("c.settings.ui.language.fr"): ["fnetX"],
		tr("c.settings.ui.language.pl"): ["tranzystorekk"],
		tr("c.settings.ui.language.he"): ["RustyStriker"],
	}]
]

@onready var label = $OuterMargin/Panel/InnerMargin/Vert/ScrollContainer/CreditsText

func _ready():
	super()
	contributors.shuffle()
	
	var text = "[center]"

	text += "\n\n\n[b]%s[/b]\n\n%s\n\n[b]%s[/b]\n\n\n" % [
		tr("c.credits.title"),
		tr("c.credits.developed_by"),
		"\n".join(contributors)
	]

	for section in credits:
		text += "[b]%s[/b]\n\n" % section[0]
		if typeof(section[1]) == TYPE_DICTIONARY:
			text += "[table=2]"
			for key in section[1]:
				text += "[cell][right]%s[/right][/cell]" % key
				text += "[cell][left]%s[/left][/cell]" % ", ".join(section[1][key])
			text += "[/table]"
		else:
			text += "[table=3]"
			for entry in section[1]:
				text += "[cell][right]%s[/right][/cell]" % entry[0]
				text += "[cell][left]%s[/left][/cell]" % entry[1]
				text += "[cell][left]%s[/left][/cell]" % entry[2]
			text += "[/table]"
		text += "\n\n\n"

	text += "\n[b]%s[/b]\n\n\n[/center]" % tr("c.credits.thanks")

	label.text = text

func _on_back_pressed():
	exit()