[client] add colorize param to PlayerView
This commit is contained in:
@@ -49,6 +49,7 @@ class TeamSkin implements ISkin<TeamButton> {
|
||||
|
||||
public var item_index(default, set):Int;
|
||||
public var data(default, set):Array<PlayerState>;
|
||||
public var colorize:Bool;
|
||||
|
||||
@:view var label(default, null):LabelView;
|
||||
@:view var teams(default, null):DataView<TeamId, ToggleButtonView>;
|
||||
@@ -102,7 +103,9 @@ class TeamSkin implements ISkin<TeamButton> {
|
||||
case NONE:
|
||||
player = p;
|
||||
player.controller = HUMAN(item_index);
|
||||
player.color = ColorUtil.multiply(state.config.getTeam(team).color, 1.7);
|
||||
if (colorize) {
|
||||
player.color = ColorUtil.multiply(state.config.getTeam(team).color, 1.7);
|
||||
}
|
||||
break;
|
||||
case _:
|
||||
}
|
||||
|
||||
@@ -26,6 +26,7 @@ import ru.m.tankz.preset.DotaGame;
|
||||
var view = new PlayerView();
|
||||
view.item_index = index;
|
||||
view.data = data;
|
||||
view.colorize = true;
|
||||
return view;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user