v0.3.5: added classic font for cyrillic
This commit is contained in:
parent
8721637362
commit
a5fc42c80d
Binary file not shown.
|
@ -343,10 +343,6 @@ public class ShatteredPixelDungeon extends Game {
|
|||
|
||||
public static void language(Languages lang) {
|
||||
Preferences.INSTANCE.put( Preferences.KEY_LANG, lang.code());
|
||||
if (lang == Languages.RUSSIAN || lang == Languages.CHINESE || lang == Languages.KOREAN)
|
||||
RenderedText.setFont("font.ttf");
|
||||
else if (classicFont())
|
||||
RenderedText.setFont("pixelfont.ttf");
|
||||
}
|
||||
|
||||
public static Languages language() {
|
||||
|
@ -371,10 +367,6 @@ public class ShatteredPixelDungeon extends Game {
|
|||
}
|
||||
|
||||
public static boolean classicFont(){
|
||||
Languages lang = ShatteredPixelDungeon.language();
|
||||
if (lang == Languages.RUSSIAN || lang == Languages.CHINESE || lang == Languages.KOREAN)
|
||||
return false;
|
||||
else
|
||||
return Preferences.INSTANCE.getBoolean(Preferences.KEY_CLASSICFONT, true);
|
||||
}
|
||||
|
||||
|
|
|
@ -267,7 +267,7 @@ public class WndSettings extends WndTabbed {
|
|||
chkFont.setRect(0, slots.bottom() + GAP_SML, WIDTH, BTN_HEIGHT);
|
||||
chkFont.checked(!ShatteredPixelDungeon.classicFont());
|
||||
Languages lang = ShatteredPixelDungeon.language();
|
||||
if (lang != Languages.RUSSIAN && lang != Languages.CHINESE && lang != Languages.KOREAN)
|
||||
if (lang != Languages.CHINESE && lang != Languages.KOREAN)
|
||||
add(chkFont);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user