GithubHelp home page GithubHelp logo

zry551 / modernui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from blocamlimb/modernui

0.0 0.0 0.0 41.93 MB

Creates modern and flexible UI for desktop applications (and Minecraft), including 2D graphics rendering, text layout engine, animations and so on.

Home Page: https://www.curseforge.com/minecraft/mc-mods/modern-ui

License: GNU Lesser General Public License v3.0

Java 99.14% GLSL 0.58% JavaScript 0.28%

modernui's Introduction

Modern UI

CurseForge CurseForge MavenCore Discord

Description

Modern UI is a UI framework for desktop application development. Many of the structures are similar to Android, but the implementation can be quite different. The render engine uses OpenGL 4.5 core profile and can be multi-threaded, so the performance is much better than 2D graphics libraries drawn by CPU. The text engine is unicode-based and uses HarfBuzz and ICU4j, so it has a broad compatibility for various languages.

This project is still in early stages.
Releases for Minecraft Mod are available on CurseForge.
If you have any questions, feel free to join our Discord server.

License

  • Modern UI
    • Copyright (C) 2019-2021 BloCamLimb. All rights reserved.
    • License
    • Copyright (C) 2006 The Android Open Source Project
    • License
  • Textures, Shaders, Models, Documents, Translations
    • Copyright (C) 2019-2021 BloCamLimb et al.
    • License
  • Sounds
    • License
  • Third Party Libraries

Adding Modern UI to your project

Environment requirements

  • Windows, Linux or macOS
  • JDK 16.0.1 or above
  • OpenGL 4.5 or above (see Mesa Zink for macOS users)
  • (Optional) Forge 1.17.1-37.0.97

Gradle configuration

repositories {
    maven {
        name 'IzzelAliz Maven'
        url 'https://maven.izzel.io/releases/'
    }
}
dependencies {
    implementation "icyllis.modernui:ModernUI-Core:${modernui_version}"
}
ForgeGradle 5

You need to regenerate run configurations.

minecraft {
    runs {
        client {
            property 'mixin.env.remapRefMap', 'true'
            property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
        }
        server {
            property 'mixin.env.remapRefMap', 'true'
            property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
        }
    }
}
configurations {
    library
    implementation.extendsFrom library
}
minecraft.runs.all {
    lazyToken('minecraft_classpath') {
        configurations.library.copyRecursive().resolve().collect { it.absolutePath }.join(File.pathSeparator)
    }
}
dependencies {
    library "icyllis.modernui:ModernUI-Core:${modernui_version}"
    implementation fg.deobf("icyllis.modernui:ModernUI-Forge:${minecraft_version}-${modernui_version}")
}

Screenshots

new3.gif new2 new

out-of-date

a b

modernui's People

Contributors

blocamlimb avatar vanja-san avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.