[editor] fix
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
package ru.m.tankz.editor;
|
package ru.m.tankz.editor;
|
||||||
|
|
||||||
|
|
||||||
import ru.m.tankz.game.Game;
|
import ru.m.tankz.Type;
|
||||||
import ru.m.tankz.editor.MapEditView;
|
import ru.m.tankz.editor.MapEditView;
|
||||||
import ru.m.tankz.game.DotaGame;
|
import ru.m.tankz.game.DotaGame;
|
||||||
import haxework.gui.list.ListView;
|
import haxework.gui.list.ListView;
|
||||||
|
|||||||
@@ -42,9 +42,10 @@ class SpawnPointItem extends BitmapItem<SpawnPointEntity> {
|
|||||||
|
|
||||||
public static function getSrc(value:SpawnPoint, config:Config):String {
|
public static function getSrc(value:SpawnPoint, config:Config):String {
|
||||||
var tankType = config.getTeam(value.team).tanks[0];
|
var tankType = config.getTeam(value.team).tanks[0];
|
||||||
|
var tankConfig = config.getTank(tankType.type);
|
||||||
return switch(value.type) {
|
return switch(value.type) {
|
||||||
case 'eagle': 'resources/images/eagle/eagle-0.png';
|
case 'eagle': 'resources/images/eagle/eagle-0.png';
|
||||||
case 'tank': TankItem.getTankFrames(value.team, value.index, tankType)[0];
|
case 'tank': 'resources/image/tank/${tankConfig.skin}-0.png';
|
||||||
case x: 'resources/images/eagle/eagle-1.png';
|
case x: 'resources/images/eagle/eagle-1.png';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user