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) {
|
public static void language(Languages lang) {
|
||||||
Preferences.INSTANCE.put( Preferences.KEY_LANG, lang.code());
|
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() {
|
public static Languages language() {
|
||||||
|
@ -371,11 +367,7 @@ public class ShatteredPixelDungeon extends Game {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean classicFont(){
|
public static boolean classicFont(){
|
||||||
Languages lang = ShatteredPixelDungeon.language();
|
return Preferences.INSTANCE.getBoolean(Preferences.KEY_CLASSICFONT, true);
|
||||||
if (lang == Languages.RUSSIAN || lang == Languages.CHINESE || lang == Languages.KOREAN)
|
|
||||||
return false;
|
|
||||||
else
|
|
||||||
return Preferences.INSTANCE.getBoolean(Preferences.KEY_CLASSICFONT, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void lastClass( int value ) {
|
public static void lastClass( int value ) {
|
||||||
|
|
|
@ -267,7 +267,7 @@ public class WndSettings extends WndTabbed {
|
||||||
chkFont.setRect(0, slots.bottom() + GAP_SML, WIDTH, BTN_HEIGHT);
|
chkFont.setRect(0, slots.bottom() + GAP_SML, WIDTH, BTN_HEIGHT);
|
||||||
chkFont.checked(!ShatteredPixelDungeon.classicFont());
|
chkFont.checked(!ShatteredPixelDungeon.classicFont());
|
||||||
Languages lang = ShatteredPixelDungeon.language();
|
Languages lang = ShatteredPixelDungeon.language();
|
||||||
if (lang != Languages.RUSSIAN && lang != Languages.CHINESE && lang != Languages.KOREAN)
|
if (lang != Languages.CHINESE && lang != Languages.KOREAN)
|
||||||
add(chkFont);
|
add(chkFont);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user