void Start() { Assert.IsNotNull(landButton); Assert.IsNotNull(restartButton); Assert.IsNotNull(leaveButton); sLeaveButton = leaveButton.GetComponent <LeaveButton>(); sRestartButton = restartButton.GetComponent <RestartButton>(); sLandButton = landButton.GetComponent <LandButton>(); mainMenuOn = false; showAllMainMenuElements(false); }
protected override void RegisterPart(SceneObjectPart part) { if (part.Name == MONEY_BUTTON) { m_moneyButton = new MoneyButton(m_controller, part); } else if (part.Name == LAND_BUTTON) { m_landButton = new LandButton(m_controller, part); } else if (part.Name == WATER_BUTTON) { m_waterButton = new WaterButton(m_controller, part); } // else if (part.Name == MARKET_BUTTON) // m_marketButton = new MarketButton(m_controller, part); else if (part.Name == STATUS_BUTTON) { m_statusButton = new StatusButton(m_controller, part); } else if (part.Name == PHASE_BUTTON) { m_phaseButton = new PhaseButton(m_controller, part); } else if (part.Name == TIME_REMAINING_BUTTON) { m_timeRemainingButton = new TimeRemainingButton(m_controller, part); } else if (part.Name == END_TURN_BUTTON) { m_endTurnButton = new EndTurnButton(m_controller, part, UserId); } else if (part.Name == SHOW_BROWSER_BUTTON) { m_showBrowserButton = new ShowBrowserButton(m_controller, part, UserId); } else if (part.Name == TICKER_BUTTON) { m_tickerButton = new TickerButton(m_controller, part); } if (part.IsRoot) { RootLocalId = part.LocalId; // XXX: Nasty nasty nasty hack to resolve an issue where attached non-root prims do not always appear // SceneObjectGroup group = part.ParentGroup; // group.HasGroupChanged = true; // group.ScheduleGroupForFullUpdate(); } }
protected override void RegisterPart(SceneObjectPart part) { if (part.Name == MONEY_BUTTON) m_moneyButton = new MoneyButton(m_controller, part); else if (part.Name == LAND_BUTTON) m_landButton = new LandButton(m_controller, part); else if (part.Name == WATER_BUTTON) m_waterButton = new WaterButton(m_controller, part); // else if (part.Name == MARKET_BUTTON) // m_marketButton = new MarketButton(m_controller, part); else if (part.Name == STATUS_BUTTON) m_statusButton = new StatusButton(m_controller, part); else if (part.Name == PHASE_BUTTON) m_phaseButton = new PhaseButton(m_controller, part); else if (part.Name == TIME_REMAINING_BUTTON) m_timeRemainingButton = new TimeRemainingButton(m_controller, part); else if (part.Name == END_TURN_BUTTON) m_endTurnButton = new EndTurnButton(m_controller, part, UserId); else if (part.Name == SHOW_BROWSER_BUTTON) m_showBrowserButton = new ShowBrowserButton(m_controller, part, UserId); else if (part.Name == TICKER_BUTTON) m_tickerButton = new TickerButton(m_controller, part); if (part.IsRoot) { RootLocalId = part.LocalId; // XXX: Nasty nasty nasty hack to resolve an issue where attached non-root prims do not always appear // SceneObjectGroup group = part.ParentGroup; // group.HasGroupChanged = true; // group.ScheduleGroupForFullUpdate(); } }