Beispiel #1
0
        public override void render(Bitmap target)
        {
            string str = "You found the " + item.name + "!";
            target.scaleDraw(Art.items, 3, target.width / 2 - 8 * 3, 2, item.icon * 16, 0, 16, 16, Art.GetColor(item.color));
            target.draw(str, (target.width - str.Length * 6) / 2 + 2, 60 - 10, Art.GetColor(0xffff80));

            str = item.description;
            target.draw(str, (target.width - str.Length * 6) / 2 + 2, 60, Art.GetColor(0xa0a0a0));

            if (tickDelay == 0) target.draw("-> Continue", 40, target.height - 40, Art.GetColor(0xffff80));
        }
Beispiel #2
0
        public override void render(Bitmap target)
        {
            target.draw(Art.logo, 0, 10, 0, 39, 160, 23, Art.GetColor(0xffffff));

            int seconds = player.time / 60;
            int minutes = seconds / 60;
            seconds %= 60;
            string timeString = minutes + ":";
            if (seconds < 10) timeString += "0";
            timeString += seconds;
            target.draw("Trinkets: " + player.loot + "/12", 40, 45 + 10 * 0, Art.GetColor(0x909090));
            target.draw("Time: " + timeString, 40, 45 + 10 * 1, Art.GetColor(0x909090));

            if (tickDelay == 0) target.draw("-> Continue", 40, target.height - 40, Art.GetColor(0xffff80));
        }
Beispiel #3
0
        public override void render(Bitmap target)
        {
            target.fill(0, 0, 160, 120, 0);
            target.draw(Art.logo, 0, 8, 0, 0, 160, 36, Art.GetColor(0xffffff));

            for (int i = 0; i < options.Length; i++)
            {
                string msg = options[i];
                int col = 0x909090;
                if (selected == i)
                {
                    msg = "-> " + msg;
                    col = 0xffff80;
                }
                target.draw(msg, 40, 60 + i * 10, Art.GetColor(col));
            }
            target.draw("Copyright (C) 2011 Mojang", 1 + 4, 120 - 9, Art.GetColor(0x303030));
        }