Esempio n. 1
0
void SystemInfoView::Update()
{
	if (m_refresh) {
		SystemChanged(Pi::sectorView->GetSelectedSystem());
		m_refresh = false;
	}
}
Esempio n. 2
0
void SystemInfoView::Update()
{
	switch (m_refresh) {
		case REFRESH_ALL:
			SystemChanged(Pi::sectorView->GetSelected());
			m_refresh = REFRESH_NONE;
			assert(NeedsRefresh() == REFRESH_NONE);
			break;
		case REFRESH_SELECTED:
			UpdateIconSelections();
			m_refresh = REFRESH_NONE;
			assert(NeedsRefresh() == REFRESH_NONE);
			break;
		case REFRESH_NONE:
			break;
	}
    UIView::Update();
}