コード例 #1
0
        public override void SetCurID(int id)
        {
            if (id == -1)
            {
                return;
            }

            int numFonts = ((Vm.Game.GameId == GameId.CurseOfMonkeyIsland) && (Vm.Game.Features.HasFlag(GameFeatures.Demo))) ? 4 : 5;

            Debug.Assert(id < numFonts);
            CurId = id;
            if (_fr[id] == null)
            {
                var fontname = string.Format("font{0}.nut", id);
                _fr[id] = new NutRenderer(Vm, fontname);
            }
            _current = _fr[id];
        }
コード例 #2
0
ファイル: Insane.cs プロジェクト: scemino/nscumm
        public Insane(ScummEngine7 scumm)
        {
            _vm = scumm;

            InitVars();

            if (!(_vm.Game.Features.HasFlag(GameFeatures.Demo) /*&& (_vm.Game.Platform == Platform.Dos)*/))
            {
                _smush_roadrashRip = ReadFileToMem("roadrash.rip");
                _smush_roadrsh2Rip = ReadFileToMem("roadrsh2.rip");
                _smush_roadrsh3Rip = ReadFileToMem("roadrsh3.rip");
                _smush_goglpaltRip = ReadFileToMem("goglpalt.rip");
                _smush_tovista1Flu = ReadFileToMem("tovista1.flu");
                _smush_tovista2Flu = ReadFileToMem("tovista2.flu");
                _smush_toranchFlu = ReadFileToMem("toranch.flu");
                _smush_minedrivFlu = ReadFileToMem("minedriv.flu");
                _smush_minefiteFlu = ReadFileToMem("minefite.flu");

                _smush_bensgoggNut = new NutRenderer(_vm, "bensgogg.nut");
                _smush_bencutNut = new NutRenderer(_vm, "bencut.nut");
            }
            _smush_iconsNut = new NutRenderer(_vm, "icons.nut");
            _smush_icons2Nut = new NutRenderer(_vm, "icons2.nut");
        }
コード例 #3
0
ファイル: CharsetRendererNut.cs プロジェクト: scemino/nscumm
        public override void SetCurID(int id)
        {
            if (id == -1)
                return;

            int numFonts = ((Vm.Game.GameId == GameId.CurseOfMonkeyIsland) && (Vm.Game.Features.HasFlag(GameFeatures.Demo))) ? 4 : 5;
            Debug.Assert(id < numFonts);
            CurId = id;
            if (_fr[id] == null)
            {
                var fontname = string.Format("font{0}.nut", id);
                _fr[id] = new NutRenderer(Vm, fontname);
            }
            _current = _fr[id];
        }
コード例 #4
0
ファイル: Insane.cs プロジェクト: scemino/nscumm
 void smlayer_drawSomething(byte[] renderBitmap, int codecparam, int x, int y, int arg_10, NutRenderer nutfile,
                            int c, int arg_1C, int arg_20)
 {
     nutfile.DrawFrame(renderBitmap, c, x, y);
 }