File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed
ScaleformUI_Lua/src/Menus/PauseMenus/LobbyMenu/Columns Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 98
98
--- Adds a new player to the column.
99
99
--- @param item MissionItem
100
100
function MissionListColumn :AddMissionItem (item )
101
- local pSubT = self .Parent ()
102
101
item .ParentColumn = self
103
102
item .Handle = # self .Items + 1
104
103
self .Items [item .Handle ] = item
@@ -118,12 +117,14 @@ function MissionListColumn:AddMissionItem(item)
118
117
119
118
self .Pagination :MaxItem (self .Pagination :CurrentPageEndIndex ())
120
119
self :_itemCreation (self .Pagination :CurrentPage (), # self .Items , false )
120
+ local pSubT = self .Parent ()
121
121
if pSubT == " PauseMenu" and self .ParentTab .Visible then
122
122
if self .ParentTab .listCol [self .ParentTab :Focus ()] == self then
123
123
self :CurrentSelection (sel )
124
124
end
125
125
end
126
126
end
127
+ local pSubT = self .Parent ()
127
128
if pSubT == " LobbyMenu" then
128
129
ScaleformUI .Scaleforms ._pauseMenu ._lobby :CallFunction (" SET_MISSIONS_SELECTION" , self .Pagination :ScaleformIndex ()) --[[ @as number]]
129
130
ScaleformUI .Scaleforms ._pauseMenu ._lobby :CallFunction (" SET_MISSIONS_QTTY" , self :CurrentSelection (), # self .Items ) --[[ @as number]]
Original file line number Diff line number Diff line change 120
120
--- Adds a new player to the column.
121
121
--- @param item FriendItem
122
122
function PlayerListColumn :AddPlayer (item )
123
- local pSubT = self .Parent ()
124
123
item .ParentColumn = self
125
124
item .Handle = # self .Items + 1
126
125
self .Items [item .Handle ] = item
@@ -140,12 +139,14 @@ function PlayerListColumn:AddPlayer(item)
140
139
141
140
self .Pagination :MaxItem (self .Pagination :CurrentPageEndIndex ())
142
141
self :_itemCreation (self .Pagination :CurrentPage (), # self .Items , false )
142
+ local pSubT = self .Parent ()
143
143
if pSubT == " PauseMenu" and self .ParentTab .Visible then
144
144
if self .ParentTab .listCol [self .ParentTab :Focus ()] == self then
145
145
self :CurrentSelection (sel )
146
146
end
147
147
end
148
148
end
149
+ local pSubT = self .Parent ()
149
150
if pSubT == " LobbyMenu" then
150
151
ScaleformUI .Scaleforms ._pauseMenu ._lobby :CallFunction (" SET_PLAYERS_SELECTION" , self .Pagination :ScaleformIndex ()) --[[ @as number]]
151
152
ScaleformUI .Scaleforms ._pauseMenu ._lobby :CallFunction (" SET_PLAYERS_QTTY" , self :CurrentSelection (), # self .Items ) --[[ @as number]]
Original file line number Diff line number Diff line change 92
92
--- Add a new item to the column.
93
93
--- @param item UIMenuItem | UIMenuListItem | UIMenuCheckboxItem | UIMenuSliderItem | UIMenuProgressItem
94
94
function SettingsListColumn :AddSettings (item )
95
- local pSubT = self .Parent ()
96
95
local a , b = item ()
97
96
if b == " UIMenuItem" then
98
97
item .ParentColumn = self
@@ -116,12 +115,14 @@ function SettingsListColumn:AddSettings(item)
116
115
117
116
self .Pagination :MaxItem (self .Pagination :CurrentPageEndIndex ())
118
117
self :_itemCreation (self .Pagination :CurrentPage (), # self .Items , false )
118
+ local pSubT = self .Parent ()
119
119
if pSubT == " PauseMenu" and self .ParentTab .Visible then
120
120
if self .ParentTab .listCol [self .ParentTab :Focus ()] == self then
121
121
self :CurrentSelection (sel )
122
122
end
123
123
end
124
124
end
125
+ local pSubT = self .Parent ()
125
126
if pSubT == " LobbyMenu" then
126
127
ScaleformUI .Scaleforms ._pauseMenu ._lobby :CallFunction (" SET_SETTINGS_SELECTION" , self .Pagination :ScaleformIndex ()) --[[ @as number]]
127
128
ScaleformUI .Scaleforms ._pauseMenu ._lobby :CallFunction (" SET_SETTINGS_QTTY" , self :CurrentSelection (), # self .Items ) --[[ @as number]]
Original file line number Diff line number Diff line change 92
92
--- Add a new item to the column.
93
93
--- @param item StoreItem
94
94
function StoreListColumn :AddStoreItem (item )
95
- local pSubT = self .Parent ()
96
95
item .ParentColumn = self
97
96
item .Handle = # self .Items + 1
98
97
self .Items [# self .Items + 1 ] = item
@@ -112,12 +111,14 @@ function StoreListColumn:AddStoreItem(item)
112
111
113
112
self .Pagination :MaxItem (self .Pagination :CurrentPageEndIndex ())
114
113
self :_itemCreation (self .Pagination :CurrentPage (), # self .Items , false )
114
+ local pSubT = self .Parent ()
115
115
if pSubT == " PauseMenu" and self .ParentTab .Visible then
116
116
if self .ParentTab .listCol [self .ParentTab :Focus ()] == self then
117
117
self :CurrentSelection (sel )
118
118
end
119
119
end
120
120
end
121
+ local pSubT = self .Parent ()
121
122
if pSubT == " LobbyMenu" then
122
123
ScaleformUI .Scaleforms ._pauseMenu ._lobby :CallFunction (" SET_STORE_SELECTION" , self .Pagination :ScaleformIndex ()) --[[ @as number]]
123
124
ScaleformUI .Scaleforms ._pauseMenu ._lobby :CallFunction (" SET_STORE_QTTY" , self :CurrentSelection (), # self .Items ) --[[ @as number]]
You can’t perform that action at this time.
0 commit comments