private void OnShopUpdated() { string[] messages = TradeLog.GetMessages(); for (int i = 0; i < messages.Length; i++) { AddMessageToPanel(messages[i]); Debug.Log(messages[i]); } }
// Draw messages onto this messagebox private void DrawMessages() { graphics.DrawString("Use ARROWKEYS : Navigate, SPACE : Buy, TAB : Switch inventory, C : Clear, R : Restock, E : Consume", SystemFonts.CaptionFont, Brushes.White, 0, 0); string[] messages = TradeLog.GetMessages(); for (int index = 0; index < messages.Length; index++) { String message = messages[index]; graphics.DrawString(message, SystemFonts.CaptionFont, Brushes.Black, 0, FONT_HEIGHT + index * FONT_HEIGHT); } }