Skip to content
Snippets Groups Projects
Commit 5a231a02 authored by Matyáš Latner's avatar Matyáš Latner
Browse files

Merge branch 'feature-viewport' into 'devel'

#61 Form screen signature pane size and scaling quick fix for iOS using



See merge request !119
parents a1cbb346 0b60cef6
No related merge requests found
......@@ -9,7 +9,6 @@ import java.util.Locale;
import cz.nic.tablexia.bus.ApplicationBus;
import cz.nic.tablexia.game.GameDefinition;
import cz.nic.tablexia.game.difficulty.GameDifficulty;
import cz.nic.tablexia.game.games.kidnapping.KidnappingGame;
import cz.nic.tablexia.loader.application.ApplicationTextManager;
import cz.nic.tablexia.model.User;
import cz.nic.tablexia.screen.AbstractTablexiaScreen;
......
......@@ -180,8 +180,11 @@ public class FormScreen extends AbstractTablexiaScreen<Void> {
});
// signature pen needs to be below pen and stamp
group.addActor(signaturePane = new SignaturePane());
signaturePane.setBounds(600, getStage().getHeight() * 0.1f, 300, getStage().getHeight() * 0.2f);
signaturePane = new SignaturePane();
group.addActor(signaturePane);
signaturePane.setBounds(getSceneWidth() / 2, getSceneInnerHeight() * 0.1f, getSceneInnerHeight() / 2, getSceneInnerHeight() * 0.1f);
signaturePane.setDebug(TablexiaSettings.getInstance().isShowBoundingBoxes());
// pencil and stamp layers
group.addActor(pen = ScaleUtil.createImageWidthPosition(getScreenTextureRegion(GFX_PATH + "pencil_dropped", false), getStage().getWidth() * 0.2f, getStage().getWidth() * 0.85f, getStage().getWidth() * -0.13f));
......
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