Skip to content

Commit

Permalink
Merge pull request #434 from complyue/heading-up-mode
Browse files Browse the repository at this point in the history
heading-up-mode
  • Loading branch information
agateau authored May 5, 2024
2 parents 0cbca1a + d082d32 commit 2b4cfdd
Show file tree
Hide file tree
Showing 27 changed files with 272 additions and 43 deletions.
3 changes: 3 additions & 0 deletions .changes/unreleased/Added-20240505-230711.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Added
body: The "rotate camera" option is back! Thanks to Compl Yue for this work!
time: 2024-05-05T23:07:11.238258542+02:00
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
pip install -r requirements.txt
sudo apt-get update
sudo apt-get install -y gettext libxml2-utils
tools/apply-codingstyle --download-only
- name: Run pre-commit
run: pre-commit run --all
Expand Down
10 changes: 8 additions & 2 deletions android/assets/po/bn.po
Original file line number Diff line number Diff line change
Expand Up @@ -856,15 +856,21 @@ msgstr "সংগীত প্রভাব:"
msgid "Music:"
msgstr "সংগীত"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:273
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:272
msgid "Video"
msgstr "ভিডিও"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:287
msgid "Fullscreen:"
msgstr "বড়পর্দা"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:313
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:302
msgid ""
"Rotate camera\n"
"(experimental):"
msgstr ""

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:327
msgid "CONFIGURE"
msgstr "পাল্টাও"

Expand Down
10 changes: 8 additions & 2 deletions android/assets/po/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -837,15 +837,21 @@ msgstr "Effekte:"
msgid "Music:"
msgstr "Musik:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:273
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:272
msgid "Video"
msgstr "Anzeige"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:287
msgid "Fullscreen:"
msgstr "Vollbildmodus:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:313
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:302
msgid ""
"Rotate camera\n"
"(experimental):"
msgstr ""

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:327
msgid "CONFIGURE"
msgstr "KONFIGURIEREN"

Expand Down
10 changes: 8 additions & 2 deletions android/assets/po/eo.po
Original file line number Diff line number Diff line change
Expand Up @@ -841,15 +841,21 @@ msgstr "Sono FX:"
msgid "Music:"
msgstr "Muziko:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:273
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:272
msgid "Video"
msgstr "Video"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:287
msgid "Fullscreen:"
msgstr "Plenekrane:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:313
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:302
msgid ""
"Rotate camera\n"
"(experimental):"
msgstr ""

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:327
msgid "CONFIGURE"
msgstr "AGORDI"

Expand Down
10 changes: 8 additions & 2 deletions android/assets/po/es.po
Original file line number Diff line number Diff line change
Expand Up @@ -844,15 +844,21 @@ msgstr "Efectos de sonido:"
msgid "Music:"
msgstr "Música:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:273
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:272
msgid "Video"
msgstr "Vídeo"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:287
msgid "Fullscreen:"
msgstr "Pantalla completa:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:313
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:302
msgid ""
"Rotate camera\n"
"(experimental):"
msgstr ""

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:327
msgid "CONFIGURE"
msgstr "CONFIGURAR"

Expand Down
10 changes: 8 additions & 2 deletions android/assets/po/eu.po
Original file line number Diff line number Diff line change
Expand Up @@ -838,15 +838,21 @@ msgstr "Soinu efektuak:"
msgid "Music:"
msgstr "Musika:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:273
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:272
msgid "Video"
msgstr "Bideoa"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:287
msgid "Fullscreen:"
msgstr "Pantaila osoa:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:313
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:302
msgid ""
"Rotate camera\n"
"(experimental):"
msgstr ""

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:327
msgid "CONFIGURE"
msgstr "KONFIGURATU"

Expand Down
10 changes: 8 additions & 2 deletions android/assets/po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -837,15 +837,21 @@ msgstr "Effets sonores :"
msgid "Music:"
msgstr "Musique :"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:273
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:272
msgid "Video"
msgstr "Vidéo"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:287
msgid "Fullscreen:"
msgstr "Plein écran :"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:313
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:302
msgid ""
"Rotate camera\n"
"(experimental):"
msgstr ""

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:327
msgid "CONFIGURE"
msgstr "CONFIGURER"

Expand Down
10 changes: 8 additions & 2 deletions android/assets/po/hu.po
Original file line number Diff line number Diff line change
Expand Up @@ -841,15 +841,21 @@ msgstr "Hanghatások:"
msgid "Music:"
msgstr "Zene:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:273
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:272
msgid "Video"
msgstr "Videó"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:287
msgid "Fullscreen:"
msgstr "Teljes képernyő:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:313
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:302
msgid ""
"Rotate camera\n"
"(experimental):"
msgstr ""

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:327
msgid "CONFIGURE"
msgstr "BEÁLLÍTÁS"

Expand Down
10 changes: 8 additions & 2 deletions android/assets/po/it_IT.po
Original file line number Diff line number Diff line change
Expand Up @@ -847,15 +847,21 @@ msgstr "Effetti sonori:"
msgid "Music:"
msgstr "Musica:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:273
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:272
msgid "Video"
msgstr "Video"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:287
msgid "Fullscreen:"
msgstr "Schermo pieno:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:313
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:302
msgid ""
"Rotate camera\n"
"(experimental):"
msgstr ""

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:327
msgid "CONFIGURE"
msgstr "CONFIGURA"

Expand Down
10 changes: 8 additions & 2 deletions android/assets/po/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -831,15 +831,21 @@ msgstr ""
msgid "Music:"
msgstr ""

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:273
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:272
msgid "Video"
msgstr ""

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:287
msgid "Fullscreen:"
msgstr ""

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:313
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:302
msgid ""
"Rotate camera\n"
"(experimental):"
msgstr ""

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:327
msgid "CONFIGURE"
msgstr ""

Expand Down
10 changes: 8 additions & 2 deletions android/assets/po/nl.po
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ msgstr "Geluidseffecten:"
msgid "Music:"
msgstr "Muziek:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:273
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:272
msgid "Video"
msgstr "Video"

Expand All @@ -852,7 +852,13 @@ msgstr ""
"Schermvullende\n"
"weergave:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:313
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:302
msgid ""
"Rotate camera\n"
"(experimental):"
msgstr ""

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:327
msgid "CONFIGURE"
msgstr "INSTELLEN"

Expand Down
10 changes: 8 additions & 2 deletions android/assets/po/pl.po
Original file line number Diff line number Diff line change
Expand Up @@ -840,15 +840,21 @@ msgstr "Efekty dźwiękowe:"
msgid "Music:"
msgstr "Muzyka:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:273
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:272
msgid "Video"
msgstr "Wideo"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:287
msgid "Fullscreen:"
msgstr "Pełny ekran:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:313
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:302
msgid ""
"Rotate camera\n"
"(experimental):"
msgstr ""

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:327
msgid "CONFIGURE"
msgstr "KONFIGURUJ"

Expand Down
10 changes: 8 additions & 2 deletions android/assets/po/ru.po
Original file line number Diff line number Diff line change
Expand Up @@ -843,15 +843,21 @@ msgstr "Эффекты:"
msgid "Music:"
msgstr "Музыка:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:273
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:272
msgid "Video"
msgstr "Видео"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:287
msgid "Fullscreen:"
msgstr "На весь экран:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:313
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:302
msgid ""
"Rotate camera\n"
"(experimental):"
msgstr ""

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:327
msgid "CONFIGURE"
msgstr "НАСТРОИТЬ"

Expand Down
10 changes: 8 additions & 2 deletions android/assets/po/sv.po
Original file line number Diff line number Diff line change
Expand Up @@ -848,15 +848,21 @@ msgstr "Ljudeffekter:"
msgid "Music:"
msgstr "Musik:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:273
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:272
msgid "Video"
msgstr "Video"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:287
msgid "Fullscreen:"
msgstr "Helskärm:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:313
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:302
msgid ""
"Rotate camera\n"
"(experimental):"
msgstr ""

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:327
msgid "CONFIGURE"
msgstr "KONFIGURERA"

Expand Down
10 changes: 8 additions & 2 deletions android/assets/po/tr.po
Original file line number Diff line number Diff line change
Expand Up @@ -836,15 +836,21 @@ msgstr "Ses Efektleri:"
msgid "Music:"
msgstr "Müzik:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:273
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:272
msgid "Video"
msgstr "Video"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:287
msgid "Fullscreen:"
msgstr "Tam ekran:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:313
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:302
msgid ""
"Rotate camera\n"
"(experimental):"
msgstr ""

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:327
msgid "CONFIGURE"
msgstr "DÜZENLE"

Expand Down
10 changes: 8 additions & 2 deletions android/assets/po/zh_CN.po
Original file line number Diff line number Diff line change
Expand Up @@ -843,15 +843,21 @@ msgstr "音效:"
msgid "Music:"
msgstr "音乐:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:273
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:272
msgid "Video"
msgstr "画面"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:287
msgid "Fullscreen:"
msgstr "全屏:"

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:313
#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:302
msgid ""
"Rotate camera\n"
"(experimental):"
msgstr ""

#: core/src/com/agateau/pixelwheels/screens/ConfigScreen.java:327
msgid "CONFIGURE"
msgstr "配置"

Expand Down
4 changes: 4 additions & 0 deletions core/src/com/agateau/pixelwheels/GameConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public interface ChangeListener {
}

public boolean fullscreen = false;
public boolean headingUpCamera = false;

public boolean playSoundFx = true;
public boolean playMusic = true;
public String languageId = "";
Expand Down Expand Up @@ -65,6 +67,7 @@ public interface ChangeListener {

private void load() {
fullscreen = mPreferences.getBoolean(PrefConstants.FULLSCREEN, false);
headingUpCamera = mPreferences.getBoolean(PrefConstants.HEADING_UP_CAMERA, false);
playSoundFx = mPreferences.getBoolean(PrefConstants.SOUND_FX, true);
playMusic = mPreferences.getBoolean(PrefConstants.MUSIC, true);

Expand Down Expand Up @@ -95,6 +98,7 @@ public void addListener(ChangeListener listener) {

public void flush() {
mPreferences.putBoolean(PrefConstants.FULLSCREEN, fullscreen);
mPreferences.putBoolean(PrefConstants.HEADING_UP_CAMERA, headingUpCamera);
mPreferences.putBoolean(PrefConstants.SOUND_FX, playSoundFx);
mPreferences.putBoolean(PrefConstants.MUSIC, playMusic);

Expand Down
Loading

0 comments on commit 2b4cfdd

Please sign in to comment.