MegaMek / megameklab

MegaMekLab is a BattleTech unit modification program. It allows creating and modifying all unit types available in MegaMek from Support Vehicles up to WarShips. It also allows printing record sheets for single or multiple units.
http://www.megamek.org
86 stars 129 forks source link

BUG: No suitable method found for createIcon(Image,Camouflage,JLabel,Entity) #1539

Closed HammerGS closed 2 weeks ago

HammerGS commented 3 months ago

After today's (June 30th) merges in IDEA MML throws the following

C:\IDEA_Workplace\megameklab\megameklab\src\megameklab\ui\dialog\MegaMekLabUnitSelectorDialog.java:160: error: no suitable method found for createIcon(Image,Camouflage,JLabel,Entity)
            EntityImage entityImage = EntityImage.createIcon(base, Camouflage.of(PlayerColour.GOLD), labelImage, selectedEntity);
                                                 ^
    method EntityImage.createIcon(Image,Camouflage,Entity) is not applicable
      (actual and formal argument lists differ in length)
    method EntityImage.createIcon(Image,Image,Camouflage,Entity,int) is not applicable
      (actual and formal argument lists differ in length)
    method EntityImage.createIcon(Image,Image,Camouflage,Entity,int,boolean) is not applicable
      (actual and formal argument lists differ in length)
HammerGS commented 3 months ago

This is also happening in MegaMek

SJuliez commented 2 weeks ago

I assume this was a short-term update problem that is no longer happening.