Exemple #1
0
        public SoundSystem(MultiMediaLoader ml)
        {
            for (int i = 0; i < Definitions.TotalPaylines; i++)
            {
                lineSounds[i] = (Sound)ml.GetObject("btn_Line_" + (i + 1).ToString());
            }

            for (int i = 0; i <= Definitions.iconIndexMax; i++)
            {
                iconWinSounds[i] = (Sound)ml.GetObject("anims_Icon_" + (i + 1).ToString());
            }

            for (int i = 0; i < Definitions.magicianDances; i++)
            {
                magicianDances[i] = (Sound)ml.GetObject("anims_Dance_" + (i + 1).ToString());
            }

            buttonPress     = (Sound)ml.GetObject("btn_Press");
            odoTick         = (Sound)ml.GetObject("anims_CreditIncrease");
            wrongButton     = (Sound)ml.GetObject("alrt_WrongPress");
            freeTabsLoop    = (Sound)ml.GetObject("anim_BonusLoop");
            buttonRevealAll = (Sound)ml.GetObject("btn_RevealAllSound");
            iconReveal      = (Sound)ml.GetObject("btn_IconReveal");
            enterFreeTabs   = (Sound)ml.GetObject("alrt_FreeTabs");
        }
Exemple #2
0
        public IconsView(MultiMediaLoader ml)
            : base("IconsView", 0, 0)
        {
            singleton = this;
            //pay lines init
            payLines = new int[Definitions.TotalPaylines * 3, Definitions.reelWidth];
            StateMain.getPaylines(ref payLines);

            // initialize static data for icons
            FramedTexture ftx = (FramedTexture)ml.GetObject("ftx_ovr_SlotIcons");

            Icon.iconImages = new GuiPictureBox(ftx, 0, 0, 0);

            ftx = (FramedTexture)ml.GetObject("ftx_ovr_SlotIcons_Win");
            Icon.winIconImages = new GuiPictureBox(ftx, 0, 0, 0);

            ftx            = (FramedTexture)ml.GetObject("ftx_anim_Reveal");
            Icon.coverAnim = new GuiPictureBox(ftx, 0, 0, 0);

            ftx         = (FramedTexture)ml.GetObject("ftx_ovr_LineLights");
            LineLights  = new GuiPictureBox(ftx, 0, 0, 0);
            fntLineBets = (IFont)ml.GetObject("lineBet_font");

            // Load Boxes and Lines...
            picWinBoxes = new GuiPictureBox[Definitions.TotalPaylines];
            picWinLines = new GuiPictureBox[Definitions.TotalPaylines];

            for (int i = 1; i <= Definitions.TotalPaylines; i++)
            {
                ftx = (FramedTexture)ml.GetObject("ftx_ovr_Line_" + i.ToString() + "_Box");
                picWinBoxes[i - 1] = new GuiPictureBox(ftx, 0, 0, 0);

                ftx = (FramedTexture)ml.GetObject("ftx_ovr_Line_" + i.ToString());
                picWinLines[i - 1] = new GuiPictureBox(ftx, 0, 0, 0);
            }


            //load the overlay...
            ftx            = (FramedTexture)ml.GetObject("ftx_ovr_MainScreen");
            picTabsOverlay = new GuiPictureBox(ftx, 0, 0, 0);

            ftx = (FramedTexture)ml.GetObject("ftx_ovr_MainScreen_ExtraSpins");
            picTabsOverlayFreeTabs = new GuiPictureBox(ftx, 0, 0, 0);
            StateMain.singleton.picMainOverlay.Alpha = 0;

            //loading icon animations ...
            Animation anim = (Animation)ml.GetObject("anim_Win_anim");

            for (int i = 0; i < Definitions.iconIndexMax; i++)
            {
                ftx = (FramedTexture)ml.GetObject("ftx_anim_Win_" + (i + 1).ToString());
                iconAnimations[i] = new AnimatedLabel(anim, ftx, 0, 0);
            }

            // setting icons locations...

            for (int i = 0; i < Definitions.IconsPerTab; i++)
            {
                icons[i] = new Icon();

                icons[i].X      = Definitions.CardLocations[i, 0];
                icons[i].Y      = Definitions.CardLocations[i, 1];
                icons[i].iconNo = (i + 1) % Definitions.iconIndexMax; //for test TBR..
            }

            //almChangeFlashingLine.Enable();
            almFlashLines.Enable();
        }