From e928223b486896c4ea5b3f4c6350f448a9d58952 Mon Sep 17 00:00:00 2001 From: tttsaurus Date: Sat, 4 Jan 2025 19:20:07 -0500 Subject: [PATCH] Updated readme --- README.md | 5 +++-- .../tttsaurus/ingameinfo/common/api/gui/IgiGuiContainer.java | 1 - .../ingameinfo/common/api/mvvm/binding/VvmBinding.java | 2 +- .../ingameinfo/common/api/mvvm/viewmodel/ViewModel.java | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ca0d93d..7c1b699 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,8 @@ This is a library mod that helps you to create in-game overlaid (or focused) gui - Introduce modular animation options for controls - Add crt support (✔) -## Quick Start +## Latest Build +In case you want to use the latest action build - Go to [GitHub Actions](https://github.com/tttsaurus/Ingame-Info-Reborn/actions) - Click on the latest workflow - Scroll down to the bottom and download the `Artifacts` @@ -45,7 +46,7 @@ This is a library mod that helps you to create in-game overlaid (or focused) gui ## How to use API is changing frequently for the current stage. -Here's an easy example. +Here's an easy example under v1.0.0-b1. `./config/ingameinfo/test.ixml` ```xml diff --git a/src/main/java/com/tttsaurus/ingameinfo/common/api/gui/IgiGuiContainer.java b/src/main/java/com/tttsaurus/ingameinfo/common/api/gui/IgiGuiContainer.java index 3b39a99..0877e46 100644 --- a/src/main/java/com/tttsaurus/ingameinfo/common/api/gui/IgiGuiContainer.java +++ b/src/main/java/com/tttsaurus/ingameinfo/common/api/gui/IgiGuiContainer.java @@ -29,7 +29,6 @@ public class IgiGuiContainer private boolean initFlag = false; // - public ViewModel getViewModel() { return viewModel; } public int getExitKeyForFocusedGui() { return exitKeyForFocusedGui; } public boolean getFocused() { return isFocused; } public boolean getInitFlag() { return initFlag; } diff --git a/src/main/java/com/tttsaurus/ingameinfo/common/api/mvvm/binding/VvmBinding.java b/src/main/java/com/tttsaurus/ingameinfo/common/api/mvvm/binding/VvmBinding.java index a253f10..a9de9b7 100644 --- a/src/main/java/com/tttsaurus/ingameinfo/common/api/mvvm/binding/VvmBinding.java +++ b/src/main/java/com/tttsaurus/ingameinfo/common/api/mvvm/binding/VvmBinding.java @@ -19,7 +19,7 @@ @SuppressWarnings("all") public class VvmBinding { - public TView view; + private TView view; public GuiLayout init(ViewModel viewModel, String mvvmRegistryName) { diff --git a/src/main/java/com/tttsaurus/ingameinfo/common/api/mvvm/viewmodel/ViewModel.java b/src/main/java/com/tttsaurus/ingameinfo/common/api/mvvm/viewmodel/ViewModel.java index 9c3a583..7e74746 100644 --- a/src/main/java/com/tttsaurus/ingameinfo/common/api/mvvm/viewmodel/ViewModel.java +++ b/src/main/java/com/tttsaurus/ingameinfo/common/api/mvvm/viewmodel/ViewModel.java @@ -13,7 +13,7 @@ @SuppressWarnings("all") public abstract class ViewModel { - public VvmBinding binding = new VvmBinding<>(); + private VvmBinding binding = new VvmBinding<>(); // init entry point private GuiLayout init(String mvvmRegistryName)