Weapons are now displayed for players

This commit is contained in:
Anuken
2018-01-06 12:22:05 -05:00
parent 07bc8a04f6
commit 8045c6afb8
7 changed files with 56 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
package io.anuke.mindustry.ui.fragments;
import io.anuke.mindustry.Vars;
import io.anuke.mindustry.core.GameState;
import io.anuke.mindustry.core.GameState.State;
import io.anuke.mindustry.resource.Weapon;
@@ -48,6 +49,7 @@ public class WeaponFragment implements Fragment{
player.weaponLeft = weapon;
}
button.setChecked(true);
Vars.netClient.handleWeaponSwitch();
});
button.update(() -> button.setChecked(weapon == player.weaponLeft || weapon == player.weaponRight)); //TODO