Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In development, please help! #39

Open
kkk2z opened this issue Dec 4, 2024 · 28 comments
Open

In development, please help! #39

kkk2z opened this issue Dec 4, 2024 · 28 comments

Comments

@kkk2z
Copy link

kkk2z commented Dec 4, 2024

What kind of work is needed to create such a new GUI/menu etc.?
We are creating a client using eaglercraft - workspace (java language) and
I would like to create my own mod loader.

i am japanese devloper

@ZXMushroom63
Copy link
Member

ZXMushroom63 commented Dec 4, 2024

Mod loader or mod loader gui?
The gui where mods are uploaded, deleted and managed is coded entirely in html, css and js.
It's stored in this script file

As for creating your own mod loader from scratch, the current architecture of eaglerforge is almost completely external from eagler's java source. If you want to write it in java, you can check out EaglerForge-old, but keep in mind that the in-source approach was scrapped for many reasons, mainly the fact that you had to manually write code to import/export every single method/property.

Good luck

@kkk2z
Copy link
Author

kkk2z commented Dec 4, 2024

Do you know how to make new GUI and buttons?

@STPv22
Copy link
Contributor

STPv22 commented Dec 4, 2024

I managed a little to make GUI. I'll give instructions soon

@kkk2z
Copy link
Author

kkk2z commented Dec 4, 2024

Could you please explain?

@STPv22
Copy link
Contributor

STPv22 commented Dec 4, 2024

like I said. Ill tell you how to make GUI soon. its 11:30 where I am, and I don't feel like looking into it tonight

@kkk2z
Copy link
Author

kkk2z commented Dec 4, 2024

ok

@OtterCodes101
Copy link
Member

@kkk2z question, are you using google translate

@STPv22
Copy link
Contributor

STPv22 commented Dec 4, 2024

男性猫犬は家の中でディディ

@kkk2z
Copy link
Author

kkk2z commented Dec 5, 2024

wht

@kkk2z
Copy link
Author

kkk2z commented Dec 5, 2024

@kkk2z質問です。Google翻訳を使っていますか?

No, we do not use it.
For Japanese people, using “google translate” for translation is considered crazy.
I use “deepl translation”.

@STPv22
Copy link
Contributor

STPv22 commented Dec 5, 2024

猫犬男ディディ、ベビーオイルを塗る

@kkk2z
Copy link
Author

kkk2z commented Dec 5, 2024

wh

@STPv22
Copy link
Contributor

STPv22 commented Dec 6, 2024

スキビディ・オハイオ・ファンダム・タックス・カイ・セナト・リッツ・デューク・デニス・ミューイング・シグマ・グーニング

@STPv22
Copy link
Contributor

STPv22 commented Dec 6, 2024

I speak it trust

@STPv22
Copy link
Contributor

STPv22 commented Dec 6, 2024

@OtterCodes101

@OtterCodes101
Copy link
Member

what

@STPv22
Copy link
Contributor

STPv22 commented Dec 6, 2024

translate what I just said: スキビディ・オハイオ・ファンダム・タックス・カイ・セナト・リッツ・デューク・デニス・ミューイング・シグマ・グーニング

@OtterCodes101
Copy link
Member

what

@OtterCodes101
Copy link
Member

the hell

@OtterCodes101
Copy link
Member

😭

@STPv22
Copy link
Contributor

STPv22 commented Dec 6, 2024

>:3c

@kkk2z
Copy link
Author

kkk2z commented Dec 7, 2024

whattt

@STPv22
Copy link
Contributor

STPv22 commented Dec 9, 2024

hey, sorry I haven't sent the tutorial yet. ive been pretty busy (grinding og Fortnite). I'll send it as soon as I get the chance. also I've been sending random brainrot, look it up.

@kkk2z
Copy link
Author

kkk2z commented Dec 9, 2024

ok-

@STPv22
Copy link
Contributor

STPv22 commented Dec 9, 2024

java GUI example:

idk if it works. mess around to see if it works.

package net.example.gui;

import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import com.google.common.collect.Lists;

import net.lax1dude.eaglercraft.v1_8.EagRuntime;
import net.lax1dude.eaglercraft.v1_8.internal.FileChooserResult;
import net.lax1dude.eaglercraft.v1_8.internal.vfs2.VFile2;
import net.lax1dude.eaglercraft.v1_8.log4j.LogManager;
import net.lax1dude.eaglercraft.v1_8.log4j.Logger;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiListExtended;
import net.minecraft.client.gui.GuiOptionButton;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.gui.GuiSelectWorld;
import net.minecraft.client.gui.GuiSlot;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.resources.I18n;

public class GuiExample extends GuiScreen {
	private final GuiScreen parentScreen;
	public Minecraft mc = Minecraft.getMinecraft();

	public GuiExample(GuiScreen parentScreenIn) {
		this.parentScreen = parentScreenIn;
		updateModsList();
	}

	/**
	 * +
	 * Adds the buttons (and other controls) to the screen in
	 * question. Called when the GUI is displayed and when the
	 * window resizes, the buttonList is cleared beforehand.
	 */
	public void initGui() {
		GuiButton btn;
		this.buttonList.add(btn = new GuiOptionButton(1, this.width / 2 - 154, this.height - 24,
				I18n.format("your.text.here"
						+ "", new Object[0])));	}

	public void handleMouseInput() throws IOException {
		super.handleMouseInput();
	}

	/**
	 * +
	 * Called by the controls from the buttonList when activated.
	 * (Mouse pressed for buttons)
	 */
	protected void actionPerformed(GuiButton parGuiButton) {
              if (parGuiButton.id == 1) {
				//do stuff
		} 
	}

	/**
	 * +
	 * Draws the screen and all the components in it. Args : mouseX,
	 * mouseY, renderPartialTicks
	 */
	public void drawScreen(int i, int j, float f) {
		this.drawBackground(0);
		this.drawCenteredString(this.fontRendererObj, I18n.format("your.text.here", new Object[0]),
				this.width / 2,
				8, 0xFFFFFF);
		super.drawScreen(i, j, f);
	}

	public void updateScreen() {
            //update logic
	}
}

@kkk2z
Copy link
Author

kkk2z commented Dec 9, 2024

Where should I put it in the file...?
(in workspace)

@STPv22
Copy link
Contributor

STPv22 commented Dec 9, 2024

whar

@STPv22
Copy link
Contributor

STPv22 commented Dec 9, 2024

elaborate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants