1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-11-10 15:05:23 +03:00

Mobile fix / Readme updated

This commit is contained in:
Anuken 2019-07-06 19:08:16 -04:00
parent ac87930672
commit 07ea938885
2 changed files with 9 additions and 1 deletions

View File

@ -1,4 +1,4 @@
![Imgur](https://i.imgur.com/w4N0yhv.png)
![Logo](core/assets/sprites/logo.png)
[![Build Status](https://travis-ci.org/Anuken/Mindustry.svg?branch=master)](https://travis-ci.org/Anuken/Mindustry)
[![Discord](https://img.shields.io/discord/391020510269669376.svg)](https://discord.gg/mindustry)

View File

@ -14,6 +14,7 @@ import io.anuke.arc.scene.ui.layout.Table;
import io.anuke.arc.scene.ui.layout.Unit;
import io.anuke.arc.util.Align;
import io.anuke.mindustry.core.Platform;
import io.anuke.mindustry.game.EventType.DisposeEvent;
import io.anuke.mindustry.game.EventType.ResizeEvent;
import io.anuke.mindustry.game.Version;
import io.anuke.mindustry.graphics.MenuRenderer;
@ -27,6 +28,13 @@ public class MenuFragment extends Fragment{
private Button currentMenu;
private MenuRenderer renderer;
public MenuFragment(){
Events.on(DisposeEvent.class, event -> {
renderer.dispose();
logo.dispose();
});
}
@Override
public void build(Group parent){
renderer = new MenuRenderer();