feat: updated dialogues
This commit is contained in:
parent
269abd3ff7
commit
29ea2ee3d8
@ -28,7 +28,7 @@ public class DialogueRenderer extends Inventory {
|
|||||||
|
|
||||||
public static final int CHEST_GUI_WIDTH = 176;
|
public static final int CHEST_GUI_WIDTH = 176;
|
||||||
|
|
||||||
private final GlyphResourcePack glyphResourcePack = ServerBootstrap.getInstance().getResourcePackManager().getGlyphResourcePack();
|
@Getter private final GlyphResourcePack glyphResourcePack = ServerBootstrap.getInstance().getResourcePackManager().getGlyphResourcePack();
|
||||||
private final Player player;
|
private final Player player;
|
||||||
@Getter @Setter private DialogueTheme theme;
|
@Getter @Setter private DialogueTheme theme;
|
||||||
@Getter private String text = "";
|
@Getter private String text = "";
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
package ru.dragonestia.msb3.api.talk.dialogue;
|
package ru.dragonestia.msb3.api.talk.dialogue;
|
||||||
|
|
||||||
import lombok.AccessLevel;
|
import lombok.AccessLevel;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.log4j.Log4j2;
|
import lombok.extern.log4j.Log4j2;
|
||||||
@ -8,7 +9,6 @@ import ru.dragonestia.msb3.api.ServerBootstrap;
|
|||||||
import ru.dragonestia.msb3.api.glyph.glyph.image.ImageGlyph;
|
import ru.dragonestia.msb3.api.glyph.glyph.image.ImageGlyph;
|
||||||
import ru.dragonestia.msb3.api.glyph.glyph.image.multicharacter.LanguageGlyphCollection;
|
import ru.dragonestia.msb3.api.glyph.glyph.image.multicharacter.LanguageGlyphCollection;
|
||||||
import ru.dragonestia.msb3.api.resource.DialogueResources;
|
import ru.dragonestia.msb3.api.resource.DialogueResources;
|
||||||
import ru.dragonestia.msb3.api.resource.ResourcePackManager;
|
|
||||||
import ru.dragonestia.msb3.api.resource.dialog.*;
|
import ru.dragonestia.msb3.api.resource.dialog.*;
|
||||||
|
|
||||||
@Log4j2
|
@Log4j2
|
||||||
@ -16,7 +16,7 @@ import ru.dragonestia.msb3.api.resource.dialog.*;
|
|||||||
@RequiredArgsConstructor(access = AccessLevel.PRIVATE)
|
@RequiredArgsConstructor(access = AccessLevel.PRIVATE)
|
||||||
public class DialogueTheme {
|
public class DialogueTheme {
|
||||||
|
|
||||||
private final ResourcePackManager resourcePackManager = ServerBootstrap.getInstance().getResourcePackManager();
|
private final DialogueResources resources = ServerBootstrap.getInstance().getResourcePackManager().getDialogueResources();
|
||||||
|
|
||||||
private final DialogGlyphPositions positions;
|
private final DialogGlyphPositions positions;
|
||||||
private final Background background;
|
private final Background background;
|
||||||
@ -39,6 +39,32 @@ public class DialogueTheme {
|
|||||||
private final ImageGlyph button4;
|
private final ImageGlyph button4;
|
||||||
private final LanguageGlyphCollection font;
|
private final LanguageGlyphCollection font;
|
||||||
|
|
||||||
|
public Builder toBuilder() {
|
||||||
|
return new Builder(
|
||||||
|
resources,
|
||||||
|
positions,
|
||||||
|
background,
|
||||||
|
substrate,
|
||||||
|
avatar,
|
||||||
|
avatarFrame,
|
||||||
|
scrollTextUp,
|
||||||
|
scrollTextDown,
|
||||||
|
activeTextField1,
|
||||||
|
activeTextField2,
|
||||||
|
activeTextField3,
|
||||||
|
activeTextField4,
|
||||||
|
notActiveTextField1,
|
||||||
|
notActiveTextField2,
|
||||||
|
notActiveTextField3,
|
||||||
|
notActiveTextField4,
|
||||||
|
button1,
|
||||||
|
button2,
|
||||||
|
button3,
|
||||||
|
button4,
|
||||||
|
font
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
public static Builder builder() {
|
public static Builder builder() {
|
||||||
return builder(DialogGlyphPositions.DEFAULT);
|
return builder(DialogGlyphPositions.DEFAULT);
|
||||||
}
|
}
|
||||||
@ -47,9 +73,10 @@ public class DialogueTheme {
|
|||||||
return new Builder(positions);
|
return new Builder(positions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@AllArgsConstructor(access = AccessLevel.PRIVATE)
|
||||||
public static class Builder {
|
public static class Builder {
|
||||||
|
|
||||||
private final DialogueResources resources;
|
@Getter private final DialogueResources resources;
|
||||||
private final DialogGlyphPositions positions;
|
private final DialogGlyphPositions positions;
|
||||||
|
|
||||||
private Background background;
|
private Background background;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user