A downloadable game

Download

Download
FMHStaffMenu.dll 21 kB

Comments

Log in with itch.io to leave a comment.

using System;

using System.Windows.Forms;

public partial class MainForm : Form

{

    private float currentScale = 1.5f; // Default scale, can be updated based on the player's height.

    private string currentName = "Default"; // Initial name.

    public MainForm()

    {

        InitializeComponent();

    }

    private void MainForm_Load(object sender, EventArgs e)

    {

        // Homepage Button

        Button homepageButton = new Button();

        homepageButton.Text = "Go to Homepage";

        homepageButton.Location = new System.Drawing.Point(10, 10);

        homepageButton.Click += (s, e) => ShowHomepage();

        Controls.Add(homepageButton);

        // Long Arms functionality (TextBox for custom value input)

        Label longArmsLabel = new Label();

        longArmsLabel.Text = "Enter arm length (default 1.5):";

        longArmsLabel.Location = new System.Drawing.Point(10, 50);

        Controls.Add(longArmsLabel);

        TextBox longArmsTextBox = new TextBox();

        longArmsTextBox.Location = new System.Drawing.Point(10, 80);

        longArmsTextBox.Width = 100;

        longArmsTextBox.Text = "1.5"; // Default value

        Controls.Add(longArmsTextBox);

        Button setLongArmsButton = new Button();

        setLongArmsButton.Text = "Set Long Arms";

        setLongArmsButton.Location = new System.Drawing.Point(120, 80);

        setLongArmsButton.Click += (s, e) => SetLongArms(longArmsTextBox.Text);

        Controls.Add(setLongArmsButton);

        // Default Height and Reset Scale Button

        Button resetScaleButton = new Button();

        resetScaleButton.Text = "Reset to Default Height";

        resetScaleButton.Location = new System.Drawing.Point(10, 120);

        resetScaleButton.Click += (s, e) => ResetToDefaultHeight();

        Controls.Add(resetScaleButton);

        // Mods Section

        Label modsSectionLabel = new Label();

        modsSectionLabel.Text = "Mods Section";

        modsSectionLabel.Location = new System.Drawing.Point(10, 150);

        Controls.Add(modsSectionLabel);

        // Placeholder for Long Arms (changeable to Spoof ID)

        Button longArmsButton = new Button();

        longArmsButton.Text = "Long Arms (Placeholder)";

        longArmsButton.Location = new System.Drawing.Point(10, 180);

        longArmsButton.BackColor = System.Drawing.Color.Purple; // Set button color to purple

        longArmsButton.Click += (s, e) => SetLongArms("1.5"); // Default action

        Controls.Add(longArmsButton);

        // Spoof ID Button (Name change)

        Button spoofIDButton = new Button();

        spoofIDButton.Text = "Spoof ID (Placeholder)";

        spoofIDButton.Location = new System.Drawing.Point(120, 180);

        spoofIDButton.BackColor = System.Drawing.Color.Purple; // Set button color to purple

        spoofIDButton.Click += (s, e) => ChangeNameToSpoofID();

        Controls.Add(spoofIDButton);

        // Placeholder buttons for other mods

        Button placeholderButton1 = new Button();

        placeholderButton1.Text = "Placeholder Button 1";

        placeholderButton1.Location = new System.Drawing.Point(10, 210);

        placeholderButton1.BackColor = System.Drawing.Color.Purple; // Set button color to purple

        Controls.Add(placeholderButton1);

        Button placeholderButton2 = new Button();

        placeholderButton2.Text = "Placeholder Button 2";

        placeholderButton2.Location = new System.Drawing.Point(120, 210);

        placeholderButton2.BackColor = System.Drawing.Color.Purple; // Set button color to purple

        Controls.Add(placeholderButton2);

    }

    // Show Homepage with Owner and Co-Owner/Helper info

    private void ShowHomepage()

    {

        Form homepage = new Form();

        homepage.Text = "NYX’s GUI"; // Title of the homepage

        homepage.Size = new System.Drawing.Size(400, 300);

        Label ownerLabel = new Label();

        ownerLabel.Text = "Owner: NYX";

        ownerLabel.Location = new System.Drawing.Point(10, 10);

        homepage.Controls.Add(ownerLabel);

        Label coOwnerLabel = new Label();

        coOwnerLabel.Text = "Co-Owner/Helper: Eternal";

        coOwnerLabel.Location = new System.Drawing.Point(10, 40);

        homepage.Controls.Add(coOwnerLabel);

        homepage.ShowDialog(); // Show homepage form

    }

    // Long Arms functionality (scaling based on input)

    private void SetLongArms(string input)

    {

        try

        {

            float armLength = float.Parse(input); // Parse the input into a float

            MessageBox.Show($"Long Arms set to: {armLength}x scale!");

            // Implement scaling logic here (scale the player or arms by the given value)

        }

        catch (Exception)

        {

            MessageBox.Show("Invalid input for Long Arms. Please enter a valid number.");

        }

    }

    // Reset to default height

    private void ResetToDefaultHeight()

    {

        currentScale = 1.5f; // Reset scale to default (can be based on Quest's height)

        MessageBox.Show("Height reset to default scale.");

    }

    // Change Name to Spoof ID

    private void ChangeNameToSpoofID()

    {

        if (currentName == "Default")

        {

            currentName = "NYX’s GUI"; // First spoof ID

            MessageBox.Show($"Name changed to: {currentName}");

            // Implement logic to change the player's name or display name

        }

        else if (currentName == "NYX’s GUI")

        {

            currentName = "WHOMP WHOMP GET HACKED"; // Second spoof ID

            MessageBox.Show($"Name changed to: {currentName}");

            // Implement logic to change the player's name or display name

        }

    }

    // Enable Mod (example)

    private void EnableMod()

    {

        MessageBox.Show("Mod enabled!");

        // Add mod enabling logic here

    }

    // Disable Mod (example)

    private void DisableMod()

    {

        MessageBox.Show("Mod disabled!");

        // Add mod disabling logic here

    }

}