예제 #1
0
        //------------------------------------------------------------------------------------------------------------------------
        //                                                  DrawMessages()
        //------------------------------------------------------------------------------------------------------------------------
        //Draw messages onto this messagebox
        private void DrawMessages()
        {
            graphics.DrawString("Use ARROWKEYS to navigate. Press SPACE to buy, BKSPACE to sell.", SystemFonts.CaptionFont, Brushes.White, 0, 0);

            string[] messages = shop.GetMessages();
            for (int index = 0; index < messages.Length; index++)
            {
                String message = messages[index];
                graphics.DrawString(message, SystemFonts.CaptionFont, Brushes.White, 0, FontHeight + index * FontHeight);
            }

            graphics.DrawString("Money: " + shop.GetPlayerMoneyString(), SystemFonts.CaptionFont, Brushes.White, 100, 500);

            graphics.DrawString("Press C to change currency", SystemFonts.CaptionFont, Brushes.White, 100, 520);
        }