Removed old korean font / Fixed targeting going through UI
This commit is contained in:
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
Before Width: | Height: | Size: 85 KiB |
@@ -10,11 +10,6 @@ Font: {
|
|||||||
markup: false,
|
markup: false,
|
||||||
scale: 0.5
|
scale: 0.5
|
||||||
},
|
},
|
||||||
korean: {
|
|
||||||
file: korean.fnt,
|
|
||||||
markup: true,
|
|
||||||
scale: 0.5
|
|
||||||
},
|
|
||||||
trad-chinese: {
|
trad-chinese: {
|
||||||
file: trad_chinese.fnt,
|
file: trad_chinese.fnt,
|
||||||
markup: true,
|
markup: true,
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ public class UI extends SceneModule{
|
|||||||
font.getData().setScale(Vars.fontScale);
|
font.getData().setScale(Vars.fontScale);
|
||||||
font.getData().down += Unit.dp.scl(4f);
|
font.getData().down += Unit.dp.scl(4f);
|
||||||
font.getData().lineHeight -= Unit.dp.scl(4.3f);
|
font.getData().lineHeight -= Unit.dp.scl(4.3f);
|
||||||
}, skin.font(), skin.getFont("default-font-chat"), skin.getFont("korean"), skin.getFont("trad-chinese"), skin.getFont("simp-chinese"));
|
}, skin.font(), skin.getFont("default-font-chat"), skin.getFont("trad-chinese"), skin.getFont("simp-chinese"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -546,14 +546,14 @@ public class MobileInput extends InputHandler implements GestureListener{
|
|||||||
|
|
||||||
float worldx = Graphics.world(x, y).x, worldy = Graphics.world(x, y).y;
|
float worldx = Graphics.world(x, y).x, worldy = Graphics.world(x, y).y;
|
||||||
|
|
||||||
checkTargets(worldx, worldy);
|
|
||||||
|
|
||||||
//get tile on cursor
|
//get tile on cursor
|
||||||
Tile cursor = tileAt(x, y);
|
Tile cursor = tileAt(x, y);
|
||||||
|
|
||||||
//ignore off-screen taps
|
//ignore off-screen taps
|
||||||
if(cursor == null || ui.hasMouse(x, y)) return false;
|
if(cursor == null || ui.hasMouse(x, y)) return false;
|
||||||
|
|
||||||
|
checkTargets(worldx, worldy);
|
||||||
|
|
||||||
//remove if request present
|
//remove if request present
|
||||||
if(hasRequest(cursor)){
|
if(hasRequest(cursor)){
|
||||||
removeRequest(getRequest(cursor));
|
removeRequest(getRequest(cursor));
|
||||||
|
|||||||
Reference in New Issue
Block a user