mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-27 05:01:38 +00:00
fix clipping
This commit is contained in:
parent
53324b3d08
commit
133c783de0
2 changed files with 2 additions and 1 deletions
|
|
@ -65,6 +65,7 @@ class EndGameGui extends GuiControl {
|
||||||
var nextLevelPreview = new GuiImage(tmpprevtile);
|
var nextLevelPreview = new GuiImage(tmpprevtile);
|
||||||
nextLevelPreview.position = new Vector(-15, 0);
|
nextLevelPreview.position = new Vector(-15, 0);
|
||||||
nextLevelPreview.extent = new Vector(160, 110);
|
nextLevelPreview.extent = new Vector(160, 110);
|
||||||
|
nextLevelPreview.doClipping = true;
|
||||||
nextLevel.addChild(nextLevelPreview);
|
nextLevel.addChild(nextLevelPreview);
|
||||||
|
|
||||||
mission.getNextMission().getPreviewImage(t -> {
|
mission.getNextMission().getPreviewImage(t -> {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ class GuiImage extends GuiControl {
|
||||||
|
|
||||||
public var pressedAction:GuiEvent->Void = null;
|
public var pressedAction:GuiEvent->Void = null;
|
||||||
|
|
||||||
public var doClipping:Bool = true;
|
public var doClipping:Bool = false;
|
||||||
|
|
||||||
public function new(texture:Tile) {
|
public function new(texture:Tile) {
|
||||||
super();
|
super();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue