// September 2015 // Levee Patroller / Dijk Patrouille // This source file is (c) by Deltares. This source file is open source but only available to select users. Do not redistribute without written permission of Stichting Deltares, Delft, The Netherlands. // This header has been automatically generated. class Tab_Disclaimer extends GUITabPanel; var bool Dutch; var localized string EN_Label0, NL_Label0, EN_Label1, NL_Label1, EN_Label2, NL_Label2, EN_Label3, NL_Label3, EN_Label4, NL_Label4, EN_Label5, NL_Label5, EN_Label6, NL_Label6, EN_Label7, NL_Label7; function InitComponent(GUIController MyController, GUIComponent MyOwner) { local int i; local string tempstr; Super.Initcomponent(MyController, MyOwner); MyOpenPage(); tempstr = PlayerOwner().ConsoleCommand("getcurrentres"); if((instr(tempstr,"x800") !=-1)||(instr(tempstr,"1280x768") !=-1)) { log("currentres so"@tempstr); for(i = 0; i< 8; i++) { Controls[i].SetVisibility(false); } Controls[8].SetVisibility(true); //Controls[8] }else { log("currentres so normal"@tempstr); for(i = 0; i< 8; i++) { Controls[i].SetVisibility(true); } Controls[8].SetVisibility(false); //Controls[8] } } function bool InternalOnClick(GUIComponent Sender) { return true; } //************************************** //LANGUAGE: IF IT IS IN GAME OR IN MENU'S //************************************** function bool SetLanguage() { if(PlayerOwner().IsA('GeoPlayerController')) { return GeoPlayerController(PlayerOwner()).Dutch; } else { warn("THIS PLAYER CONTROLLER DOESN'T SUPPORT LANGUAGE"); return true; } } function MyOpenPage() { Dutch=SetLanguage(); UpdateLanguage(); } function UpdateLanguage() { if(Dutch) { GUILabel(Controls[0]).Caption=NL_Label0; GUILabel(Controls[1]).Caption=NL_Label1; GUILabel(Controls[2]).Caption=NL_Label2; GUILabel(Controls[3]).Caption=NL_Label3; GUILabel(Controls[4]).Caption=NL_Label4; GUILabel(Controls[5]).Caption=NL_Label5; GUILabel(Controls[6]).Caption=NL_Label6; GUILabel(Controls[7]).Caption=NL_Label7; GUIScrollTextBox(Controls[8]).SetContent(NL_Label0$"|"$NL_Label4$"||"$NL_Label1$"|"$NL_Label5$"||"$NL_Label2$"|"$NL_Label6$"||"$NL_Label3$"|"$NL_Label7); } else { GUILabel(Controls[0]).Caption=EN_Label0; GUILabel(Controls[1]).Caption=EN_Label1; GUILabel(Controls[2]).Caption=EN_Label2; GUILabel(Controls[3]).Caption=EN_Label3; GUILabel(Controls[4]).Caption=EN_Label4; GUILabel(Controls[5]).Caption=EN_Label5; GUILabel(Controls[6]).Caption=EN_Label6; GUILabel(Controls[7]).Caption=EN_Label7; GUIScrollTextBox(Controls[8]).SetContent(EN_Label0$"|"$EN_Label4$"||"$EN_Label1$"|"$EN_Label5$"||"$EN_Label2$"|"$EN_Label6$"||"$EN_Label3$"|"$EN_Label7); } } defaultproperties { Begin Object class=GUILabel Name=Label0 Caption="***" TextALign=TXTA_Left TextColor=(R=255,G=255,B=255,A=255) TextFont="HeaderFont" WinWidth=0.90 WinHeight=0.2 WinLeft=0.05 WinTop=-0.05 End Object Controls(0)=GUILabel'Label0' Begin Object class=GUILabel Name=Label1 Caption="***" TextALign=TXTA_Left TextColor=(R=255,G=255,B=255,A=255) TextFont="HeaderFont" WinWidth=0.90 WinHeight=0.2 WinLeft=0.05 WinTop=0.17 End Object Controls(1)=GUILabel'Label1' Begin Object class=GUILabel Name=Label2 Caption="***" TextALign=TXTA_Left TextColor=(R=255,G=255,B=255,A=255) TextFont="HeaderFont" WinWidth=0.90 WinHeight=0.2 WinLeft=0.05 WinTop=0.37 End Object Controls(2)=GUILabel'Label2' Begin Object class=GUILabel Name=Label3 Caption="***" TextALign=TXTA_Left TextColor=(R=255,G=255,B=255,A=255) TextFont="HeaderFont" WinWidth=0.90 WinHeight=0.2 WinLeft=0.05 WinTop=0.705 End Object Controls(3)=GUILabel'Label3' // Labels of Texts Begin Object class=GUILabel Name=Label4 Caption="****" TextALign=TXTA_Left TextColor=(R=255,G=255,B=255,A=255) TextFont="SmallFont" WinWidth=0.90 WinHeight=0.4 WinLeft=0.05 WinTop=0.07 bMultiLine=true End Object Controls(4)=GUILabel'Label4' Begin Object class=GUILabel Name=Label5 Caption="**" TextALign=TXTA_Left TextColor=(R=255,G=255,B=255,A=255) TextFont="SmallFont" WinWidth=0.90 WinHeight=0.4 WinLeft=0.05 WinTop=0.29 bMultiLine=true End Object Controls(5)=GUILabel'Label5' Begin Object class=GUILabel Name=Label6 Caption="***" TextALign=TXTA_Left TextColor=(R=255,G=255,B=255,A=255) TextFont="SmallFont" WinWidth=0.90 WinHeight=0.4 WinLeft=0.05 WinTop=0.49 bMultiLine=true End Object Controls(6)=GUILabel'Label6' Begin Object class=GUILabel Name=Label7 Caption="***" TextALign=TXTA_Left TextColor=(R=255,G=255,B=255,A=255) TextFont="SmallFont" WinWidth=0.90 WinHeight=0.80 WinLeft=0.05 WinTop=0.825 bMultiLine=true End Object Controls(7)=GUILabel'Label7' Begin Object Class=GUIScrollTextBox Name=cScroll_LevelDescription CharDelay=0.0021 EOLDelay=0.001 WinWidth=0.90 WinHeight=1.0 WinLeft=0.05 WinTop=0.05 bNeverFocus=true bVisibleWhenEmpty=true bNoTeletype=true End Object Controls(8)=GUIScrollTextBox'cScroll_LevelDescription' EN_Label0="Acquiring a license" NL_Label0="Licentie aanschaffen" EN_Label1="Terms of Use" NL_Label1="Gebruiksvoorwaarden" EN_Label2="Disclaimer" NL_Label2="Disclaimer" EN_Label3="Intellectual property rights" NL_Label3="Intellectuele eigendomsrechten" EN_Label4="'Levee Patroller - The Levee Inspection Simulator' is a protected property that is supported and further developed by Delft GeoSystems BV. The simulator is not a free product. If you want to use Levee Patroller to train your employees, please contact Delft GeoSystems through sales@delftgeosystems.nl."; NL_Label4="'Dijk Patrouille - De Dijk Inspectie Simulator' is een beschermd product dat eigendom is van Deltares. Dijk Patrouille wordt door Delft GeoSystems BV beheerd en ondersteund. Aan het gebruik van de simulator zijn kosten verbonden. Wilt u de simulator gebruiken voor het opleiden van uw medewerkers? Neem dan contact op via sales@delftgeosystems.nl. Wij zoeken graag met u naar de juiste licentie voor uw organisatie." EN_Label5="Access to and use of Levee Patroller - the Levee inspection simulator (hereafter 'Levee Patroller') is subject to the conditions 'Algemene Leveringsvoorwaarden van Delft GeoSystems', available upon request from sales@delftgeosystems.nl. When using the simulator, you accept these conditions in their entirety, and in doing so, agree to abide them."; NL_Label5="De toegang tot en het gebruik van Dijk Patrouille - De Dijk Inspectie Simulator (hierna te noemen 'Dijk Patrouille') is onderworpen aan de Algemene Leveringsvoorwaarden van Delft GeoSystems BV. Deze voorwaarden zijn opvraagbaar via sales@delftgeosystems.nl. Bij gebruik van de simulator accepteert u deze voorwaarden volledig en stemt u daarmee in." EN_Label6="Deltares and Delft GeoSystems have taken utmost care in the development of Levee Patroller. Nevertheless, the simulator might contain imperfections, ambiguities or even mistakes. The users of Levee Patroller accept this risk. Deltares and Delft GeoSystems can in no way be held liable for any damage, both direct and indirect, that the user of Levee Patroller and/or third parties incur as a result of using the information, material and/or services of Levee Patroller. All data and information in the simulator is made available for educational purposes only. Although the utmost care has been taken with the composition and content of the simulator, deficiencies, inaccuracies, technical incompleteness or printing errors may occur. The user is obliged to assess the appliccability of the information distributed via the simulator themselves." NL_Label6="Deltares and Delft GeoSystems have taken utmost care in the development of Levee Patroller. Nevertheless, the simulator might contain imperfections, ambiguities or even mistakes. The users of Levee Patroller accept this risk. Deltares and Delft GeoSystems can in no way be held liable for any damage, both direct and indirect, that the user of Levee Patroller and/or third parties incur as a result of using the information, material and/or services of Levee Patroller. All data and information in the simulator is made available for educational purposes only. Although the utmost care has been taken with the composition and content of the simulator, deficiencies, inaccuracies, technical incompleteness or printing errors may occur. The user is obliged to assess the applicability of the information distributed via the simulator themselves."; EN_Label7="The simulator is the property of Deltares and maintained by Delft GeoSystems. All copyrights and other intellectual property rights related to the simulator contents, including text, design, images, computer code, logos and sounds, belong to Deltares or its licence providers. You are permitted to use the documents available and any accompanying graphics provided that: Deltares or Delft GeoSystems has given an explicit written authorization, a clear reference source is given e.g. 'source: Levee Patroller - the levee inspection simulator, Delft GeoSystems, www.delftgeosystems.nl' and the documents and accompanying graphics are not revised in any way."; NL_Label7="De simulator is eigendom van Deltares en wordt onderhouden door Delft GeoSystems. Alle auteursrechten en andere rechten van intellectueel eigendom op de inhoud van de simulator, waaronder mede begrepen tekst, vormgeving, computercode, beelden, logo's en geluiden, behoren toe aan Deltares of haar licentiegevers. Het is u toegestaan de met de simulator meegeleverde documenten en grafische voorstellingen te reproduceren mits: Hiervoor door Deltares of Delft GeoSystems een uitdrukkelijke schriftelijke toestemming is verleend, een duidelijke bronvermelding wordt toegevoegd: 'bron: Dijk Patrouille - de dijkinspectie simulator, Delft GeoSystems, www.delftgeosystems.nl' én de documenten en bijbehorende grafische voorstellingen op geen enkele wijze worden bewerkt." WinTop=0.15 WinLeft=0 WinWidth=1 WinHeight=0.72 bAcceptsInput=false }