Exemplo n.º 1
0
 internal static void SyncTurnEventWidget(
     GameSession game,
     string panelName,
     TurnEvent turnEvent)
 {
     if (turnEvent == null)
     {
         game.UI.SetPropertyString("turnEventMessage", "text", "");
         game.UI.SetPropertyString("turnEventImage", "sprite", "");
         game.UI.SetVisible("turnEventNext", false);
         game.UI.SetVisible("turnEventPrevious", false);
     }
     else
     {
         game.UI.SetPropertyString("turnEventMessage", "text", turnEvent.GetEventMessage(game));
         game.UI.SetPropertyString("turnEventImage", "texture", TurnEvent.GetTurnEventSprite(game, turnEvent));
         game.UI.SetVisible("turnEventNext", true);
         game.UI.SetVisible("turnEventPrevious", true);
     }
 }