Skip to content

Commit 13b7fd5

Browse files
authored
some necessities
1 parent 9b48b78 commit 13b7fd5

File tree

11 files changed

+66
-7
lines changed

11 files changed

+66
-7
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
- uses: krdlab/setup-haxe@master
1919
with:
20-
haxe-version: 4.3.6
20+
haxe-version: 4.3.7
2121

2222
- name: Restore Previous Cache
2323
id: cache-build-restore

.github/workflows/pages.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@ jobs:
1919

2020
- uses: krdlab/setup-haxe@master
2121
with:
22-
haxe-version: 4.3.6
22+
haxe-version: 4.3.7
2323

2424
- name: Install Haxe Libraries
2525
run: |
2626
haxelib setup ~/haxelib
2727
haxelib install hxcpp > /dev/null
2828
haxelib install lime
2929
haxelib install openfl
30-
haxelib install flixel
31-
haxelib install flixel-addons
30+
haxelib install flixel 6.1.0
31+
haxelib install flixel-addons 3.3.2
3232
haxelib install actuate
3333
haxelib git extension-webm https://github.com/KadeDev/extension-webm
3434
haxelib install hscript

assets/locales/index.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<label id="en-US" language="English" region="United States" />
1616
<label id="es-ES" language="Spanish" region="Spain" />
1717
<label id="fr-FR" language="French" region="France" />
18+
<label id="pt-BR" language="Portuguese" region="Brazil" />
1819
</locale>
1920

2021
<!-- Spanish (Spain) -->
@@ -24,6 +25,7 @@
2425
<label id="en-US" language="Inglés" region="Estados Unidos" />
2526
<label id="es-ES" language="Español" region="España" />
2627
<label id="fr-FR" language="Francés" region="Francia" />
28+
<label id="pt-BR" language="Portugués" region="Brasil" />
2729
</locale>
2830

2931
<!-- French (France) -->
@@ -33,5 +35,16 @@
3335
<label id="en-US" language="Inglés" region="Estados Unidos" />
3436
<label id="es-ES" language="Español" region="España" />
3537
<label id="fr-FR" language="Français" region="France" />
38+
<label id="pt-BR" language="Portugais" region="Brésil" />
39+
</locale>
40+
41+
<!-- Portuguese (Brazil) -->
42+
<locale id="pt-BR" sort="3">
43+
<contributors value="Joalor64" />
44+
<ui language="Langue" region="Région" accept="OK" />
45+
<label id="en-US" language="Inglés" region="Estados Unidos" />
46+
<label id="es-ES" language="Español" region="España" />
47+
<label id="fr-FR" language="Français" region="France" />
48+
<label id="pt-BR" language="Português" region="Brasil" />
3649
</locale>
3750
</data>

assets/locales/pt-BR/data.csv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"flag","content"
2+
"$MISSING_FLAGS","<X> localization flags are missing:"
3+
"$MISSING_FILES","<X> localization files are missing:"
4+
"$FONT_NAME","main.ttf"

assets/locales/pt-BR/fonts.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<data>
3+
<!-- No font replacement rules for Brazilian Portuguese -->
4+
</data>

assets/locales/pt-BR/menu.csv

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"flag","content"
2+
"$START","Iniciar jogo"
3+
"$SETTINGS","Configurações"
4+
"$EXIT","Saída"
5+
"$BACK","Retornar"
6+
"$PAUSE","PAUSADO/A?"
7+
"$GAME_OVER","GAME OVER"
8+
"$LEVEL_COMPLETE","NÍVEL CONCLUÍDO"
9+
"$RESUME","Retomar"
10+
"$RESTART","Reiniciar"
11+
"$CONTINUE","Continuar"
12+
"$RETURN","Menu principal"

assets/locales/pt-BR/playState.csv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"flag","content"
2+
"$COINS","Moedas: <coins>"
3+
"$LIVES","Vidas: <lives>"
4+
"$SCORE","Pontuação: <score>"

assets/locales/pt-BR/settings.csv

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
"flag","content"
2+
"$ON","ATIVADO/A"
3+
"$OFF","NÃO ATIVADO"
4+
"$SETTINGS","CONFIGURAÇÕES"
5+
"$VOLUME","Volume principal"
6+
"$FRAMERATE","Quadros por segundo"
7+
"$FPS_DISP","Contador de FPS"
8+
"$FLSCRN","Tela cheia"
9+
"$SKIP_SPLASH","Pular Splash"
10+
"$LANG","Linguagem"
11+
"$FILTER","Filtro"
12+
"$CTRLS","Controles"
13+
"$DEVICE","ESCOLHA O DISPOSITIVO"
14+
"$KEYBOARD","Teclado"
15+
"$GAMEPAD","Controle de jogo"
16+
"$KBBINDS","ATRIBUIÇÕES DE TECLADO"
17+
"$GPBINDS","ATRIBUIÇÕES DO CONTROLE"
18+
"$PRESS_ANY","PRESSIONE QUALQUER"
19+
"$KEY","TECLA"
20+
"$BTN","BOTÃO"

source/Main.hx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class Main extends openfl.display.Sprite
8585
public static function main():Void
8686
{
8787
#if android
88-
Sys.setCwd(haxe.io.Path.addTrailingSlash(android.os.Build.VERSION.SDK_INT > 30 ? android.content.Context.getObbDir() : android.content.Context.getExternalFilesDir()));
88+
Sys.setCwd(haxe.io.Path.addTrailingSlash(extension.androidtools.os.Build.VERSION.SDK_INT > 30 ? extension.androidtools.content.Context.getObbDir() : extension.androidtools.content.Context.getExternalFilesDir()));
8989
#elseif ios
9090
Sys.setCwd(haxe.io.Path.addTrailingSlash(openfl.filesystem.File.documentsDirectory.nativePath));
9191
#end
@@ -172,6 +172,8 @@ class Main extends openfl.display.Sprite
172172
fpsDisplay = new FPS(10, 10, 0xffffff);
173173
addChild(fpsDisplay);
174174

175+
#if desktop
175176
FlxG.mouse.visible = false;
177+
#end
176178
}
177179
}

source/jta/modding/PolymodHandler.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class PolymodHandler
4141
/**
4242
* The core directory for assets.
4343
*/
44-
static final CORE_DIR:String =
44+
static final CORE_DIR:Null<String> =
4545
#if (REDIRECT_ASSETS_FOLDER && macos)
4646
'../../../../../../../assets'
4747
#elseif REDIRECT_ASSETS_FOLDER

0 commit comments

Comments
 (0)