예제 #1
0
 public static uint GetPaletteHighClass(uint uid)
 {
     if (Program.ROM.RomInfo.version() == 7)
     {
         return(UnitFE7Form.GetPaletteHighClass(uid));
     }
     if (Program.ROM.RomInfo.version() == 6)
     {
         return(UnitFE6Form.GetPaletteHighClass(uid));
     }
     //FE8の場合、CC分岐があるので、別途構造体で定義. UnitPaletteForm.cs
     return(U.NOT_FOUND);
 }
예제 #2
0
        //マップ顔画像
        public static Bitmap DrawUnitMapFacePicture(uint uid)
        {
            if (Program.ROM.RomInfo.version() == 6)
            {
                return(UnitFE6Form.DrawUnitMapFacePicture(uid));
            }
            if (uid == 0)
            {
                return(ImageUtil.BlankDummy());
            }
            uid--;

            InputFormRef InputFormRef = Init(null);
            uint         addr         = InputFormRef.IDToAddr(uid);

            if (!U.isSafetyOffset(addr))
            {
                return(ImagePortraitForm.DrawPortraitMap(0));
            }
            uint face_id = Program.ROM.u16(addr + 6);

            return(ImagePortraitForm.DrawPortraitMap(face_id));
        }