Hide map when opening planet map
This commit is contained in:
@@ -399,6 +399,7 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
|||||||
void setup(){
|
void setup(){
|
||||||
zoom = planets.zoom = 1f;
|
zoom = planets.zoom = 1f;
|
||||||
selectAlpha = 1f;
|
selectAlpha = 1f;
|
||||||
|
ui.minimapfrag.hide();
|
||||||
|
|
||||||
clearChildren();
|
clearChildren();
|
||||||
|
|
||||||
|
|||||||
@@ -110,6 +110,10 @@ public class MinimapFragment extends Fragment{
|
|||||||
return shown;
|
return shown;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void hide(){
|
||||||
|
shown = false;
|
||||||
|
}
|
||||||
|
|
||||||
public void toggle(){
|
public void toggle(){
|
||||||
float size = baseSize * zoom * world.width();
|
float size = baseSize * zoom * world.width();
|
||||||
float ratio = (float)renderer.minimap.getTexture().height / renderer.minimap.getTexture().width;
|
float ratio = (float)renderer.minimap.getTexture().height / renderer.minimap.getTexture().width;
|
||||||
|
|||||||
Reference in New Issue
Block a user