Rogue: Savage Rats, a retro-themed dungeon crawler
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.
|
|
|
package mightypork.gamecore.gui.components.layout.linear;
|
|
|
|
|
|
|
|
|
|
|
|
import mightypork.gamecore.gui.components.layout.NullComponent;
|
|
|
|
import mightypork.utils.math.constraints.num.Num;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gap in linear layout
|
|
|
|
*
|
|
|
|
* @author Ondřej Hruška (MightyPork)
|
|
|
|
*/
|
|
|
|
public class LinearGap extends LinearRectangle {
|
|
|
|
|
|
|
|
public LinearGap(Num width) {
|
|
|
|
super(new NullComponent(), width);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public LinearGap(double heightPercent) {
|
|
|
|
this(Num.ZERO);
|
|
|
|
setWidth(height().perc(heightPercent));
|
|
|
|
}
|
|
|
|
}
|