Add monotype icons
This commit is contained in:
1 parent
7b85b92a6e
commit
fcecad8707
10 files changed
+1763
No files matched your search
@@ -36,10 +36,12 @@ export class LoadingScene extends SceneBase {
|
||||
this.loadAtlas('namebox', 'ui');
|
||||
this.loadImage('pbinfo_player', 'ui');
|
||||
this.loadImage('pbinfo_player_mini', 'ui');
|
||||
this.loadAtlas('pbinfo_player_type', 'ui');
|
||||
this.loadAtlas('pbinfo_player_type1', 'ui');
|
||||
this.loadAtlas('pbinfo_player_type2', 'ui');
|
||||
this.loadImage('pbinfo_enemy_mini', 'ui');
|
||||
this.loadImage('pbinfo_enemy_boss', 'ui');
|
||||
this.loadAtlas('pbinfo_enemy_type', 'ui');
|
||||
this.loadAtlas('pbinfo_enemy_type1', 'ui');
|
||||
this.loadAtlas('pbinfo_enemy_type2', 'ui');
|
||||
this.loadImage('overlay_lv', 'ui');
|
||||
|
||||
@@ -206,6 +206,7 @@ export default class BattleInfo extends Phaser.GameObjects.Container {
|
||||
this.shinyIcon.setVisible(pokemon.isShiny());
|
||||
|
||||
const types = pokemon.getTypes(true);
|
||||
this.type1Icon.setTexture(`pbinfo_${this.player ? 'player' : 'enemy'}_type${types.length > 1 ? '1' : ''}`);
|
||||
this.type1Icon.setFrame(Type[types[0]].toLowerCase());
|
||||
this.type2Icon.setVisible(types.length > 1);
|
||||
if (types.length > 1)
|
||||
|
||||
Reference in new issue
Block a user