// 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. //============================================================================= // // ------------------------------------------------------------ // © 2006, Geodelft // // Date Id Modification // 2006-10-07 The Created this header // 2006-10-08 The Implemented Dutch translations //============================================================================= class Tab_LogSettings extends GUITabPanel; var bool bChanged; var GeoPlayerController GeoPC; var string formerLocationString; var localized string NL_PlayerNameEditCaption, EN_PlayerNameEditCaption, NL_PlayerNameEditHint, EN_PlayerNameEditHint, NL_FOVEditCaption, EN_FOVEditCaption, NL_FOVEditHint, EN_FOVEditHint; function UpdateLanguage() { moCheckBox(controls[0]).MyLabel.Caption = "Niet opslaan"; moCheckBox(controls[1]).MyLabel.Caption = "Lokaal opslaan"; moCheckBox(controls[2]).MyLabel.Caption = "Opslaan over netwerk"; moEditBox(controls[3]).MyLabel.Caption = "Bestandsnaam"; moEditBox(controls[4]).MyLabel.Caption = "Poort"; } //============================================================================= // Date Id Modification // 2006-10-07 The Created this header //============================================================================= function InitComponent(GUIController MyController, GUIComponent MyOwner) { local int i; Super.Initcomponent(MyController, MyOwner); GeoPC = GeoPlayerController(PlayerOwner()); UpdateLanguage(); //alle input uit de weg! Controls[0].wintop = Controls[0].wintop -2; Controls[1].wintop = Controls[1].wintop -2; moCheckBox(Controls[0]).OnClick = InternalOnClick; moCheckBox(Controls[1]).OnClick = InternalOnClick; moCheckBox(Controls[2]).OnClick = InternalOnClick; if(GeoPC.FBtype ==0) { moCheckBox(Controls[0]).Checked(true); moCheckBox(Controls[1]).Checked(false); moCheckBox(Controls[2]).Checked(false); Controls[3].SetVisibility(false); Controls[4].SetVisibility(false); } else if(GeoPC.FBtype ==1) { moCheckBox(Controls[1]).Checked(true); moCheckBox(Controls[0]).Checked(false); moCheckBox(Controls[2]).Checked(false); Controls[3].SetVisibility(true); moEditBox(Controls[3]).MyLabel.Caption = "Bestandsnaam"; Controls[4].SetVisibility(false); } else { moCheckBox(Controls[2]).Checked(true); moCheckBox(Controls[0]).Checked(false); moCheckBox(Controls[1]).Checked(false); Controls[3].SetVisibility(true); moEditBox(Controls[3]).MyLabel.Caption = "Serveradres"; Controls[4].SetVisibility(true); } for (i=0;i-1) { return true; } return false; } //============================================================================= // Date Id Modification // 2006-10-07 The Created this header //============================================================================= defaultproperties { //checkbox Begin Object class=moCheckBox Name=OffButton INIOption="@Internal" INIDefault="True" CaptionWidth=0.65 bSquare=true bFlipped=false ComponentJustification=TXTA_Left LabelJustification=TXTA_Left bNeverFocus=true bHasFocus = false Caption="" WinWidth=0.4 WinTop=0.2 WinLeft=0.121093 OnClick=InternalOnClick End Object Controls(0)=moCheckBox'OffButton' Begin Object class=moCheckBox Name=LocalButton INIOption="@Internal" INIDefault="True" CaptionWidth=0.65 bSquare=true bFlipped=false ComponentJustification=TXTA_Left LabelJustification=TXTA_Left bNeverFocus=true bHasFocus =false Caption="" WinWidth=0.4 WinTop=0.3 WinLeft=0.121093 OnClick=InternalOnClick End Object Controls(1)=moCheckBox'LocalButton' Begin Object class=moCheckBox Name=NetworkButton INIOption="@Internal" INIDefault="True" CaptionWidth=0.65 bSquare=true bFlipped=false ComponentJustification=TXTA_Left LabelJustification=TXTA_Left bNeverFocus=true bHasFocus = false Caption="" WinWidth=0.4 WinTop=0.4 WinLeft=0.121093 OnClick=InternalOnClick End Object Controls(2)=moCheckBox'NetworkButton' Begin Object class=moEditBox Name=Location WinWidth=0.4 WinHeight=0.060000 WinLeft=0.121093 WinTop=0.5 Caption="Name" INIOption="@INTERNAL" INIDefault="User" OnLoadINI=InternalOnLoadINI OnDeActivate=LocationOnDeActivate CaptionWidth=0.65 End Object Controls(3)=moEditBox'Location' Begin Object class=moEditBox Name=Port WinWidth=0.4 WinHeight=0.060000 WinLeft=0.121093 WinTop=0.6 Caption="Name" INIOption="@INTERNAL" INIDefault="User" OnLoadINI=InternalOnLoadINI CaptionWidth=0.65 End Object Controls(4)=moEditBox'Port' bAcceptsInput=false WinTop=0.15 WinLeft=0 WinWidth=1 WinHeight=0.72 }