mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-11 11:27:16 +07:00
Minor bugfixes
Removed redundant method call from drawDebugSpecial Fixed issue where resizing MapRenderer was not forcing update
This commit is contained in:
parent
0c4c4a5fb1
commit
0a9b4c5b8e
@ -1105,7 +1105,7 @@ public class MapRenderer {
|
|||||||
batch.begin();
|
batch.begin();
|
||||||
batch.setShader(null);
|
batch.setShader(null);
|
||||||
BitmapFont font = Riiablo.fonts.consolas12;
|
BitmapFont font = Riiablo.fonts.consolas12;
|
||||||
String str = String.format(String.format("%s%n%08x", Map.ID.getName(tile.cell.id), tile.cell.value));
|
String str = String.format("%s%n%08x", Map.ID.getName(tile.cell.id), tile.cell.value);
|
||||||
GlyphLayout layout = new GlyphLayout(font, str, 0, str.length(), font.getColor(), 0, Align.center, false, null);
|
GlyphLayout layout = new GlyphLayout(font, str, 0, str.length(), font.getColor(), 0, Align.center, false, null);
|
||||||
font.draw(batch, layout,
|
font.draw(batch, layout,
|
||||||
px + Tile.WIDTH50,
|
px + Tile.WIDTH50,
|
||||||
|
@ -228,6 +228,7 @@ public class MapViewer extends ApplicationAdapter {
|
|||||||
return true;
|
return true;
|
||||||
case Input.Keys.ALT_LEFT:
|
case Input.Keys.ALT_LEFT:
|
||||||
mapRenderer.resize();
|
mapRenderer.resize();
|
||||||
|
mapRenderer.update(true);
|
||||||
return true;
|
return true;
|
||||||
case Input.Keys.F1:
|
case Input.Keys.F1:
|
||||||
drawCrosshair = !drawCrosshair;
|
drawCrosshair = !drawCrosshair;
|
||||||
|
Loading…
Reference in New Issue
Block a user