aboutsummaryrefslogtreecommitdiff
path: root/client/menu/credits.gd
blob: 0eccaae26e850e9fd10e953794f1e773814b9507 (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
# 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("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("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],
	]],
]

@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("Hurry Curry! - a game about cooking"),
		tr("developed by"),
		"\n".join(contributors)
	]

	for section in credits:
		text += "[b]%s[/b]\n\n[table=3]" % section[0]
		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]\n\n\n"

	text += "\n[b]%s[/b]\n\n\n[/center]" % tr("Thank You For Playing")

	label.text = text

func _on_back_pressed():
	exit()