aboutsummaryrefslogtreecommitdiff
path: root/client/menu/credits.gd
blob: bcb6d3941bdded0105886e0ce1c6dbf953476ca1 (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
# 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

const SPACER: String = "\n\n\n"

var contributors := ["sofviic", "metamuffin", "nokoe", "tpart", "BigBrotherNii"]
var cc_by_3 := {
	"Game_over.wav": "deleted_user_877451"
}
var cc_by_4 := {
	"Footstep sounds": "Dryoma",
	"Page_Turn_24.wav": "Koops",
	"Pencil, Writing, Close, A.wav": "InspectorJ",
	"Super Dialogue Audio Pack": "Dillon Becker",
	"Universal UI/Menu Soundpack": "Ellr",
	"Woosh Fleuret Escrime B.wav": "toyoto",
}
var cc_by_0 := ["kenney.nl","Kay Lousberg","Quaternius"]
var links := {
	"Creative Commons: By Attribution\n3.0 License":"https://creativecommons.org/licenses/by/3.0",
	"Creative Commons: By Attribution\n4.0 License":"https://creativecommons.org/licenses/by/4.0",
	"Weblate":"https://translate.codeberg.org/projects/hurrycurry/",
}
var thx: String = "[b]"+tr("Thank You For Playing")+"[/b]"

@onready var label = $MarginContainer/Panel/MarginContainer/VBoxContainer/RichTextLabel

func _ready():
	super()
	contributors.shuffle()
	var cont: String
	cont += "\n".join(contributors)
	var title_and_contribors: String = "[center][b]%s[/b]\n\n%s\n\n[b]%s[/b]\n" % [
		tr("Hurry Curry! - a game about cooking"),
		tr("developed by"),
		cont
	]
	label.text += title_and_contribors + SPACER
	
	var cc_3 : String = "[b]"+tr("Licensed under Creative Commons: By Attribution 3.0 License")+"[/b]\n\n[table=3]"
	for i in cc_by_3.keys():
		cc_3 += "[cell]"+i+"[/cell][cell]"+tr("by")+"[/cell][cell]"+cc_by_3[i]+"[/cell]"
	cc_3 += "[/table]"
	label.text += cc_3 + SPACER
	
	var cc_4 : String = "[b]"+tr("Licensed under Creative Commons: By Attribution 4.0 License")+"[/b]\n\n[table=3]"
	for i in cc_by_4.keys():
		cc_4 += "[cell]"+i+"[/cell][cell]"+tr("by")+"[/cell][cell]"+cc_by_4[i]+"[/cell]"
	cc_4 += "[/table]"
	label.text += cc_4 + SPACER
	
	var cc_0: String = "[b]"+tr("Additional CC0 assets by")+"[/b]\n\n"
	cc_0 += "\n".join(cc_by_0)
	label.text += cc_0 + SPACER
	
	var special: String = "[b]"+tr("Support for Translations by")+"[/b]\n\nOur supporters on Weblate"
	label.text += special + SPACER
	
	var info: String = "[b]"+tr("For further information on")+"[/b]\n\n[table=3]"
	for i in links.keys():
		info += "[cell]"+i+"[/cell][cell]"+tr("visit")+"[/cell][cell]"+links[i]+"[/cell]"
	info += "[/table]"
	label.text += info + SPACER
	
	
	label.text += SPACER + thx + SPACER + SPACER + SPACER

func _on_back_pressed():
	exit()