aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/torui/coflsky/commands
diff options
context:
space:
mode:
authormatthias-luger <58751503+matthias-luger@users.noreply.github.com>2023-02-17 17:32:26 +0100
committerGitHub <noreply@github.com>2023-02-17 17:32:26 +0100
commit8f3bce7d6fe41e85f2654f7557bbb564305e58b5 (patch)
tree4bae9237e3c0b87bf27e5f590f4c0ca91b145cab /src/main/java/de/torui/coflsky/commands
parente43d5685fdf0d436d5836d06c5d3f15da674e7df (diff)
downloadCOFL-8f3bce7d6fe41e85f2654f7557bbb564305e58b5.tar.gz
COFL-8f3bce7d6fe41e85f2654f7557bbb564305e58b5.tar.bz2
COFL-8f3bce7d6fe41e85f2654f7557bbb564305e58b5.zip
Add TFM Purchase UI to Mod (#78)
* Add TFM Purchase UI to Mod * fix up opening flips by hotkey fix up flip message in tfm ui * readded check if the auction should be drawn mod doesnt crash anymore if a non flip auction is opened * added /cofl set gui command changed gui title * added /fc toggle command dont store toggle locally * rename purchaseOverlay config removed unused code renamed gui command to /cofl set ahbuygui * fix message not available if flip opened by mouse fix old message shown for non flip auctions * added /cofl setGui command added cofl purchase gui * Add sound on flip * Fixed new flip sound Optimized cofl gui Removed flickering of default mc gui Move mouse to middle on screen open * remove unused code * remove debug code * don't open guis if not in skyblock * fix sound being null * fix bed flips fix opening /cofl blocked * remove logging * Rewrote cofl gui to render before the chest gui opens * - fix bed flips - invalidate best flips after open * - fix scrolling * - fix description not updating - case insensitive commands - fix up , at the end of the message * - add gui if item was already bought - fix bug that invalidated too many flips - added missing "break" * fix merge error * add .vscode to gitignore formatting * fix formatting issue * - remove comment - remove emty line
Diffstat (limited to 'src/main/java/de/torui/coflsky/commands')
-rw-r--r--src/main/java/de/torui/coflsky/commands/models/FlipData.java22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/main/java/de/torui/coflsky/commands/models/FlipData.java b/src/main/java/de/torui/coflsky/commands/models/FlipData.java
index 88836d2..0fb9357 100644
--- a/src/main/java/de/torui/coflsky/commands/models/FlipData.java
+++ b/src/main/java/de/torui/coflsky/commands/models/FlipData.java
@@ -1,24 +1,34 @@
package de.torui.coflsky.commands.models;
import com.google.gson.annotations.SerializedName;
+import de.torui.coflsky.WSCommandHandler;
public class FlipData {
-
+
@SerializedName("messages")
public ChatMessageData[] Messages;
-
@SerializedName("id")
public String Id;
-
@SerializedName("worth")
public int Worth;
-
- public FlipData() {}
+ @SerializedName("sound")
+ public SoundData Sound;
+ @SerializedName("render")
+ public String Render;
+
+ public FlipData() {
+ }
- public FlipData(ChatMessageData[] messages, String id, int worth) {
+ public FlipData(ChatMessageData[] messages, String id, int worth, SoundData sound, String render) {
super();
Messages = messages;
Id = id;
Worth = worth;
+ Sound = sound;
+ Render = render;
+ }
+
+ public String getMessageAsString(){
+ return WSCommandHandler.ChatMessageDataToString(this.Messages);
}
}