merge conflicts

This commit is contained in:
bigguy345 committed 2026-01-14 00:30:25 +02:00
1 parent 0a33f7dd12
commit 21e05575ad
2 files changed
+13 -33

No files matched your search

@@ -559,15 +559,7 @@ public class GuiScriptTextArea extends GuiNpcTextField {
public boolean fullscreen() {
return GuiScriptInterface.isFullscreen;
}
public void setLanguage(String language) {
if (this.container != null) {
// this.container.setLanguage(language);
if (this.enableCodeHighlighting) {
this.container.formatCodeText();
}
}
}
// ==================== RENDERING ====================
public void drawTextBox(int xMouse, int yMouse) {
if (!visible)
@@ -2660,28 +2652,6 @@ public class GuiScriptTextArea extends GuiNpcTextField {
return this.container != null ? this.container.getScriptContext() : ScriptContext.GLOBAL;
}
/**
* Set the script context (NPC, PLAYER, BLOCK, ITEM, etc.).
* This determines which hooks and event types are available for autocomplete.
*
* @param context The script context
*/
public void setScriptContext(ScriptContext context) {
if (this.container != null) {
// this.container.setScriptContext(context);
}
}
/**
* Get the current script context.
*
* @return The script context (NPC, PLAYER, BLOCK, ITEM, etc.)
*/
public ScriptContext getScriptContext() {
// return this.container != null ? this.container.getScriptContext() : ScriptContext.GLOBAL;
return ScriptContext.GLOBAL;
}
public void setListener(ITextChangeListener listener) {
this.listener = listener;
}