Skip to content

Commit

Permalink
Merge pull request #132 from FTBTeam/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
desht authored Nov 6, 2024
2 parents 9bd5b2c + 7ff134d commit a30b3fe
Show file tree
Hide file tree
Showing 82 changed files with 41 additions and 38 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Java CI - Build Release

on:
release:
types: [ published ]
push:
tags:
- 'v[0-9]+\.[0-9]+\.[0-9]+'
- 'v[0-9]+\.[0-9]+\.[0-9]+-[a-z]+'
- 'v[0-9]+\.[0-9]+\.[0-9]+-[a-z]+\.[0-9]+'

jobs:
build:
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2101.1.5]

### Changed
* Overhauled and cleaned up many icon textures

## [2101.1.4]

### Added
Expand Down
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ plugins {
id "me.modmuss50.mod-publish-plugin" version "0.5.1"
}

apply from: 'https://raw.githubusercontent.com/FTBTeam/mods-meta/main/gradle/changelog.gradle'

architectury {
minecraft = rootProject.minecraft_version
}
Expand Down Expand Up @@ -113,7 +115,7 @@ allprojects {

publishMods {
dryRun = providers.environmentVariable("CURSEFORGE_KEY").getOrNull() == null
changelog = providers.environmentVariable("CHANGELOG").getOrElse("No changelog provided")
changelog = createChangelog(project)
version = mod_version

// TODO: Migrate to something else
Expand Down
28 changes: 20 additions & 8 deletions common/src/main/java/dev/ftb/mods/ftblibrary/icon/Icons.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@SuppressWarnings("unused")
public interface Icons {
Icon BLUE_BUTTON = get("blue_button");
Icon BLUE_BUTTON = get("blank_blue");
Icon UP = get("up");
Icon DOWN = get("down");
Icon LEFT = get("left");
Expand All @@ -21,7 +21,12 @@ public interface Icons {
Icon SETTINGS_RED = get("settings_red");
Icon CANCEL = get("cancel");
Icon BACK = get("back");
Icon CLOSE = get("close");

/**
* @deprecated Use {@link #CANCEL} instead
*/
@Deprecated(forRemoval = true)
Icon CLOSE = CANCEL;
Icon REFRESH = get("refresh");
Icon PLAYER = get("player");
Icon PLAYER_GRAY = get("player_gray");
Expand All @@ -30,15 +35,20 @@ public interface Icons {
Icon FRIENDS = get("friends");
Icon BUG = get("bug");
Icon JACKET = get("jacket");
Icon BED = get("bed");
Icon BELL = get("bell");
Icon COMPASS = get("compass");
Icon BED = Icon.getIcon("minecraft:item/bed");
Icon FRIENDS_GROUP = get("friends_group");
/**
* @deprecated Use {@link #FRIENDS_GROUP} instead
*/
@Deprecated(forRemoval = true)
Icon BELL = FRIENDS_GROUP;
Icon COMPASS = Icon.getIcon("minecraft:item/compass_19");
Icon MAP = get("map");
Icon SHIELD = get("shield");
Icon SHIELD = Icon.getIcon("minecraft:item/diamond_sword");
Icon ART = get("art");
Icon MONEY_BAG = get("money_bag");
Icon CONTROLLER = get("controller");
Icon FEATHER = get("feather");
Icon FEATHER = Icon.getIcon("minecraft:item/feather");
Icon CAMERA = get("camera");
Icon INV_IO = get("inv_io");
Icon INV_IN = get("inv_in");
Expand All @@ -61,7 +71,7 @@ public interface Icons {
Icon MARKER = get("marker");
Icon BEACON = get("beacon");
Icon DICE = get("dice");
Icon DIAMOND = get("diamond");
Icon DIAMOND = Icon.getIcon("minecraft:item/diamond");
Icon TIME = get("time");
Icon GLOBE = get("globe");
Icon MONEY = get("money");
Expand All @@ -80,6 +90,8 @@ public interface Icons {
Icon SUPPORT = getImage("support");
Icon DROPDOWN_OUT = get("dropdown_out");
Icon DROPDOWN_IN = get("dropdown_in");
Icon VISIBILITY_SHOW = get("visibility_show");
Icon VISIBILITY_HIDE = get("visibility_hide");

static Icon get(String id) {
return Icon.getIcon(FTBLibrary.MOD_ID + ":icons/" + id);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package dev.ftb.mods.ftblibrary.ui;

import dev.ftb.mods.ftblibrary.icon.Icon;
import dev.ftb.mods.ftblibrary.icon.Icons;
import net.minecraft.ChatFormatting;
import net.minecraft.network.chat.Component;

Expand All @@ -25,6 +26,10 @@ public ToggleableButton(Panel panel, boolean defaultState, Icon enabled, Icon di
updateTitle();
}

public ToggleableButton(Panel panel, boolean defaultState, ToggleableCallback toggleableCallback) {
this(panel, defaultState, Icons.VISIBILITY_SHOW, Icons.VISIBILITY_HIDE, toggleableCallback);
}

public Component getEnabledText() {
return enabledText;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private void openTestContextMenu(Panel parent) {
ContextMenuItem.subMenu(Component.literal("line 2 >"), Icons.REMOVE, List.of(
ContextMenuItem.title(Component.literal("Submenu")),
ContextMenuItem.SEPARATOR,
new ContextMenuItem(Component.literal("line 2a"), Icons.BELL, button1 -> {
new ContextMenuItem(Component.literal("line 2a"), Icons.FRIENDS_GROUP, button1 -> {
}
))),
new ContextMenuItem(Component.literal("Test Search"), Icon.empty(), button -> openTestButtonList()) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"icon": [
"ftblibrary:icons/blue_button",
"ftblibrary:textures/icons/toggle_day.png"
],
"sort_index": 200,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"icon": [
"ftblibrary:icons/blue_button",
"ftblibrary:textures/icons/toggle_gamemode.png"
"minecraft:item/diamond_sword"
],
"sort_index": 100,
"click": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"icon": [
"ftblibrary:icons/blue_button",
"ftblibrary:textures/icons/toggle_night.png"
],
"sort_index": 300,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"icon": [
"ftblibrary:icons/blue_button",
"ftblibrary:textures/icons/toggle_rain.png"
],
"sort_index": 400,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified common/src/main/resources/assets/ftblibrary/textures/icons/add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified common/src/main/resources/assets/ftblibrary/textures/icons/bug.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified common/src/main/resources/assets/ftblibrary/textures/icons/dice.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified common/src/main/resources/assets/ftblibrary/textures/icons/info.png
Binary file modified common/src/main/resources/assets/ftblibrary/textures/icons/left.png
Binary file modified common/src/main/resources/assets/ftblibrary/textures/icons/lock.png
Binary file modified common/src/main/resources/assets/ftblibrary/textures/icons/remove.png
Diff not rendered.
Binary file modified common/src/main/resources/assets/ftblibrary/textures/icons/time.png

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file modified common/src/main/resources/assets/ftblibrary/textures/icons/up.png
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ org.gradle.daemon=false
# Mod
mod_id=ftblibrary
readable_name=FTB Library
mod_version=2101.1.4
mod_version=2101.1.5
mod_author=FTB Team
# Maven
archives_base_name=ftb-library
Expand Down

0 comments on commit a30b3fe

Please sign in to comment.