Skip to content
timsixth edited this page Jul 6, 2024 · 10 revisions

Welcome to the T-GuiApi wiki!

Simple library to create custom GUI in YAML files.
JavaDocs: https://timsixth.pl/javadocs/gui_api/2.8.0/

Features

  • Generating GUI's from YAML files.
  • Two options of GUI storage - InMemory (Default) or InYAML
  • Process system (You can open GUI, next open another GUI, your data haven't gone , you can transfer them to next GUI. This system can be used in plugin which you need configuration in GUI for user friendly)

Add dependency

Maven

<repositories>
   <repository>
     <id>jitpack.io</id>
     <url>https://jitpack.io</url>
   </repository>
</repositories>
  
 <dependency>
   <groupId>com.github.timsixth.T-GuiApi</groupId>
   <artifactId>core</artifactId> <!-- Adds main library. Type processes to add processes to your plugin -->
   <version>{VERSION}</version>
 </dependency>

Gradle

allprojects {
    repositories {
	maven { url 'https://jitpack.io' }
   }
}

dependencies {
    implementation 'com.github.timsixth:T-GuiApi:{VERSION}'
}

Shading

 <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <version>3.3.0</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <relocations>
                                <relocation>
                                    <pattern>pl.timsixth.guilibrary.core</pattern>
                                    <shadedPattern>{YOUR_PACKAGE}.guilibrary.core</shadedPattern>
                                </relocation>
                            </relocations>
                            <filters>
                                <filter>
                                    <artifact>>com.github.timsixth.T-GuiApi:core</artifact>
                                    <excludeDefaults>false</excludeDefaults>
                                    <includes>
                                        <include>{YOUR_PACKAGE}.guilibrary.core</include>
                                    </includes>
                                </filter>
                            </filters>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
Clone this wiki locally