Пример #1
0
    public static void LaunchSDKAppByIndex(int index)
    {
        SDKApps selectedApp = SDKFuncs.GetSDKAppForIndex(index);

        switch (selectedApp)
        {
        case SDKApps.AssetSDK:
            AssetSDK asset = new AssetSDK();
            asset.Show();
            break;

        case SDKApps.ClientScriptDoc:
            ClientScriptDocumentation csd = new ClientScriptDocumentation();
            csd.Show();
            break;

        case SDKApps.SplashTester:
            SplashTester st = new SplashTester();
            st.Show();
            break;

        case SDKApps.ScriptGenerator:
            Process proc = new Process();
            proc.StartInfo.FileName        = GlobalPaths.ConfigDirData + "\\RSG.exe";
            proc.StartInfo.CreateNoWindow  = false;
            proc.StartInfo.UseShellExecute = false;
            proc.Start();
            break;

        case SDKApps.LegacyPlaceConverter:
            Process proc2 = new Process();
            proc2.StartInfo.FileName        = GlobalPaths.ConfigDirData + "\\Roblox_Legacy_Place_Converter.exe";
            proc2.StartInfo.CreateNoWindow  = false;
            proc2.StartInfo.UseShellExecute = false;
            proc2.Start();
            break;

        case SDKApps.DiogenesEditor:
            DiogenesEditor dio = new DiogenesEditor();
            dio.Show();
            break;

        case SDKApps.ClientScriptTester:
            MessageBox.Show("Note: If you want to test a specific way of loading a client, select the ClientScript Tester in the 'Versions' tab of the Novetus Launcher, then launch it through any way you wish.");
#if LAUNCHER
            GlobalFuncs.LaunchRBXClient("ClientScriptTester", ScriptType.Client, false, false, null, null);
#else
            GlobalFuncs.LaunchRBXClient("ClientScriptTester", ScriptType.Client, false, false, null);
#endif
            break;

        default:
            ClientinfoEditor cie = new ClientinfoEditor();
            cie.Show();
            break;
        }
    }
Пример #2
0
    void LaunchSDKAppByIndex(int index)
    {
        ListViewItem appItem = listView1.Items[index];

        if (appItem.Text.Contains("Disabled"))
        {
            string errorText = GlobalVars.ProgramInformation.IsLite ?
                               "This application has been disabled to save space. Please download the Full version of Novetus to use all SDK tools." :
                               "This application has been disabled.";

            MessageBox.Show(errorText, "Novetus SDK - App Disabled", MessageBoxButtons.OK, MessageBoxIcon.Error);
            return;
        }

        SDKApps selectedApp = (SDKApps)index;

        switch (selectedApp)
        {
        case SDKApps.AssetSDK:
            AssetSDK asset = new AssetSDK();
            asset.Show();
            break;

        case SDKApps.ItemCreationSDK:
            ItemCreationSDK icsdk = new ItemCreationSDK();
            icsdk.Show();
            break;

        case SDKApps.ClientScriptDoc:
            ClientScriptDocumentation csd = new ClientScriptDocumentation();
            csd.Show();
            break;

        case SDKApps.SplashTester:
            SplashTester st = new SplashTester();
            st.Show();
            break;

        case SDKApps.ScriptGenerator:
            Process proc = new Process();
            proc.StartInfo.FileName        = GlobalPaths.DataDir + "\\RSG.exe";
            proc.StartInfo.CreateNoWindow  = false;
            proc.StartInfo.UseShellExecute = false;
            proc.Start();
            break;

        case SDKApps.LegacyPlaceConverter:
            Process proc2 = new Process();
            proc2.StartInfo.FileName        = GlobalPaths.DataDir + "\\Roblox_Legacy_Place_Converter.exe";
            proc2.StartInfo.CreateNoWindow  = false;
            proc2.StartInfo.UseShellExecute = false;
            proc2.Start();
            break;

        case SDKApps.DiogenesEditor:
            DiogenesEditor dio = new DiogenesEditor();
            dio.Show();
            break;

        case SDKApps.ClientScriptTester:
            MessageBox.Show("Note: If you want to test a specific way of loading a client, select the ClientScript Tester in the 'Versions' tab of the Novetus Launcher, then launch it through any way you wish.", "Novetus SDK - Client Script Tester Help", MessageBoxButtons.OK, MessageBoxIcon.Information);
#if LAUNCHER
            GlobalFuncs.LaunchRBXClient("ClientScriptTester", ScriptType.Client, false, false, null, null);
#else
            GlobalFuncs.LaunchRBXClient("ClientScriptTester", ScriptType.Client, false, false, null);
#endif
            GlobalVars.GameOpened = ScriptType.None;
            break;

        case SDKApps.XMLContentEditor:
            XMLContentEditor xml = new XMLContentEditor();
            xml.Show();
            break;

        default:
            ClientinfoEditor cie = new ClientinfoEditor();
            cie.Show();
            break;
        }
    }