From 2483ce7db9fbdd3154694d17ad7cf33466e338d2 Mon Sep 17 00:00:00 2001 From: nutbuster Date: Tue, 15 Nov 2022 14:42:19 +1100 Subject: [PATCH 1/2] Grid like credits for translators --- game/src/credits.rpy | 39 +++++++++++++++++++++++++++++++++++---- game/storyline.rpy | 18 +++++++++--------- 2 files changed, 44 insertions(+), 13 deletions(-) diff --git a/game/src/credits.rpy b/game/src/credits.rpy index d48d942..61274f7 100644 --- a/game/src/credits.rpy +++ b/game/src/credits.rpy @@ -5,7 +5,7 @@ init python: #hard code the header & footer #then iterate the list_credits - list_credits = { + list_og_credits = { _('Coded By:'): [ '/dev/non', "[[Untitled]] Anon", @@ -71,6 +71,9 @@ init python: _('Character Design\nContest Winner:'): [ 'Mono Anon', ], + } + + list_translator_credits = { _('Translators (Spanish):'): [ 'Queso2033 Anon', 'TheShadowTrAnon' @@ -92,17 +95,18 @@ init python: SIZE_SNOT_GAMES = 68*3+10 SIZE_TITLE = 32*3+10 SIZE_ENTRY = 26*3+10 + SIZE_TL = 26*2+10 SIZE_ENDER = 52*3+10 #there is line_spacing but don't usei t - textlist.append(Text(_("Snoot Game"), size=SIZE_SNOT_GAMES, **alignargs) + textlist.append(Text(_("Snoot Game"), size=SIZE_SNOT_GAMES, **alignargs)) textlist.append(Null(1, 16*1)) - textlist.append(Text(_("By CaveManon"), size=SIZE_TITLE, **alignargs) + textlist.append(Text(_("By CaveManon"), size=SIZE_TITLE, **alignargs)) textlist.append(Null(1, 16*12)) textlist.append(Text(_("developed in Ren'py"), size=SIZE_ENTRY, **alignargs)) textlist.append(Null(1, 16*12)) - for key, arr in list_credits.items(): + for key, arr in list_og_credits.items(): textlist.append(Text(key, size=SIZE_TITLE, **alignargs)) textlist.append(Null(1, 16*6)) concatstr = "" @@ -111,6 +115,33 @@ init python: textlist.append(Text(concatstr, size=SIZE_ENTRY, **alignargs)) textlist.append(Null(1, 16*2)) + #smaller font and gridonate for translators + TL_WIDTH = 2 + TL_HEIGHT = (len(list_og_credits)+1)//2 + + tgrid = [] + + for key, arr in list_translator_credits.items(): + vb = [] + vb.append(Text(key, size=SIZE_ENTRY, **alignargs)) + vb.append(Null(1, 16*6)) + concatstr = "" + for item in arr: + concatstr += item + '\n' + vb.append(Text(concatstr, size=SIZE_TL, **alignargs)) + vb.append(Null(1, 16*2)) + vb = VBox(*vb) + tgrid.append(vb) + + for x in range(len(tgrid), TL_WIDTH*TL_HEIGHT): + tgrid.append(Null()) + pass + + tgrid = Grid(TL_WIDTH, TL_HEIGHT, *tgrid) + + textlist.append(tgrid) + textlist.append(Null(1, 16*12)) #check + textlist.append(Text(_("T H E E N D"), size=SIZE_ENDER, **alignargs)) textlist.append(Null(1, 16*18)) textlist.append(Text(_("Snoot game started development\n on June 19 2020"), size=SIZE_ENTRY, **alignargs)) diff --git a/game/storyline.rpy b/game/storyline.rpy index c34e97b..19fd324 100644 --- a/game/storyline.rpy +++ b/game/storyline.rpy @@ -55,37 +55,37 @@ label storyline: return image b_credits = Composite( - (1920, 11000+3000), + (1920, 11000+2000), (0, 0), "credits_base", (0, 0), "credits_hbox", - (0, 10060+3000), "b_sketch" + (0, 10060+2000), "b_sketch" ) image c_credits = Composite( - (1920, 11000+3000), + (1920, 11000+1000), (0, 0), "credits_base", (0, 0), "credits_hbox", - (0, 10060+3000), "c_sketch" + (0, 10060+1000), "c_sketch" ) image d_credits = Composite( - (1920, 11000+3000), + (1920, 11000+1000), (0, 0), "credits_base", (0, 0), "credits_hbox", - (0, 10060+3000), "d_sketch" + (0, 10060+1000), "d_sketch" ) label .ending: call get_ending if _return == 4: - show d_credits at Pan((0, -800),(0, 9850+3000), 65) with fade + show d_credits at Pan((0, -800),(0, 9850+1000), 65) with fade elif _return == 3: play music "audio/OST/Dino Destiny Reader.ogg" - show c_credits at Pan((0, -800),(0, 9850+3000), 65) with fade + show c_credits at Pan((0, -800),(0, 9850+1000), 65) with fade else: play music "audio/OST/Dino Destiny Reader.ogg" - show b_credits at Pan((0, -800),(0, 9850+3000), 65) with fade + show b_credits at Pan((0, -800),(0, 9850+2000), 65) with fade pause stop music fadeout 5 scene black with Dissolve(3) From e0d644268eadb1ad84d0bbdc95e4e25b2e61e2d8 Mon Sep 17 00:00:00 2001 From: nutbuster Date: Wed, 16 Nov 2022 08:57:22 +1100 Subject: [PATCH 2/2] Additional Translatable OG Credits --- game/src/credits.rpy | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/game/src/credits.rpy b/game/src/credits.rpy index 61274f7..2bd715e 100644 --- a/game/src/credits.rpy +++ b/game/src/credits.rpy @@ -51,15 +51,15 @@ init python: 'Ionanon' ], _('Additional Artwork by:'): [ - 'Backup Anon 1', - 'Backup Anon 2', - 'Backup Anon 3', - 'Backup Anon 4', - 'Backup Anon 5', - 'Backup Anon 6', + _('Backup Anon 1'), + _('Backup Anon 2'), + _('Backup Anon 3'), + _('Backup Anon 4'), + _('Backup Anon 5'), + _('Backup Anon 6'), ], _("\"Love theme\" by:"): [ - 'Only Person In The Team With A\nPortfolio/Experience Anon', + _('Only Person In The Team With A\nPortfolio/Experience Anon'), ], _('Music By'): [ 'Shampoo Anon',