Skip to content
This repository has been archived by the owner on Jul 9, 2023. It is now read-only.

Custom language support #133

Draft
wants to merge 79 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
0b65f46
Firsts path
Theoyeah May 20, 2022
e07fdcb
Bro, really?
Wither362 May 21, 2022
db035f5
Ok, the code has to be like this
Wither362 May 21, 2022
d8e353d
Fucking good
Wither362 May 21, 2022
a57eb35
Update PlayState.hx
Wither362 May 21, 2022
7a6d683
Ready?
Wither362 May 21, 2022
5a04571
Update PlayState.hx
Wither362 May 21, 2022
3564018
Update PlayState.hx
Theoyeah May 21, 2022
e3a5bf1
Ok?
Wither362 May 21, 2022
9871779
Update PlayState.hx
Wither362 May 21, 2022
465bd3e
Update PlayState.hx
Wither362 May 21, 2022
972071c
Update PlayState.hx
Wither362 May 21, 2022
b7d4132
Update PlayState.hx
Wither362 May 21, 2022
17817de
Merge branch 'main' into lagauge
Wither362 May 21, 2022
6a76593
Update PlayState.hx
Wither362 May 21, 2022
eda5659
@Theoyeah, _Bro_, really?
Wither362 May 21, 2022
cca03a4
@Theoyeah, *Bro*, really?
Wither362 May 21, 2022
d584cc8
Merge branch 'main' into lagauge
Wither362 May 21, 2022
a30287d
Dialogue ready
Wither362 May 22, 2022
62f1327
I forget this always!
Wither362 May 22, 2022
3466f85
Added @BeastlyGhost thing
Wither362 May 23, 2022
75f993b
Update PlayState.hx
Wither362 May 23, 2022
9182151
Roses dialogue in pt
Wither362 May 23, 2022
e565c51
Create senpaiDialogue-pt.txt
Wither362 May 23, 2022
f692653
Create thornsDialogue-pt.txt
Wither362 May 23, 2022
573c3cd
Create senpaiDialogue-spanish.txt
Wither362 May 23, 2022
16029cb
Create thornsDialogue-spanish.txt
Wither362 May 23, 2022
1d8ece3
Create rosesDialogue-spanish.txt
Wither362 May 23, 2022
db89e37
Update VisualsUISubState.hx
Wither362 May 23, 2022
f97cec3
Update VisualsUISubState.hx
Wither362 May 23, 2022
b64f008
Can someone please finish it?
Wither362 May 23, 2022
14a5cde
Update PauseSubState.hx
Wither362 May 23, 2022
68f2d17
Update PauseSubState.hx
Wither362 May 23, 2022
7f52af5
Update PauseSubState.hx
Wither362 May 23, 2022
7caed98
Merge branch 'main' into lagauge
Wither362 May 23, 2022
a4ef5d3
Merge branch 'lagauge' of https://github.com/Theoyeah/Theoyeah-Engine…
Theoyeah May 23, 2022
890639d
Senpai done
Theoyeah May 23, 2022
8cbd86e
Update PauseSubState.hx
Wither362 May 23, 2022
8797f38
Merge branch 'main' into lagauge
Wither362 May 23, 2022
c1efa51
Can someone see if this translation is correct?
Wither362 May 24, 2022
dc979a1
Merge branch 'main' into lagauge
Wither362 May 24, 2022
ce22ace
Update ChartingState.hx
Wither362 May 24, 2022
7c0dcad
Really haxe?
Wither362 May 24, 2022
b4e23e0
Update Note.hx
Wither362 May 24, 2022
c16d6a7
Update PlayState.hx
Wither362 May 24, 2022
a6bc6ca
Update PauseSubState.hx
Wither362 May 24, 2022
bfbaacd
Seriously?
Wither362 May 24, 2022
253badd
Update PauseSubState.hx
Wither362 May 24, 2022
4ac9bd8
Update ChartingState.hx
Wither362 May 24, 2022
f45fe60
Update ChartingState.hx
Wither362 May 24, 2022
fbea08c
FREAK
Wither362 May 24, 2022
823d178
Update PauseSubState.hx
Wither362 May 24, 2022
619e1a4
Update ChartingState.hx
Wither362 May 24, 2022
db0cfb3
Update ChartingState.hx
Wither362 May 24, 2022
a1b5a49
Achievements in Spanish
Wither362 May 24, 2022
1739e95
Spanish here is ready
Wither362 May 24, 2022
0fb3278
Merge branch 'main' into lagauge
Wither362 May 24, 2022
9d8101e
Merge branch 'main' into lagauge
Wither362 May 24, 2022
6771a61
Merge branch 'main' into lagauge
Wither362 May 24, 2022
cee7b65
Rating in Spanish, and better dialogue
Wither362 May 24, 2022
2292ecd
Merge branch 'main' into lagauge
Wither362 May 24, 2022
9620031
Update ResetScoreSubState.hx
Wither362 May 24, 2022
d0a3298
Update ChartingState.hx
Wither362 May 25, 2022
e0688dd
Update ChartingState.hx
Wither362 May 25, 2022
99d8fb7
Update ChartingState.hx
Wither362 May 25, 2022
a8ca351
Update ChartingState.hx
Wither362 May 25, 2022
42ad321
This is finished (Spanish)
Wither362 May 25, 2022
5a27f89
Merge branch 'main' into lagauge
Wither362 May 30, 2022
98ebf2a
Maybe?
Wither362 May 30, 2022
fe9a3e4
Update PlayState.hx
Wither362 May 30, 2022
aef3ccf
Merge branch 'main' into lagauge
Wither362 Jun 1, 2022
af5000c
Merge branch 'main' into lagauge
Wither362 Jun 2, 2022
6730dd9
Lol
Wither362 Jun 2, 2022
2da007a
Update PlayState.hx
Wither362 Jun 2, 2022
3b908d0
Merge branch 'main' into lagauge
Theoyeah Jun 20, 2022
50375e3
I have to find a way to make this better
Wither362 Jun 21, 2022
7f2a77e
Update MasterEditorMenu.hx
Wither362 Jun 21, 2022
b80d96e
Update PlayState.hx
Wither362 Jun 21, 2022
c78fce6
Update PlayState.hx
Wither362 Jun 21, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions assets/preload/data/roses/rosesDialogue-french.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:dad:Pas mal pour un minable dégeulase.
:dad:Mais cette fois je Je vais t'arracher les &éçà&çé juste après que ta copine ait fini de me gargariser.
:bf:Bop beep be be skdoo bep
3 changes: 3 additions & 0 deletions assets/preload/data/roses/rosesDialogue-pt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:dad:Nada mal para um verme feio.
:dad:Mas desta vez vou arrancar-te as bolas logo após a sua namorada acabar de gargarejar as minhas.
:bf:Bop beep be skdoo bep
3 changes: 3 additions & 0 deletions assets/preload/data/roses/rosesDialogue-spanish.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:dad:No está mal para un gusano feo.
:dad:Pero esta vez te arrancaré las bolas justo después de que tu novia termine de hacer gárgaras con las mías.
:bf:Bop bip be be skdoo bep
3 changes: 3 additions & 0 deletions assets/preload/data/senpai/senpaiDialogue-french.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:dad:Ah, une nouvelle fille vient chercher la vrai amour.
:dad:Une sérénade entre gentlemen décidera où résidera son beau coeur.
:bf:Beep bo bop
3 changes: 3 additions & 0 deletions assets/preload/data/senpai/senpaiDialogue-pt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:dad:Ah, uma nova donzela veio em busca do verdadeiro amor!
:dad:Uma serenata entre cavalheiros decidirá onde residirá o seu belo coração.
:bf:Beep bo bop bop
3 changes: 3 additions & 0 deletions assets/preload/data/senpai/senpaiDialogue-spanish.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
:dad:¡Ah, una nueva doncella hermosa ha venido en busca del amor verdadero!
:dad:Una serenata entre caballeros decidirá dónde residirá su hermoso corazón.
:bf:Bip bo bop
5 changes: 5 additions & 0 deletions assets/preload/data/thorns/thornsDialogue-french.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
:dad:Contact direct avec des vrais humains, après être blockée ici pour tellement longtemps...
:dad:et ELLE de toutes les personnes.
:dad:Je vais faire payer son père pour tout qu'il on nous a fait,,,,
:dad:Je vais te battre et faire toi prendre ma place.
:dad:Cela ne vous dérange pas que vos corps soient empruntés n'est-ce pas? C'est tellement logique...
5 changes: 5 additions & 0 deletions assets/preload/data/thorns/thornsDialogue-pt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
:dad:Contato direto com humanos reais, depois de estar aqui preso por tanto tempo...
:dad:com ELA de todas as pessoas.
:dad:farei o pai dela pagar pelo que me fez a mim e a todos os outros,,..,
:dad:Vou te derrotar e fazer você tomar meu lugar
:dad:Vocês não se importariam se seus corpos fossem pegos emprestados, certo? É justo...
5 changes: 5 additions & 0 deletions assets/preload/data/thorns/thornsDialogue-spanish.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
:dad:Contacto directo con humanos reales, después de estar atrapado aquí por tanto tiempo...
:dad:y ELLA de todas las personas.
:dad:Haré que su padre pague por lo que me ha hecho a mí y a todos los demás,,,,
:dad:Te golpearé y haré que tomes mi lugar.
:dad:No les importa que sus cuerpos sean prestados, ¿verdad? Que es justo...
44 changes: 41 additions & 3 deletions source/Achievements.hx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,46 @@ import flixel.text.FlxText;
using StringTools;

