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

◆ CheckWidth() [2/2]

void UIScriptedMenu::CheckWidth ( )
inlineprotected

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

724 {
725 int w, h;
726 ScreenWidthType widthType;
727 GetScreenSize(w, h);
728
729 if(h > 0)
730 {
731 float ratio = w / h;
732 if(ratio > 1.75)
733 widthType = ScreenWidthType.WIDE;
734 else if(ratio > 1.5)
735 widthType = ScreenWidthType.MEDIUM;
736 else
737 widthType = ScreenWidthType.NARROW;
738 }
739
740 m_Width = w;
741 m_Height = h;
742
743 if (widthType != m_WidthType)
744 {
745 m_WidthType = widthType;
746 #ifdef ENABLE_CAROUSEL
747 if (m_NewsCarousel)
748 {
749 m_NewsCarousel.Destroy();
750 m_NewsCarousel = null;
752 }
753 #endif
754 }
755 }
ScreenWidthType
Определения InventoryMenu.c:2
int m_Height
Определения MainMenu.c:51
int m_Width
Определения MainMenu.c:51
Widget m_NewsCarouselFrame
Определения MainMenu.c:46
ScreenWidthType m_WidthType
Определения MainMenuConsoles.c:41
ref NewsCarousel m_NewsCarousel
Определения MainMenu.c:47
proto void GetScreenSize(out int x, out int y)

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