mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 21:09:40 +00:00
Added IDialogImage, a scripted object which is used by IDialog. Used to add dialog images.
IDialog: -Added several new functions for dialogs' new visual attributes, as well as a way to add, get, create, remove, and clear dialog images. Global NPC events: -Added fields and variables from the old ScriptEvent events, in preparation to replace the old events with NpcEvent instances on local NPC scripts. -Fixed issue where some event hooks would run on remote worlds. Global NPC killed event: -Added droppedItems and expDropped fields. IWorld and NpcAPI: -Now always uses a non-remove WorldServer object to create ScriptWorld objects and add them to the world cache.
This commit is contained in:
1 parent
486e37cd7f
commit
8f16e6b20f
17 files changed
+710
-128
No files matched your search
@@ -28,6 +28,7 @@ import noppes.npcs.controllers.data.DialogImage;
|
||||
import noppes.npcs.controllers.data.DialogOption;
|
||||
import noppes.npcs.entity.EntityNPCInterface;
|
||||
|
||||
import noppes.npcs.scripted.interfaces.handler.data.IDialogImage;
|
||||
import org.lwjgl.input.Keyboard;
|
||||
import org.lwjgl.input.Mouse;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
@@ -165,8 +166,8 @@ public class GuiDialogInteract extends GuiNPCInterface implements IGuiClose
|
||||
drawString(fontRendererObj, "Text Sound: " + (textSoundEnabled ? "On" : "Off"), 10, 20, 0xFFFFFF);
|
||||
}
|
||||
|
||||
for (DialogImage dialogImage : dialog.dialogImages.values()) {
|
||||
GuiDialogImage image = new GuiDialogImage(dialogImage);
|
||||
for (IDialogImage dialogImage : dialog.dialogImages.values()) {
|
||||
GuiDialogImage image = new GuiDialogImage((DialogImage) dialogImage);
|
||||
|
||||
if (image.imageType != 0)
|
||||
continue;
|
||||
@@ -184,8 +185,8 @@ public class GuiDialogInteract extends GuiNPCInterface implements IGuiClose
|
||||
}
|
||||
|
||||
GL11.glPushMatrix();
|
||||
for (DialogImage dialogImage : dialog.dialogImages.values()) {
|
||||
GuiDialogImage image = new GuiDialogImage(dialogImage);
|
||||
for (IDialogImage dialogImage : dialog.dialogImages.values()) {
|
||||
GuiDialogImage image = new GuiDialogImage((DialogImage) dialogImage);
|
||||
|
||||
if (image.imageType != 1)
|
||||
continue;
|
||||
@@ -447,8 +448,8 @@ public class GuiDialogInteract extends GuiNPCInterface implements IGuiClose
|
||||
}
|
||||
|
||||
GL11.glPushMatrix();
|
||||
for (DialogImage dialogImage : dialog.dialogImages.values()) {
|
||||
GuiDialogImage image = new GuiDialogImage(dialogImage);
|
||||
for (IDialogImage dialogImage : dialog.dialogImages.values()) {
|
||||
GuiDialogImage image = new GuiDialogImage((DialogImage) dialogImage);
|
||||
|
||||
if (image.imageType != 2)
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user