lumien231 / Custom-Main-Menu

A mod that allows you to modify the minecraft main menu
MIT License
67 stars 36 forks source link

[Suggestion] Always Online Compat #386

Open Zack7292 opened 5 years ago

Zack7292 commented 5 years ago

Hey, i'll like to see a thing where, when you have always online (from zeitherion) in your mod list, it automaticly add the button setting to modify it in the config. tath pretty mush it :)

ROMVoid95 commented 5 years ago

you can achieve this with wrapped buttons in your own custom menu afaik

Zack7292 commented 5 years ago

ok, thx, ima try to understand how to use those sinse i jsut start with this mod :)

ROMVoid95 commented 5 years ago

no problem, per the wiki on curseforge.

Curseforge Wiki Page

Custom Main Menu by default removes all buttons added by other mods (Open Eye, Version Checker, Tabula) due to not being able to control them like the vanilla buttons. Using Wrapped Buttons you can create buttons that mimic their functionality. For them to work you need to find out the button id of the button you want to re add, look into your latest fml client log and search for "wrapped button", all removed mod buttons are logged with their respective button id.

Zack7292 commented 5 years ago

i don't understand it, bcs i can't seem to find those FML stuff, ik the ID sinse i ask it to the dev. i checked for videos and i didn't find any that talked about wrapped buttons

ROMVoid95 commented 5 years ago

what FML stuff?

ROMVoid95 commented 5 years ago

quick question is the always online mod your referring too this mod?

Zack7292 commented 5 years ago

Yes

ROMVoid95 commented 5 years ago

is there a modpack that has it or your referencing i can download that has it configured client side?

Zack7292 commented 5 years ago

not has i know bcs im pretty mush the 1st using it in a pack (while its a pretty useful mod for easier local play with your friends)

Zack7292 commented 5 years ago

after a day of searching, i just don't know how to find the id of it, otherwise everything else work fine. if i could have explanation about how to find it easily in the fml logs, this could be nice, and if the documentation about wrapped buttons could be remade more clear with an actual example and how to find the ids, it could be awesome.

ROMVoid95 commented 5 years ago

This one is on the side of the AlwaysOnline mod as far as i can tell. CCM doesnt output the ID of the mod. After taking a peek at the deobf jar they provide i couldn't find a decisive ID declaration and doesnt appear they load their buttons the same way as others i've looked at (i'm just speculating at this point on that part). The docs for the wrapped buttons is as simple as finding the ID it displays where mentioned (Just now realizing it states fml-client.log which is now just debug.log) debug.log Image of Log

replaced the options button in a fresh instance with the Vanilla Launcher (for a clean control run) mainmenu.json <-- renamed first button

Menu OpenEye Menu

edit

i also went to the mods Discord, and saw your question and his answer. Not sure how he got a button ID confused with a color hex "0x4635FF) is unknown color: approx Neon Blue." lol i brought up the question to him again.

Zack7292 commented 5 years ago

ok thx for theses informations

Zack7292 commented 5 years ago

btw, asking myself, would it be possible to use open eye to find this kind of informations? i just read what is write on this screen wich make me ask this