DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ CheckWidth() [2/2]

void UIScriptedMenu::CheckWidth ( )
inlineprotected

См. определение в файле MainMenuConsoles.c строка 735

736 {
737 int w, h;
738 ScreenWidthType widthType;
739 GetScreenSize(w, h);
740
741 if(h > 0)
742 {
743 float ratio = w / h;
744 if(ratio > 1.75)
745 widthType = ScreenWidthType.WIDE;
746 else if(ratio > 1.5)
747 widthType = ScreenWidthType.MEDIUM;
748 else
749 widthType = ScreenWidthType.NARROW;
750 }
751
752 m_Width = w;
753 m_Height = h;
754
755 if (widthType != m_WidthType)
756 {
757 m_WidthType = widthType;
758 #ifdef ENABLE_CAROUSEL
760 #endif
761 }
762 }
ScreenWidthType
Определения InventoryMenu.c:2
int m_Height
Определения MainMenu.c:55
void RefreshNewsCarousel()
Определения MainMenu.c:148
int m_Width
Определения MainMenu.c:55
ScreenWidthType m_WidthType
Определения MainMenuConsoles.c:41
proto void GetScreenSize(out int x, out int y)

Перекрестные ссылки GetScreenSize(), m_Height, m_Width, m_WidthType и RefreshNewsCarousel().