Skip to content

Commit

Permalink
Merge branch 'master' into test-1.20.4
Browse files Browse the repository at this point in the history
  • Loading branch information
tanishisherewithhh authored Apr 16, 2024
2 parents 00c928d + e487bff commit 97f1873
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 14 deletions.
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG] Unknown"
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
82 changes: 68 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
# DynamicHUD
# DynamicHUD for Minecraft Fabric

**A library to display stuff on the screen. Fabric only**

**Version:** `2.0.0`

> **IN PROGRESS**
>
> This is a test branch for DynamicHUD 1.20.4. This branch will contain the majorly reworked version of DynamicHUD and all previous versions will be abandoned/not supported.
>
> The current version might be backported up to 1.16 fabric on demand.
>
> **Only for fabric.**
>
> The reworked version could be found in the `newTrials` directory.
DynamicHUD is a special tool for Minecraft mod creators who use Fabric. It works with Minecraft 1.19.1 and newer versions. With DynamicHUD, you can make your own HUD parts that players can change and interact with, making their game look and feel better.
> _It may be ported back upto 1.16 fabric on demand._
# Examples
- [_DynamicHUDtest.java_](src/main/java/com/tanishisherewith/dynamichud/DynamicHUDtest.java)
-
## Demo

*May vary from version to version*
Expand All @@ -35,3 +27,65 @@

[!Early stage demo video](https://github.com/V-Fast/DynamicHUD/assets/120117618/04de9319-69cd-4456-a555-c026c7e053a2)
</details>

## Features

- **Automatic Loading & Saving**: Widgets automatically save their state and reload upon game restart, providing a seamless experience for players.
- **Dynamic Values**: Widgets can display real-time information, adapting to in-game events and data changes.
- **Inbuilt Widgets**: Start with `TextWidget` for easy text display and expand with more specialized widgets.
- **Utility Classes**: Utilize `DrawHelper`, `ColorHelper`, and `TextureHelper` for efficient and streamlined development.
- **ContextMenu**: A versatile context menu featuring boolean, slider, runnable, color options, and list/enum selections for comprehensive widget customization.
- **Screen Border Control**: Widgets are confined within the screen boundaries to prevent off-screen drift.
- **Snapping**: Widgets automatically snap to a grid corner in a imaginary grid pattern on the screen when the shift key is pressed.
- **Multi-Mod Support**: Designed for compatibility and easy integration across various mods.
- **Easy Integration**: Simple setup for quick implementation into your projects.
- **Comprehensive Wiki**: A detailed guide and reference for all features of DynamicHUD, available at https://tanishisherewith.gitbook.io/dynamic-hud.

## Disclaimer
DynamicHUD is a library for Minecraft Fabric designed to provide developers with the tools to create customizable HUD elements. It does not add widgets or any functionality on its own. Interaction with DynamicHUD's internals and utilization of its features can only be done through mods that implement this library. Users looking for in-game HUD elements should refer to mods that use DynamicHUD.

*_This mod / library is fabric only and has no future plans to be ported to forge._*

## Installation for Users

To ensure mods that depend on DynamicHUD work correctly, follow these steps to add DynamicHUD to your Minecraft installation:

0. Make sure you have [Fabric](https://fabricmc.net/) and [Fabric-API](https://modrinth.com/mod/fabric-api/) installed.
1. Download the `dynamichud-<version>.jar` file from the official [release](https://modrinth.com/mod/dynamichud/versions) page.
2. Navigate to your Minecraft directory. The default path is usually:
- Windows: `%APPDATA%\.minecraft`
- macOS: `~/Library/Application Support/minecraft`
- Linux: `~/.minecraft`
3. Locate the `mods` folder within your Minecraft directory. If it doesn't exist, create it.
4. Place the downloaded DynamicHUD `.jar` file into the `mods` folder.
5. Run Minecraft with the Fabric loader. DynamicHUD will now be loaded, and any mods with DynamicHUD as a dependency can function properly.

Enjoy the enhanced HUD experience provided by mods utilizing DynamicHUD!

## Getting Started For Developers
> Visit our [wiki](https://tanishisherewith.gitbook.io/dynamic-hud) for more detailed information about the library!
To integrate DynamicHUD into your mod, add it as a dependency in your `build.gradle` file:

```groovy
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
dependencies {
// Dynamic HUD
modImplementation 'com.github.V-Fast:DynamicHUD:<Version>'
}
```

## Contributing
Contributions are welcome! If you’re interested in improving DynamicHUD or adding new features, please review our contributing guidelines.

## License
DynamicHUD is released under the MIT License. Feel free to use and modify it in your mods, with proper attribution back to this repository.

## Support
Need assistance or have suggestions? Join our [Discord](https://discord.com/invite/Rqpn3C7yR5) community or submit an issue on our GitHub [repository](https://github.com/V-Fast/DynamicHUD).

0 comments on commit 97f1873

Please sign in to comment.