fixed being able to fade out the ui while swiping
This commit is contained in:
parent
e00b345a81
commit
99b67df6be
1 changed files with 4 additions and 0 deletions
|
@ -110,6 +110,8 @@ namespace TouchyTickets {
|
||||||
map.Draw(time, batch, pos, scale, alpha, false, new RectangleF(Vector2.Zero, mapSize * scale));
|
map.Draw(time, batch, pos, scale, alpha, false, new RectangleF(Vector2.Zero, mapSize * scale));
|
||||||
},
|
},
|
||||||
OnPressed = e => {
|
OnPressed = e => {
|
||||||
|
if (this.swipeProgress != 0)
|
||||||
|
return;
|
||||||
var map = GameImpl.Instance.Map;
|
var map = GameImpl.Instance.Map;
|
||||||
var infoUi = new Group(Anchor.BottomLeft, new Vector2(1));
|
var infoUi = new Group(Anchor.BottomLeft, new Vector2(1));
|
||||||
infoUi.AddChild(new Button(Anchor.AutoInlineIgnoreOverflow, new Vector2(0.5F, 30), Localization.Get("Back")) {
|
infoUi.AddChild(new Button(Anchor.AutoInlineIgnoreOverflow, new Vector2(0.5F, 30), Localization.Get("Back")) {
|
||||||
|
@ -145,6 +147,8 @@ namespace TouchyTickets {
|
||||||
ChildPadding = new Vector2(4),
|
ChildPadding = new Vector2(4),
|
||||||
PositionOffset = new Vector2(0, 1),
|
PositionOffset = new Vector2(0, 1),
|
||||||
OnPressed = e => {
|
OnPressed = e => {
|
||||||
|
if (this.swipeProgress != 0)
|
||||||
|
return;
|
||||||
var map = GameImpl.Instance.Map;
|
var map = GameImpl.Instance.Map;
|
||||||
map.PlacingAttraction = attraction.Value.Create();
|
map.PlacingAttraction = attraction.Value.Create();
|
||||||
// set placing position to center of camera's view
|
// set placing position to center of camera's view
|
||||||
|
|
Loading…
Reference in a new issue