Skip to content

Screen Modification Framework #27

Open

Description

@Olafcio1

A sub-framework within Avoid, potentially using a custom language, to modify external (Minecraft, mods' and Avoid addons') screens.
Requires #26.

Activity

  1. added
    major
    on Aug 31, 2026
  2. Olafcio1 commented on Sep 4, 2026

    @Olafcio1
    CollaboratorAuthor

    Not planned for now, maybe as another project, maybe in a month or so

  3. Olafcio1 commented on Oct 24, 2026

    @Olafcio1
    CollaboratorAuthor

    Maybe an API like this:

    @ModifyScreen(ScreenMarker.TITLESCREEN)
    public class TitleScreenModifier extends ScreenModifier {
        public void init() {
            super.init();
            this.addStyle("""
                          [text="Singleplayer"] {
                              border-bottom: 1px solid violet;
                          }
    
                          ClickableWidget:hover {
                              color: red;
                          }
    
                          [text*="Realms"] {
                              visibility: hidden;
                          }
    
                          *{$1} + [text*="Realms"]{$0} ~ ClickableWidget {
                              translate: 0 -((height of $0) + (height between $0 and $1));
                          }
                          """);
        }
    }

    So basically an extended CSS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    major

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions