-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/1.21.x' into 1.21.x
# Conflicts: # changelog.md # common/src/main/java/earth/terrarium/olympus/client/ui/modals/DeleteConfirmModal.java # gradle.properties
- Loading branch information
Showing
12 changed files
with
114 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
common/src/main/java/earth/terrarium/olympus/client/ui/UITexts.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package earth.terrarium.olympus.client.ui; | ||
|
||
import net.minecraft.network.chat.Component; | ||
|
||
public class UITexts { | ||
|
||
public static final Component BACK = Component.translatable("olympus.ui.back"); | ||
public static final Component CANCEL = Component.translatable("olympus.ui.cancel"); | ||
public static final Component DELETE = Component.translatable("olympus.ui.delete"); | ||
public static final Component REFRESH = Component.translatable("olympus.ui.refresh"); | ||
public static final Component OPEN = Component.translatable("olympus.ui.open"); | ||
public static final Component LOADING = Component.translatable("olympus.ui.loading"); | ||
public static final Component OPEN_LINK = Component.translatable("olympus.ui.open_link"); | ||
public static final Component OPEN_DESC = Component.translatable("olympus.ui.open_link.desc"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
common/src/main/java/earth/terrarium/olympus/client/utils/OlympusUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package earth.terrarium.olympus.client.utils; | ||
|
||
import com.teamresourceful.resourcefullib.common.color.Color; | ||
import org.jetbrains.annotations.ApiStatus; | ||
|
||
@ApiStatus.Internal | ||
public class OlympusUtils { | ||
|
||
public static int getEnsureAlpha(Color color) { | ||
int value = color.getValue(); | ||
int alpha = value >> 24 & 255; | ||
return alpha == 0 ? value | 0xff000000 : value; | ||
} | ||
|
||
public static String removePrefix(String text, String... prefixes) { | ||
for (String prefix : prefixes) { | ||
if (text.startsWith(prefix)) { | ||
text = text.substring(prefix.length()); | ||
break; | ||
} | ||
} | ||
|
||
return text; | ||
} | ||
} |
12 changes: 0 additions & 12 deletions
12
common/src/main/java/earth/terrarium/olympus/client/utils/UIHelper.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters