mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-08-02 16:09:38 +07:00
more menu table fighting
This commit is contained in:
@ -60,8 +60,22 @@ public class HudFragment extends Fragment{
|
|||||||
|
|
||||||
{
|
{
|
||||||
Table select = new Table(){
|
Table select = new Table(){
|
||||||
public float getPrefWidth(){ return Unit.dp.scl(dsize*4 + 3); }
|
@Override
|
||||||
public float getPrefHeight(){ return Unit.dp.scl(dsize); }
|
public void act(float delta){
|
||||||
|
setSize(getPrefWidth(), getPrefHeight());
|
||||||
|
setPosition(0, 0, Align.topLeft);
|
||||||
|
super.act(delta);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public float getPrefWidth(){
|
||||||
|
return Unit.dp.scl(dsize*4 + 3);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public float getPrefHeight(){
|
||||||
|
return Unit.dp.scl(dsize);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
select.left();
|
select.left();
|
||||||
|
Reference in New Issue
Block a user