forked from TeamUlysses/ulx
[FIX] XGUI: Player list on the Cmds tab was not sorted alphabetically.
This commit is contained in:
parent
b3815da088
commit
7e9438d9ba
@ -3,6 +3,7 @@
|
||||
## v3.74 - *(00/00/00)*
|
||||
* [CHANGE] Muted players can no longer use psay (thanks, PixeLInc).
|
||||
* [FIX] Don't respawn when done spectating if the user was not alive to start with (Thanks, PixeLInc).
|
||||
* [FIX] XGUI: Player list on the Cmds tab was not sorted alphabetically.
|
||||
|
||||
## v3.73 - *(03/21/17)*
|
||||
* [CHANGE] Setting an ULX cvar now no longer needless routes the cvar change through the console.
|
||||
|
@ -98,6 +98,7 @@ function cmds.refreshPlist( arg )
|
||||
|
||||
cmds.plist:Clear()
|
||||
cmds.plist:SetMultiSelect( arg.type == ULib.cmds.PlayersArg )
|
||||
|
||||
for _, ply in ipairs( targets ) do
|
||||
local line = cmds.plist:AddLine( ply:Nick(), ply:GetUserGroup() )
|
||||
line.ply = ply
|
||||
@ -122,6 +123,9 @@ function cmds.refreshPlist( arg )
|
||||
cmds.plist:SelectItem( line )
|
||||
end
|
||||
end
|
||||
|
||||
cmds.plist:SortByColumn( 1, false )
|
||||
|
||||
--Select only the first item if multiselect is disabled.
|
||||
if not cmds.plist:GetMultiSelect() then
|
||||
local firstSelected = cmds.plist:GetSelected()[1]
|
||||
|
Loading…
Reference in New Issue
Block a user