feat: AboutPage localization
This commit is contained in:
parent
8f246e9939
commit
cc6f7b34ec
Binary file not shown.
@ -2,6 +2,31 @@ Class UIP_About extends KFGUI_MultiComponent;
|
|||||||
|
|
||||||
var const string ForumURL;
|
var const string ForumURL;
|
||||||
|
|
||||||
|
var KFGUI_TextField About;
|
||||||
|
var KFGUI_Button AuthorButton;
|
||||||
|
var KFGUI_Button Forumbutton;
|
||||||
|
|
||||||
|
var localized string AboutText;
|
||||||
|
var localized string AuthorButtonText;
|
||||||
|
var localized string AuthorButtonTooltip;
|
||||||
|
var localized string ForumButtonText;
|
||||||
|
var localized string ForumButtonTooltip;
|
||||||
|
|
||||||
|
function InitMenu()
|
||||||
|
{
|
||||||
|
About = KFGUI_TextField(FindComponentID('About'));
|
||||||
|
AuthorButton = KFGUI_Button(FindComponentID('Author'));
|
||||||
|
Forumbutton = KFGUI_Button(FindComponentID('Forum'));
|
||||||
|
|
||||||
|
Super.InitMenu();
|
||||||
|
|
||||||
|
About.SetText(AboutText);
|
||||||
|
AuthorButton.ButtonText=AuthorButtonText;
|
||||||
|
AuthorButton.Tooltip=AuthorButtonTooltip;
|
||||||
|
Forumbutton.ButtonText=ForumButtonText;
|
||||||
|
Forumbutton.Tooltip=ForumButtonTooltip;
|
||||||
|
}
|
||||||
|
|
||||||
private final function UniqueNetId GetAuthID()
|
private final function UniqueNetId GetAuthID()
|
||||||
{
|
{
|
||||||
local UniqueNetId Res;
|
local UniqueNetId Res;
|
||||||
@ -9,6 +34,7 @@ private final function UniqueNetId GetAuthID()
|
|||||||
class'OnlineSubsystem'.Static.StringToUniqueNetId("0x0110000100E8984E",Res);
|
class'OnlineSubsystem'.Static.StringToUniqueNetId("0x0110000100E8984E",Res);
|
||||||
return Res;
|
return Res;
|
||||||
}
|
}
|
||||||
|
|
||||||
function ButtonClicked( KFGUI_Button Sender )
|
function ButtonClicked( KFGUI_Button Sender )
|
||||||
{
|
{
|
||||||
switch( Sender.ID )
|
switch( Sender.ID )
|
||||||
@ -24,20 +50,18 @@ function ButtonClicked( KFGUI_Button Sender )
|
|||||||
|
|
||||||
defaultproperties
|
defaultproperties
|
||||||
{
|
{
|
||||||
ForumURL="forums.tripwireinteractive.com/showthread.php?t=106926"
|
ForumURL="https://steamcommunity.com/sharedfiles/filedetails/?id=2085786712"
|
||||||
|
|
||||||
// TODO: localize
|
// TODO: localize
|
||||||
Begin Object Class=KFGUI_TextField Name=AboutText
|
Begin Object Class=KFGUI_TextField Name=AboutText
|
||||||
|
ID="About"
|
||||||
XPosition=0.025
|
XPosition=0.025
|
||||||
YPosition=0.025
|
YPosition=0.025
|
||||||
XSize=0.95
|
XSize=0.95
|
||||||
YSize=0.8
|
YSize=0.8
|
||||||
Text="#{F3E2A9}Server Extension Mod#{DEF} - Written by Marco||Credits:|#{01DF3A}Forrest Mark X#{DEF} - Implementation of first person legs and backpack weapon.|#{FF00FF}Sheep#{DEF} - Beta testing.|Mysterial - For ideas from UT2004RPG mod.|All other beta testers..."
|
|
||||||
End Object
|
End Object
|
||||||
Begin Object Class=KFGUI_Button Name=AboutButton
|
Begin Object Class=KFGUI_Button Name=AboutButton
|
||||||
ID="Author"
|
ID="Author"
|
||||||
ButtonText="Author Profile"
|
|
||||||
Tooltip="Visit this mod authors steam profile"
|
|
||||||
XPosition=0.7
|
XPosition=0.7
|
||||||
YPosition=0.92
|
YPosition=0.92
|
||||||
XSize=0.27
|
XSize=0.27
|
||||||
@ -47,8 +71,6 @@ defaultproperties
|
|||||||
End Object
|
End Object
|
||||||
Begin Object Class=KFGUI_Button Name=ForumButton
|
Begin Object Class=KFGUI_Button Name=ForumButton
|
||||||
ID="Forum"
|
ID="Forum"
|
||||||
ButtonText="Visit Forums"
|
|
||||||
Tooltip="Visit this mods discussion forum"
|
|
||||||
XPosition=0.7
|
XPosition=0.7
|
||||||
YPosition=0.84
|
YPosition=0.84
|
||||||
XSize=0.27
|
XSize=0.27
|
||||||
|
Loading…
Reference in New Issue
Block a user