diff --git a/Localization/INT/ServerExt.int b/Localization/INT/ServerExt.int index cf391c7..3595f78 100644 Binary files a/Localization/INT/ServerExt.int and b/Localization/INT/ServerExt.int differ diff --git a/ServerExt/Classes/UIP_PlayerSpecs.uc b/ServerExt/Classes/UIP_PlayerSpecs.uc index 0f42db9..b12d191 100644 --- a/ServerExt/Classes/UIP_PlayerSpecs.uc +++ b/ServerExt/Classes/UIP_PlayerSpecs.uc @@ -4,6 +4,7 @@ struct FPageExtraInfo { var array UserID; }; + var FPageExtraInfo ExtraInfo[3]; var KFGUI_ColumnList PlayersList,TopPlayers[3]; var KFGUI_SwitchComponent MultiPager; @@ -12,6 +13,31 @@ var byte CurrentPageStatus[3]; var KFGUI_Button PreviousButton; var bool bDownloadingPage; +var KFGUI_Button TopPlaytimeButton; +var KFGUI_Button TopKillsButton; +var KFGUI_Button TopExpButton; + +var localized string ShowStatsButtonText; +var localized string ShowStatsButtonToolTip; +var localized string TopPlaytimeButtonText; +var localized string TopPlaytimeButtonToolTip; +var localized string TopKillsButtonText; +var localized string TopKillsButtonToolTip; +var localized string TopExpButtonText; +var localized string TopExpButtonToolTip; +var localized string PlayerColumnText; +var localized string TotalKillsColumnText; +var localized string TotalExpColumnText; +var localized string TotalPlaytimeColumnText; + +function FColumnItem NewFColumnItem(string Text, float Width) +{ + local FColumnItem NewItem; + NewItem.Text = Text; + NewItem.Width = Width; + return NewItem; +} + function InitMenu() { PreviousButton = KFGUI_Button(FindComponentID('Init')); @@ -21,6 +47,40 @@ function InitMenu() TopPlayers[1] = KFGUI_ColumnList(FindComponentID('Kills')); TopPlayers[2] = KFGUI_ColumnList(FindComponentID('EXP')); MultiPager = KFGUI_SwitchComponent(FindComponentID('Pager')); + + TopPlaytimeButton=KFGUI_Button(FindComponentID('Playtime')); + TopKillsButton=KFGUI_Button(FindComponentID('Kills')); + TopExpButton=KFGUI_Button(FindComponentID('Exp')); + + PreviousButton.ButtonText=ShowStatsButtonText; + PreviousButton.Tooltip=ShowStatsButtonToolTip; + + TopPlaytimeButton.ButtonText=TopPlaytimeButtonText; + TopPlaytimeButton.Tooltip=TopPlaytimeButtonToolTip; + + TopKillsButton.ButtonText=TopKillsButtonText; + TopKillsButton.Tooltip=TopKillsButtonToolTip; + + TopExpButton.ButtonText=TopExpButtonText; + TopExpButton.Tooltip=TopExpButtonToolTip; + + PlayersList.Columns.AddItem(NewFColumnItem(PlayerColumnText,0.55)); + PlayersList.Columns.AddItem(NewFColumnItem(TotalKillsColumnText,0.15)); + PlayersList.Columns.AddItem(NewFColumnItem(TotalExpColumnText,0.15)); + PlayersList.Columns.AddItem(NewFColumnItem(TotalPlaytimeColumnText,0.15)); + + TopPlayers[0].Columns.AddItem(NewFColumnItem("#",0.05)); + TopPlayers[0].Columns.AddItem(NewFColumnItem(PlayerColumnText,0.7)); + TopPlayers[0].Columns.AddItem(NewFColumnItem(TotalPlaytimeColumnText,0.25)); + + TopPlayers[1].Columns.AddItem(NewFColumnItem("#",0.05)); + TopPlayers[1].Columns.AddItem(NewFColumnItem(PlayerColumnText,0.7)); + TopPlayers[1].Columns.AddItem(NewFColumnItem(TotalKillsColumnText,0.25)); + + TopPlayers[2].Columns.AddItem(NewFColumnItem("#",0.05)); + TopPlayers[2].Columns.AddItem(NewFColumnItem(PlayerColumnText,0.7)); + TopPlayers[2].Columns.AddItem(NewFColumnItem(TotalExpColumnText,0.25)); + Super.InitMenu(); } function ShowMenu() @@ -166,10 +226,7 @@ function SelectedRow( KFGUI_ListItem Item, int Row, bool bRight, bool bDblClick defaultproperties { - // TODO: localize Begin Object Class=KFGUI_Button Name=B_ShowStats - ButtonText="Show Stats" - Tooltip="Show the stats of the current players in server" XPosition=0.05 YPosition=0.05 XSize=0.1 @@ -180,8 +237,7 @@ defaultproperties OnClickRight=ButtonClicked End Object Begin Object Class=KFGUI_Button Name=B_ShowTopTime - ButtonText="Top playtime" - Tooltip="Show the top playtime by players in all-time from this server" + ID="Playtime" XPosition=0.35 YPosition=0.05 XSize=0.1 @@ -191,8 +247,7 @@ defaultproperties OnClickRight=ButtonClicked End Object Begin Object Class=KFGUI_Button Name=B_ShowTopKills - ButtonText="Top kills" - Tooltip="Show the top kills by players in all-time from this server" + ID="Kills" XPosition=0.6 YPosition=0.05 XSize=0.1 @@ -202,8 +257,7 @@ defaultproperties OnClickRight=ButtonClicked End Object Begin Object Class=KFGUI_Button Name=B_ShowTopEXP - ButtonText="Top EXP" - Tooltip="Show the top EXP by players in all-time from this server" + ID="Exp" XPosition=0.85 YPosition=0.05 XSize=0.1 @@ -223,34 +277,20 @@ defaultproperties XSize=0.9 YSize=0.85 ID="Pager" - Begin Object Class=KFGUI_ColumnList Name=PlayerList ID="Players" - Columns.Add((Text="Player",Width=0.55)) - Columns.Add((Text="Total Kills",Width=0.15)) - Columns.Add((Text="Total EXP",Width=0.15)) - Columns.Add((Text="Total PlayTime",Width=0.15)) OnSelectedRow=SelectedRow End Object Begin Object Class=KFGUI_ColumnList Name=TopPlaytimes ID="PlayTimes" - Columns.Add((Text="#",Width=0.05)) - Columns.Add((Text="Player",Width=0.7)) - Columns.Add((Text="Total PlayTime",Width=0.25)) OnSelectedRow=SelectedRow End Object Begin Object Class=KFGUI_ColumnList Name=TopKills ID="Kills" - Columns.Add((Text="#",Width=0.05)) - Columns.Add((Text="Player",Width=0.7)) - Columns.Add((Text="Total Kills",Width=0.25)) OnSelectedRow=SelectedRow End Object Begin Object Class=KFGUI_ColumnList Name=TopExp ID="EXP" - Columns.Add((Text="#",Width=0.05)) - Columns.Add((Text="Player",Width=0.7)) - Columns.Add((Text="Total EXP",Width=0.25)) OnSelectedRow=SelectedRow End Object Components.Add(PlayerList)