2017-10-20 02:00:49 +00:00
|
|
|
Class UIP_About extends KFGUI_MultiComponent;
|
|
|
|
|
|
|
|
var const string ForumURL;
|
|
|
|
|
2020-08-12 12:28:23 +00:00
|
|
|
var KFGUI_TextField About;
|
|
|
|
var KFGUI_Button AuthorButton;
|
|
|
|
var KFGUI_Button Forumbutton;
|
|
|
|
|
|
|
|
var localized string AuthorButtonText;
|
|
|
|
var localized string AuthorButtonTooltip;
|
|
|
|
var localized string ForumButtonText;
|
|
|
|
var localized string ForumButtonTooltip;
|
|
|
|
|
2020-09-01 09:04:48 +00:00
|
|
|
var localized string MarcoText;
|
|
|
|
var localized string CreditsText;
|
|
|
|
var localized string ForrestMarkXText;
|
|
|
|
var localized string SheepText;
|
|
|
|
var localized string MysterialText;
|
|
|
|
var localized string PostText;
|
|
|
|
var localized string InklesspenText;
|
|
|
|
var localized string GenzmeyText;
|
|
|
|
|
2020-08-12 12:28:23 +00:00
|
|
|
function InitMenu()
|
|
|
|
{
|
|
|
|
About = KFGUI_TextField(FindComponentID('About'));
|
|
|
|
AuthorButton = KFGUI_Button(FindComponentID('Author'));
|
|
|
|
Forumbutton = KFGUI_Button(FindComponentID('Forum'));
|
2023-05-14 02:49:12 +00:00
|
|
|
|
2020-08-12 12:28:23 +00:00
|
|
|
Super.InitMenu();
|
2023-05-14 02:49:12 +00:00
|
|
|
|
2020-09-01 09:04:48 +00:00
|
|
|
About.SetText("#{F3E2A9}Server Extension Mod#{DEF} - "$MarcoText$" Marco||"$CreditsText$":|#{01DF3A}Forrest Mark X#{DEF} - "$ForrestMarkXText$"|#{FF00FF}Sheep#{DEF} - "$SheepText$"|inklesspen - "$InklesspenText$"|GenZmeY - "$GenzmeyText$"|Mysterial - "$MysterialText$"|"$PostText);
|
2020-08-12 12:28:23 +00:00
|
|
|
AuthorButton.ButtonText=AuthorButtonText;
|
|
|
|
AuthorButton.Tooltip=AuthorButtonTooltip;
|
|
|
|
Forumbutton.ButtonText=ForumButtonText;
|
|
|
|
Forumbutton.Tooltip=ForumButtonTooltip;
|
|
|
|
}
|
|
|
|
|
2017-10-20 02:00:49 +00:00
|
|
|
private final function UniqueNetId GetAuthID()
|
|
|
|
{
|
|
|
|
local UniqueNetId Res;
|
|
|
|
|
|
|
|
class'OnlineSubsystem'.Static.StringToUniqueNetId("0x0110000100E8984E",Res);
|
|
|
|
return Res;
|
|
|
|
}
|
2020-08-12 12:28:23 +00:00
|
|
|
|
2020-11-28 20:04:55 +00:00
|
|
|
function ButtonClicked(KFGUI_Button Sender)
|
2017-10-20 02:00:49 +00:00
|
|
|
{
|
2020-11-28 20:12:58 +00:00
|
|
|
switch (Sender.ID)
|
2017-10-20 02:00:49 +00:00
|
|
|
{
|
|
|
|
case 'Forum':
|
|
|
|
class'GameEngine'.static.GetOnlineSubsystem().OpenURL(ForumURL);
|
|
|
|
break;
|
|
|
|
case 'Author':
|
|
|
|
OnlineSubsystemSteamworks(class'GameEngine'.static.GetOnlineSubsystem()).ShowProfileUI(0,,GetAuthID());
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultproperties
|
|
|
|
{
|
2020-08-12 12:28:23 +00:00
|
|
|
ForumURL="https://steamcommunity.com/sharedfiles/filedetails/?id=2085786712"
|
2017-10-20 02:00:49 +00:00
|
|
|
|
|
|
|
Begin Object Class=KFGUI_TextField Name=AboutText
|
2020-08-12 12:28:23 +00:00
|
|
|
ID="About"
|
2017-10-20 02:00:49 +00:00
|
|
|
XPosition=0.025
|
|
|
|
YPosition=0.025
|
|
|
|
XSize=0.95
|
|
|
|
YSize=0.8
|
|
|
|
End Object
|
|
|
|
Begin Object Class=KFGUI_Button Name=AboutButton
|
|
|
|
ID="Author"
|
|
|
|
XPosition=0.7
|
|
|
|
YPosition=0.92
|
|
|
|
XSize=0.27
|
|
|
|
YSize=0.06
|
|
|
|
OnClickLeft=ButtonClicked
|
|
|
|
OnClickRight=ButtonClicked
|
|
|
|
End Object
|
|
|
|
Begin Object Class=KFGUI_Button Name=ForumButton
|
|
|
|
ID="Forum"
|
|
|
|
XPosition=0.7
|
|
|
|
YPosition=0.84
|
|
|
|
XSize=0.27
|
|
|
|
YSize=0.06
|
|
|
|
OnClickLeft=ButtonClicked
|
|
|
|
OnClickRight=ButtonClicked
|
|
|
|
End Object
|
2023-05-14 02:49:12 +00:00
|
|
|
|
2017-10-20 02:00:49 +00:00
|
|
|
Components.Add(AboutText)
|
|
|
|
Components.Add(AboutButton)
|
|
|
|
Components.Add(ForumButton)
|
|
|
|
}
|