From cc6f7b34ec34eb0e6ac3f359c3d4af93010a68c4 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Wed, 12 Aug 2020 15:28:23 +0300 Subject: [PATCH] feat: AboutPage localization --- Localization/INT/ServerExt.int | Bin 35294 -> 36232 bytes ServerExt/Classes/UIP_About.uc | 34 +++++++++++++++++++++++++++------ 2 files changed, 28 insertions(+), 6 deletions(-) diff --git a/Localization/INT/ServerExt.int b/Localization/INT/ServerExt.int index 261208c8a678ba9b17259ede84a58f4d4bd2cde5..e82e1ea84838bbfe8ff2c90c94160818fbbc6492 100644 GIT binary patch delta 860 zcma)4Jxjw-6g_kll!BAEJalqst<^=rA+<&v3iaDHZId?GG%-p2KqVl8I%jlu_80ZH zcdL&P|RjXSQpSiveDU}6*d zsKUTDo^Zl!h#UP?j0@7n01;f)51`QC+R>GD=1tZpl=xn-&Luj-EB3qBXp8Z7!lFk$ zdpy`I7hr@PMnpmd8>nj`2I)*QY#ogtMwukT#pifp$3yq16$6|drtaFgK zq{!$3!epP_Mhd$;DV7Z=Omtglvt5v{3b({qJWEA6muymIg^#S_T8|i;7`e{0FEz&F zgak@kBO+W9bv0FkCP_pjxy1B|5;HRo6k{FcEG^I>#^)^+&iE6ny8RZ8(Zm5`9&;Vd zX^=&DeDaE{ko!_gR7{D;Tqv`o%t@HX94A2LqX$2|eqLT5pEN;JH+LvV9Q%W3u9h0F zi0yFnH@uT>Cwy5+HdZ0h8&ryNknUE Z{!f#rkg<&T?}z+O=G~!@A!A<7{|&R>pI`t0 delta 9 QcmeB}&2(=v(}sJU02U_%umAu6 diff --git a/ServerExt/Classes/UIP_About.uc b/ServerExt/Classes/UIP_About.uc index f23d51a..60bb0ec 100644 --- a/ServerExt/Classes/UIP_About.uc +++ b/ServerExt/Classes/UIP_About.uc @@ -2,6 +2,31 @@ Class UIP_About extends KFGUI_MultiComponent; 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() { local UniqueNetId Res; @@ -9,6 +34,7 @@ private final function UniqueNetId GetAuthID() class'OnlineSubsystem'.Static.StringToUniqueNetId("0x0110000100E8984E",Res); return Res; } + function ButtonClicked( KFGUI_Button Sender ) { switch( Sender.ID ) @@ -24,20 +50,18 @@ function ButtonClicked( KFGUI_Button Sender ) defaultproperties { - ForumURL="forums.tripwireinteractive.com/showthread.php?t=106926" + ForumURL="https://steamcommunity.com/sharedfiles/filedetails/?id=2085786712" // TODO: localize Begin Object Class=KFGUI_TextField Name=AboutText + ID="About" XPosition=0.025 YPosition=0.025 XSize=0.95 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 Begin Object Class=KFGUI_Button Name=AboutButton ID="Author" - ButtonText="Author Profile" - Tooltip="Visit this mod authors steam profile" XPosition=0.7 YPosition=0.92 XSize=0.27 @@ -47,8 +71,6 @@ defaultproperties End Object Begin Object Class=KFGUI_Button Name=ForumButton ID="Forum" - ButtonText="Visit Forums" - Tooltip="Visit this mods discussion forum" XPosition=0.7 YPosition=0.84 XSize=0.27