You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
550 B
31 lines
550 B
10 years ago
|
package mightypork.gamecore.gui.screens.impl;
|
||
10 years ago
|
|
||
10 years ago
|
|
||
10 years ago
|
import mightypork.gamecore.gui.components.painters.QuadPainter;
|
||
10 years ago
|
import mightypork.gamecore.gui.screens.Screen;
|
||
10 years ago
|
import mightypork.gamecore.gui.screens.ScreenLayer;
|
||
10 years ago
|
import mightypork.gamecore.util.math.color.Color;
|
||
10 years ago
|
|
||
|
|
||
10 years ago
|
public class LayerColor extends ScreenLayer {
|
||
10 years ago
|
|
||
10 years ago
|
private int zIndex;
|
||
|
|
||
|
|
||
|
public LayerColor(Screen screen, Color color, int zIndex)
|
||
10 years ago
|
{
|
||
10 years ago
|
super(screen);
|
||
|
|
||
|
root.add(new QuadPainter(color));
|
||
10 years ago
|
this.zIndex = zIndex;
|
||
10 years ago
|
}
|
||
10 years ago
|
|
||
|
|
||
10 years ago
|
@Override
|
||
10 years ago
|
public int getZIndex()
|
||
10 years ago
|
{
|
||
10 years ago
|
return this.zIndex;
|
||
10 years ago
|
}
|
||
|
|
||
|
}
|