Skip to content
Snippets Groups Projects
Commit 91d54b26 authored by Drahomír Karchňák's avatar Drahomír Karchňák
Browse files

#239 Fixed annoying black gaps between the background tiles

parent 2995dcc0
No related merge requests found
......@@ -726,21 +726,34 @@ public class PanoramaScreen extends AbstractTablexiaScreen<int[][]> {
Table group = new Table();
group.setBounds(getSceneLeftX(), getSceneOuterBottomY(), getSceneWidth(), getSceneOuterHeight());
TablexiaNoBlendingImage tile00 = ScaleUtil.createNoBlendingImageToHeight(getScreenTextureRegion(GFX_PATH + "swipe/tile0"), panel.getHeight());
TablexiaNoBlendingImage tile01 = ScaleUtil.createNoBlendingImageToHeight(getScreenTextureRegion(GFX_PATH + "swipe/tile1"), panel.getHeight());
TablexiaNoBlendingImage tile00 = new TablexiaNoBlendingImage(getScreenTextureRegion(GFX_PATH + "swipe/tile0"));
TablexiaNoBlendingImage tile01 = new TablexiaNoBlendingImage(getScreenTextureRegion(GFX_PATH + "swipe/tile1"));
tile00.setSize((int) (panel.getHeight() * (tile00.getWidth() / tile00.getHeight())), panel.getHeight());
tile01.setSize((int) (panel.getHeight() * (tile01.getWidth() / tile01.getHeight())), panel.getHeight());
group.add(tile00).height(tile00.getHeight()).width(tile00.getWidth());
group.add(tile01).height(tile01.getHeight()).width(tile01.getWidth());
//tile2
Stack tile2 = new Stack();
TablexiaNoBlendingImage tile02 = ScaleUtil.createNoBlendingImageToHeight(getScreenTextureRegion(GFX_PATH + "swipe/tile2"), panel.getHeight());
tile2.add(tile02);
tile2.add(ScaleUtil.createImageToHeight(getScreenTextureRegion(GFX_PATH + "swipe/tile2_title"), panel.getHeight()));
TablexiaNoBlendingImage tile02 = new TablexiaNoBlendingImage(getScreenTextureRegion(GFX_PATH + "swipe/tile2"));
tile02.setSize((int) (panel.getHeight() * (tile02.getWidth() / tile02.getHeight())), panel.getHeight());
tile2.add(tile02);
Image tile02_title = new Image(getScreenTextureRegion(GFX_PATH + "swipe/tile2_title"));
tile02_title.setSize((int) (panel.getHeight() * (tile02_title.getWidth() / tile02_title.getHeight())), panel.getHeight());
tile2.add(tile02_title);
group.add(tile2).width(tile02.getWidth()).height(tile02.getHeight());
//tile3
final Image tile3Background = ScaleUtil.createNoBlendingImageToHeight(getScreenTextureRegion(GFX_PATH + "swipe/tile3"), getStage().getHeight());
final Image tile3Title = ScaleUtil.createImageToHeight(getScreenTextureRegion(GFX_PATH + "swipe/tile3_title"), getStage().getHeight());
final TablexiaNoBlendingImage tile3Background = new TablexiaNoBlendingImage(getScreenTextureRegion(GFX_PATH + "swipe/tile3"));
final Image tile3Title = new Image(getScreenTextureRegion(GFX_PATH + "swipe/tile3_title"));
tile3Background.setSize((int) (panel.getHeight() * (tile3Background.getWidth() / tile3Background.getHeight())), panel.getHeight());
tile3Title.setSize((int) (panel.getHeight() * (tile3Title.getWidth() / tile3Title.getHeight())), panel.getHeight());
//Detective door group
final Group detectiveDoor = new Group();
tile3Title.addListener(new ClickListener() {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment