Skip to content
Snippets Groups Projects
Commit a1920ba2 authored by Luboš Horáček's avatar Luboš Horáček
Browse files

#22 Moved language dependent assets

parent 2c557bbc
No related branches found
No related tags found
No related merge requests found
Showing
with 1 addition and 12 deletions
File added
File added
File added
File added
File added
File added
File added
File added
File added
......@@ -22,7 +22,6 @@ import cz.nic.tablexia.Tablexia;
import cz.nic.tablexia.TablexiaApplication;
import cz.nic.tablexia.bus.ApplicationBus;
import cz.nic.tablexia.screen.AbstractAutoloadTablexiaScreen;
import cz.nic.tablexia.util.Log;
import cz.nic.tablexia.util.ScaleUtil;
import cz.nic.tablexia.util.ui.dialog.TablexiaDialog;
import cz.nic.tablexia.util.ui.dialog.text.DialogTextContent;
......@@ -56,6 +55,7 @@ public class PanoramaScreen extends AbstractAutoloadTablexiaScreen<Void> {
*/
private Actor prepareBalcony() {
final Group group = new Group();
ScaleUtil.setFullScreen(group, getStage());
boolean isWinter = true;
Image balcony = new Image(getTexture("balcony" + (isWinter ? "_winter" : "")));
......@@ -90,7 +90,6 @@ public class PanoramaScreen extends AbstractAutoloadTablexiaScreen<Void> {
group.addActor(spin);
}
});
ScaleUtil.setFullScreen(group, getStage());
return group;
}
......@@ -113,7 +112,6 @@ public class PanoramaScreen extends AbstractAutoloadTablexiaScreen<Void> {
stage.setVisible(false);
}
stages[0].setVisible(true);
openAction.addActor(newspaperStages);
Image leftFinger = ScaleUtil.createImageWidthPosition(getTexture("newspaper/left_finger"), getStage().getWidth() * 0.2f, getStage().getWidth() * 0.2f - getStage().getWidth() * 0.2f / 2, 0);
......@@ -127,13 +125,11 @@ public class PanoramaScreen extends AbstractAutoloadTablexiaScreen<Void> {
openAction.addActor(leftFinger);
openAction.addActor(rightFinger);
openAction.addListener(new InputListener() {
private boolean dragging, mouse;
private Sound sound;
private float x1start, x2start, x1, x2;
@Override
public boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {
super.touchDown(event, x, y, pointer, button);
......@@ -391,12 +387,8 @@ public class PanoramaScreen extends AbstractAutoloadTablexiaScreen<Void> {
detectiveDoor.addActor(knock);
knock.addAction(Actions.sequence(Actions.delay(0.25f), Actions.fadeOut(0.2f), Actions.removeActor()));
knock.setTouchable(Touchable.disabled);
getSound("tuk_" + knockCount).play();
if (knockCount > 2) {
// TODO show office
Log.info(getClass().getName(), "Show office");
Actor office = prepareOffice();
panel.addAction(Actions.sequence(Actions.moveBy(-getStage().getWidth(), 0, 0.5f), Actions.removeActor()));
panel.getParent().addActor(office);
......@@ -423,13 +415,10 @@ public class PanoramaScreen extends AbstractAutoloadTablexiaScreen<Void> {
*/
private Actor prepareOffice() {
Group group = new Group();
Image background = new Image(getTexture("detectiveoffice"));
ScaleUtil.setFullScreen(background, getStage());
group.addActor(background);
showDialog(1);
ScaleUtil.setFullScreen(group, getStage());
return group;
}
......
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