Пример #1
0
        void SetIcon()
        {
            Texture2D tex1 = DMI.LoadTexture(EnabledSymbol);
            Texture2D tex2 = DMI.LoadTexture(DisabledSymbol);

            EnabledTexture  = new TexturePrimitive(tex1, new Vector2((Width - tex1.Width * DMI.MipMapScale) / 2, (Height - tex1.Height * DMI.MipMapScale) / 2));
            DisabledTexture = new TexturePrimitive(tex2, new Vector2((Width - tex2.Width * DMI.MipMapScale) / 2, (Height - tex2.Height * DMI.MipMapScale) / 2));
        }
Пример #2
0
        public override void ScaleChanged()
        {
            ScrollUpTexture[0]   = DMI.LoadTexture("NA_15.bmp");
            ScrollUpTexture[1]   = DMI.LoadTexture("NA_13.bmp");
            ScrollDownTexture[0] = DMI.LoadTexture("NA_16.bmp");
            ScrollDownTexture[1] = DMI.LoadTexture("NA_14.bmp");

            SetFont();
        }
Пример #3
0
        public override void ScaleChanged()
        {
            SpeedIncreaseTexture        = DMI.LoadTexture("PL_21.png");
            SpeedReductionTexture       = DMI.LoadTexture("PL_22.png");
            YellowSpeedReductionTexture = DMI.LoadTexture("PL_23.png");
            for (int i = 1; i < 37; i++)
            {
                if (i == 21)
                {
                    i = 24;
                }
                Texture2D tex = DMI.LoadTexture("PL_" + (i < 10 ? "0" : "") + i + ".png");
                TrackConditionTextureData[i] = tex;
            }
            TrackConditionTextureData[40] = DMI.LoadTexture("PL_tunnel.png");
            TrackConditionTextureData[41] = DMI.LoadTexture("PL_bridge.png");
            TrackConditionTextureData[42] = DMI.LoadTexture("PL_station.png");
            TrackConditionTextureData[43] = DMI.LoadTexture("PL_endoftrack.png");

            SetFont();
        }