fCraft.ConfigGUI.MainForm.FillToolTipsGeneral C# (CSharp) Method

FillToolTipsGeneral() private method

private FillToolTipsGeneral ( ) : void
return void
        private void FillToolTipsGeneral()
        {
            toolTip.SetToolTip( lServerName, ConfigKey.ServerName.GetDescription() );
            toolTip.SetToolTip( tServerName, ConfigKey.ServerName.GetDescription() );
            toolTip.SetToolTip( CustomName, ConfigKey.CustomChatName.GetDescription() );
            toolTip.SetToolTip( CustomAliases, ConfigKey.CustomAliasName.GetDescription() );
            toolTip.SetToolTip( SwearBox, ConfigKey.SwearName.GetDescription() );

            toolTip.SetToolTip( lMOTD, ConfigKey.MOTD.GetDescription() );
            toolTip.SetToolTip( tMOTD, ConfigKey.MOTD.GetDescription() );

            toolTip.SetToolTip( lMaxPlayers, ConfigKey.MaxPlayers.GetDescription() );
            toolTip.SetToolTip( nMaxPlayers, ConfigKey.MaxPlayers.GetDescription() );

            toolTip.SetToolTip( lMaxPlayersPerWorld, ConfigKey.MaxPlayersPerWorld.GetDescription() );
            toolTip.SetToolTip( nMaxPlayersPerWorld, ConfigKey.MaxPlayersPerWorld.GetDescription() );

            toolTip.SetToolTip( lDefaultRank, ConfigKey.DefaultRank.GetDescription() );
            toolTip.SetToolTip( cDefaultRank, ConfigKey.DefaultRank.GetDescription() );

            toolTip.SetToolTip( lPublic, ConfigKey.IsPublic.GetDescription() );
            toolTip.SetToolTip( cPublic, ConfigKey.IsPublic.GetDescription() );

            toolTip.SetToolTip( nPort, ConfigKey.Port.GetDescription() );
            toolTip.SetToolTip( lPort, ConfigKey.Port.GetDescription() );

            toolTip.SetToolTip( bPortCheck,
            @"Check if the selected port is connectible.
            If port check fails, you may need to set up
            port forwarding on your router." );

            toolTip.SetToolTip( nUploadBandwidth, ConfigKey.UploadBandwidth.GetDescription() );
            toolTip.SetToolTip( lUploadBandwidth, ConfigKey.UploadBandwidth.GetDescription() );

            toolTip.SetToolTip( bMeasure,
            @"Test your connection's upload speed with speedtest.net
            Note: to convert from megabits to kilobytes, multiply the
            number by 128" );

            toolTip.SetToolTip( bRules,
            @"Edit the list of rules displayed by the ""/Rules"" command.
            This list is stored in rules.txt, and can also be edited with any text editor.
            If rules.txt is missing or empty, ""/Rules"" shows this message:
            ""Use common sense!""" );

            const string tipAnnouncements =
            @"Show a random announcement every once in a while.
            Announcements are shown to all players, one line at a time, in random order.";
            toolTip.SetToolTip( xAnnouncements, tipAnnouncements );

            toolTip.SetToolTip( nAnnouncements, ConfigKey.AnnouncementInterval.GetDescription() );
            toolTip.SetToolTip( lAnnouncementsUnits, ConfigKey.AnnouncementInterval.GetDescription() );

            toolTip.SetToolTip( bAnnouncements,
            @"Edit the list of announcements (announcements.txt).
            One line is shown at a time, in random order.
            You can include any color codes in the announcements.
            You can also edit announcements.txt with any text editor." );

            toolTip.SetToolTip( bGreeting,
            @"Edit a custom greeting that's shown to connecting players.
            You can use any color codes, and these special variables:
            {SERVER_NAME} = server name (as defined in config)
            {RANK} = connecting player's rank" );

            toolTip.SetToolTip( SwearEditor,
            @"Edit the list of Swearwords (swearwords.txt).
            Each swearword should be on a seperate line." );

            toolTip.SetToolTip( ReqsEditor,
            @"Edit the list of requirements for the ranks
            on your server." );
        }
MainForm