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

#57 - Fixed text padding for the Rule Message

parent 3c32efd4
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ import cz.nic.tablexia.util.ui.TablexiaButton;
*/
public class KidnappingGame extends AbstractTablexiaGame<GameState> {
private static final float RULE_MESSAGE_PAPER_WIDTH = 0.6f;
private static final float RULE_MESSAGE_TEXT_PADDING = 0.7f;
private static final float RULE_MESSAGE_TEXT_PADDING = 0.07f;
private static final float RULE_MESSAGE_FADE_OUT_TIME = 0.5f;
private static final float HELP_OVERLAY_FADE_IN_TIME = 0.5f;
......@@ -173,7 +173,7 @@ public class KidnappingGame extends AbstractTablexiaGame<GameState> {
ruleMessageText.setWrap(true);
ruleMessageText.setAlignment(Align.center);
ruleMessageText.setWidth(getSceneWidth() * RULE_MESSAGE_PAPER_WIDTH - 2 * (getSceneWidth() * RULE_MESSAGE_TEXT_PADDING));
ruleMessageText.setWidth(getSceneWidth() * RULE_MESSAGE_PAPER_WIDTH - (2 * (getSceneWidth() * RULE_MESSAGE_TEXT_PADDING)));
ruleMessageText.setPosition(getSceneLeftX() + getSceneWidth() / 2 - ruleMessageText.getWidth() / 2,
getSceneInnerBottomY() + getSceneInnerHeight() / 2 - ruleMessageText.getHeight() / 2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment