コード例 #1
0
ファイル: MessageToken.cs プロジェクト: iliak/EOB2-Extractor
        byte Unk1; // Display text in the bottom of the main menu, or 0xff display message with a OK button and the blue backgroun (?)

        #endregion Fields

        #region Constructors

        /// <summary>
        /// 
        /// </summary>
        /// <param name="script"></param>
        public MessageToken(Script script, Maze maze)
            : base(script)
        {
            MsgId = script.ReadByte();
            Unk0 = script.ReadByte();
            Color = script.ReadByte();
            Unk1 = script.ReadByte();

            Message = maze.GetString(MsgId);
        }
コード例 #2
0
ファイル: TextMenuToken.cs プロジェクト: iliak/EOB2-Extractor
        /// <summary>
        /// 
        /// </summary>
        /// <param name="script"></param>
        public TextMenuToken(Script script, Maze maze)
            : base(script)
        {
            Type = script.ReadByte();
            switch (Type)
            {
                // Display a picture from a CPS file
                case 0xd3:
                {
                    PictureName = script.ReadString(13);        // Name of the cps file
                    X = script.ReadShort();
                    Y = script.ReadShort();
                    unk0 = script.ReadByte();
                    unk1 = script.ReadByte();   // Something to do with palette ??
                    unk2 = script.ReadByte();
                }
                break;

                // Close Dialog
                case 0xd4:
                {

                }
                break;

                //Display background ?
                case 0xd5:
                {

                }
                break;

                // Fade in
                case 0xd6:
                {

                }
                break;

                // Button texts ?
                case 0xd8:
                {
                    TextID = script.ReadAddr();

                    D8_Text = Assets.Text[TextID];
                    D8_Buttons[0] = script.ReadAddr();
                    D8_Buttons[1] = script.ReadAddr();
                    D8_Buttons[2] = script.ReadAddr();

                    D8_Strings[0] = maze.GetString(D8_Buttons[0]);
                    D8_Strings[1] = maze.GetString(D8_Buttons[1]);
                    D8_Strings[2] = maze.GetString(D8_Buttons[2]);
                }
                break;

                case 0xf8:
                {
                    TextID = script.ReadAddr();
                    Y = script.ReadAddr();

                    //F8_Text = maze.GetString(TextID);
                    //if (F8_Text == null)
                        F8_Text= Assets.Text[TextID - 1];
                    F8_Button = maze.GetString(Y);

                }
                break;

                default:
                {

                }
                break;
            }
        }