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

◆ ScrollToMod()

void ScriptedWidgetEventHandler::ScrollToMod ( ModInfo mod_ref)
inlineprotected

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

86 {
87 /*
88 if( mod_ref )
89 {
90 float scroll_pos_x, scroll_pos_y;
91 float scroll_size_x, scroll_size_y;
92 float mod_pos_x, mod_pos_y;
93 float mod_size_x, mod_size_y;
94
95 Widget mod_widget = m_Data.Get( mod_ref ).GetWidget();
96 if( mod_widget )
97 {
98 m_Content.Update();
99 m_Scroll.Update();
100 m_Scroll.GetScreenPos( scroll_pos_x, scroll_pos_y );
101 m_Scroll.GetScreenSize( scroll_size_x, scroll_size_y );
102 mod_widget.GetScreenPos( mod_pos_x, mod_pos_y );
103 mod_widget.GetScreenSize( mod_size_x, mod_size_y );
104 if( mod_pos_y + mod_size_y >= scroll_pos_y + scroll_size_y )
105 {
106 m_Scroll.VScrollToPos( mod_pos_y + mod_size_y - scroll_pos_y );
107 }
108 else if( mod_pos_y <= scroll_pos_y )
109 {
110 m_Scroll.VScrollToPos( mod_pos_y - scroll_pos_y );
111 }
112 m_Scroll.VScrollToPos( mod_pos_y - scroll_pos_y );
113 }
114 }
115 */
116 }

Используется в Highlight() и Select().