class Achievements {
public static var achievementsStuff:Array<Dynamic> = [ //Name, Description, Achievement save tag, Hidden achievement, alpha (array)
["Freaky on a Friday Night", "Play on a Friday... Night.", 'friday_night_play', true],
["She Calls Me Daddy Too", "Beat Week 1 with no Misses.", 'week1_nomiss', false],
public static var achievementsStuff:Array<Dynamic> = if(ClientPrefs.language == 'spanish')
[ //Name, Description, Achievement save tag, Hidden achievement
["Freaky on a Friday Night", "Juega un Viernes por la... Noche.", 'friday_night_play', true],
["Ella También Me Llama Daddy", "Termina sin misses la Week 1", 'week1_nomiss', false],
["No Más Truco", "Termina sin misses la Week 2", 'week2_nomiss', false],
['Llámame El Pistolero', "Termina sin misses la Week 3", 'week3_nomiss', false],
["Dama Asesina", "Termina sin misses la Week 4", 'week4_nomiss', false],
["Navidad Con Pocos Misses", "Termina sin misses la Week 5", 'week5_nomiss', false],
["¡¡Highscore!!", "Termina sin misses la Week 6", 'week6_nomiss', false],
["¡Maldita Sea, Maldita Sea!", "Termina sin misses la Week 7", 'week7_nomiss', false],
["¡Qué Desastre Ritmítico!", "Completa una Canción con una valoración de menos de 20%.", 'ur_bad', false],
["Perfeccionista", "Completa una Canción con una valoración del 100%.", 'ur_good', false],
["Estusiasmo Atropellista", "Mira a los Henchmen morir por 100 veces.", 'roadkill_enthusiast', false],
["¿Sobrecantando Mucho...?", "Mantén pulsado una nota por 10 segundos.", 'oversinging', false],
["Hiperactivo", "Completa una Canción sin dejar que se vea el Idle", 'hype', false],
["Solo Nosotros 2", "Completa una Canción con solo pulsando 2 notas.", 'two_keys', false],
["Gamer Tostador", "¿Has intentado jugar el juego en una tostadora?", 'toastie', false],
["Debugger", "Completa la Canción \"Test\" desde el Chart Editor.", 'debugger', true],
["Not Freaky on a Friday Night", "Juega un... ¿Sábado por la Noche?", 'saturday_night_play', true]
] else if (ClientPrefs.language == 'Francais') [
["Freaky dans un vendredi soir", "Jouer le vendredi... soir.", 'friday_night_play', true],
["Elle m'appèlle papa aussi", "Compléter Semaine 1 sans erreur.", 'week1_nomiss', false],
["Plus de blagues", "Compléter Semaine 2 sans erreur.", 'week2_nomiss', false],
["Appèlle moi l'assasin", "Compléter Semaine 3 sans erreur.", 'week3_nomiss', false],
["Tueur de femmes", "Compléter Semaine 4 sans erreur.", 'week4_nomiss', false],
["Noël sans faute", "Compléter Semaine 5 sans erreur.", 'week5_nomiss', false],
["Score élevé!!", "Compléter Semaine 6 sans erreur.", 'week6_nomiss', false],
["Dieu Effing Merde!", "Compléter Semaine 7 sans erreur.", 'week7_nomiss', false],
["Quel Funkin' Désastre!", "Compléter une chanson avec une évaluation de moins de 20%.", 'ur_bad', false],
["Perfectionniste", "Compléter une Chanson avec une évaluation de 100%.", 'ur_good', false],
["Passionné de Roadkill", "Regarder les Henchmen mourir plus de 100 tfois.", 'roadkill_enthusiast', false],
["Chante trop...?", "Clique une note pour 10 secondes.", 'oversinging', false],
["Hyperactive", "Terminez une chanson sans rester inactif.", 'hype', false],
["Juste que nous deux", "Terminez une chanson en pressant que deux clés.", 'two_keys', false],
["Toaster Gamer", "As-tu essayé de jouer ce jeu sur un toaster?", 'toastie', false],
["Débogueur", "Compléter la chanson \"Test\" depuis l'éditeur de Chart.", 'debugger', true],
["Pas Freaky en un vendredi soir", "Jouer en un Samedi... Soir ?", 'saturday_night_play', true]
] else [
["Freaky on a Friday Night", "Play on a Friday... Night.", 'friday_night_play', true],
["She Calls Me Daddy Too", "Beat Week 1 with no Misses.", 'week1_nomiss', false],
["No More Tricks", "Beat Week 2 with no Misses.", 'week2_nomiss', false],
["Call Me The Hitman", "Beat Week 3 with no Misses.", 'week3_nomiss', false],
["Lady Killer", "Beat Week 4 with no Misses.", 'week4_nomiss', false],
Expand All @@ -29,6 +66,7 @@ class Achievements {
["Debugger", "Beat the \"Test\" Stage from the Chart Editor.", 'debugger', true],
["Not Freaky on a Friday Night", "Play on a Saturday... Night ?", 'saturday_night_play', true]
];

public static var achievementsMap:Map<String, Bool> = new Map<String, Bool>();

public static var henchmenDeath:Int = 0;
Expand Down
5 changes: 5 additions & 0 deletions source/ClientPrefs.hx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class ClientPrefs {
public static var noReset:Bool = false;
public static var healthBarAlpha:Float = 1;
public static var controllerMode:Bool = false;
public static var language:String = 'English';
public static var hitsoundVolume:Float = 0;
public static var pauseMusic:String = 'Tea Time';
public static var introbg:Bool = false;
Expand Down Expand Up @@ -139,6 +140,7 @@ class ClientPrefs {
FlxG.save.data.scoreZoom = scoreZoom;
FlxG.save.data.kadetxt = kadetxt;
FlxG.save.data.introbg = introbg;
FlxG.save.data.language = language;
FlxG.save.data.noReset = noReset;
FlxG.save.data.noscore = noscore;
FlxG.save.data.opponentStrums = opponentStrums;
Expand Down Expand Up @@ -217,6 +219,9 @@ class ClientPrefs {
if(FlxG.save.data.globalAntialiasing != null) {
globalAntialiasing = FlxG.save.data.globalAntialiasing;
}
if(FlxG.save.data.language != null) {
language = FlxG.save.data.language;
}
if(FlxG.save.data.noteSplashes != null && Std.isOfType(FlxG.save.data.noteSplashes, noteSplashes)) {
noteSplashes = FlxG.save.data.noteSplashes;
}
Expand Down
5 changes: 4 additions & 1 deletion source/FreeplayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,10 @@ class FreeplayState extends MusicBeatState
ratingSplit[1] += '0';
}

scoreText.text = 'PERSONAL BEST: ' + lerpScore + ' (' + ratingSplit.join('.') + '%)';
scoreText.text = if(ClientPrefs.language == 'Spanish')
'MEJOR PERSONAL: ' + lerpScore + '(' + ratingSplit.join('.') + '%)'
else
'PERSONAL BEST: ' + lerpScore + ' (' + ratingSplit.join('.') + '%)';
positionHighscore();

var upP = controls.UI_UP_P;
Expand Down
12 changes: 6 additions & 6 deletions source/Note.hx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class Note extends FlxSprite

if(noteData > -1 && noteType != value) {
switch(value) {
case 'Hurt Note': // NOTE THAT FOR ALL CUSTOM NOTETYPES YOULL NEED TO ADD THEM TO CHARTING STATE ELSE THE USER CANT USE IT
case 'Hurt Note' | 'Nota Daño': // NOTE THAT FOR ALL CUSTOM NOTETYPES YOULL NEED TO ADD THEM TO CHARTING STATE ELSE THE USER CANT USE IT
ignoreNote = mustPress;
reloadNote('HURT');
noteSplashTexture = 'HURTnoteSplashes';
Expand All @@ -144,7 +144,7 @@ class Note extends FlxSprite
missHealth = 0.3;
}
hitCausesMiss = true;
case 'Instakill Note':
case 'Instakill Note' | 'Nota Instakill':
ignoreNote = mustPress;
reloadNote('INSTAKILL');
noteSplashTexture = 'HURTnoteSplashes';
Expand All @@ -158,7 +158,7 @@ class Note extends FlxSprite
missHealth = 500;//lol you will die
}
hitCausesMiss = true;
case 'Crash Note':
case 'Crash Note' | 'Nota Crash':
ignoreNote = mustPress;
reloadNote('CRASH');
noteSplashTexture = 'HURTnoteSplashes';
Expand All @@ -167,15 +167,15 @@ class Note extends FlxSprite
colorSwap.brightness = 0;
hitByOpponent = false;
hitCausesMiss = true;
case 'Window Note':
case 'Window Note' | 'Nota Window':
ignoreNote = mustPress;
reloadNote('WINDOW');
colorSwap.hue = 0;
colorSwap.saturation = 0;
colorSwap.brightness = 0;
hitByOpponent = false;
hitCausesMiss = true;
case 'Warning Note':
case 'Warning Note' | 'Nota Alerta':
ignoreNote = mustPress;
reloadNote('WARNING');
colorSwap.hue = 0;
Expand All @@ -184,7 +184,7 @@ class Note extends FlxSprite
if (tooLate) {
missHealth = 500;
}
case 'Poisoned Note':
case 'Poisoned Note' | 'Nota Envenenada':
ignoreNote = mustPress;
reloadNote('POISONED');
colorSwap.hue = 0;
Expand Down
Loading