Beispiel #1
0
        static InputFormRef Init(Form self)
        {
            InputFormRef ifr = new InputFormRef(self
                                                , ""
                                                , Program.ROM.RomInfo.tactician_affinity_pointer
                                                , 0x4
                                                , (int i, uint addr) =>
            {
                if (Program.ROM.RomInfo.is_multibyte)
                {
                    return(i < 48);
                }
                else
                {
                    return(i < 12);
                }
            }
                                                , (int i, uint addr) =>
            {
                uint affinity_id = Program.ROM.u32(addr + 0);
                return(U.ToHexString(affinity_id) + " " + InputFormRef.GetAFFILIATION(affinity_id) + " " + GetName((uint)i));
            }
                                                );

            return(ifr);
        }