public MainUiBlock(int _width, int _height) : base(new Rct(0, 0, _width, _height), null, FColor.White) { m_messages = new TurnMessageUiBlock(new Rct(Rct.Left, 0, Rct.Width, MESSAGES_HEIGHT)) {BackgroundColor = FColor.FromArgb(255, 30, 30, 30)}; m_map = new MapUiBlock(new Rct(ContentRct.Left, m_messages.Rct.Height, Rct.Width, Rct.Height - m_messages.Rct.Height - STAT_HEIGHT)); m_stats = new StatsBlock(new Rct(0, Rct.Bottom - STAT_HEIGHT + 1, Rct.Width, STAT_HEIGHT)) {BackgroundColor = FColor.FromArgb(255, 0, 30, 30)}; }
public MainUiBlock(int _width, int _height) : base(new Rct(0, 0, _width, _height), null, FColor.White) { m_messages = new TurnMessageUiBlock(new Rct(Rct.Left, 0, Rct.Width, MESSAGES_HEIGHT)) { BackgroundColor = FColor.FromArgb(255, 30, 30, 30) }; m_map = new MapUiBlock(new Rct(ContentRct.Left, m_messages.Rct.Height, Rct.Width, Rct.Height - m_messages.Rct.Height - STAT_HEIGHT)); m_stats = new StatsBlock(new Rct(0, Rct.Bottom - STAT_HEIGHT + 1, Rct.Width, STAT_HEIGHT)) { BackgroundColor = FColor.FromArgb(255, 0, 30, 30) }; }
public OpenUIBlockMessage(UIBlock _block) { UIBlock = _block; }