From 6aabbebbed0460476272fca52fb4c752db690ae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiktor=20Obr=C4=99bski?= Date: Sun, 12 Jan 2025 18:42:10 +0100 Subject: [PATCH] Fix notes tool to use new TextArea instead of deprecated TextEditor --- notes.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/notes.lua b/notes.lua index 99aab4a74..9bb4bc7bc 100644 --- a/notes.lua +++ b/notes.lua @@ -5,7 +5,6 @@ local widgets = require('gui.widgets') local textures = require('gui.textures') local overlay = require('plugins.overlay') local guidm = require('gui.dwarfmode') -local text_editor = reqscript('internal/journal/text_editor') local green_pin = dfhack.textures.loadTileset( 'hack/data/art/note_green_pin_map.png', @@ -172,7 +171,7 @@ function NoteManager:init() auto_width=true, on_activate=function() self.subviews.name:setFocus(true) end, }, - text_editor.TextEditor{ + widgets.TextArea{ view_id='name', frame={t=1,h=3}, frame_style=gui.FRAME_INTERIOR, @@ -187,7 +186,7 @@ function NoteManager:init() auto_width=true, on_activate=function() self.subviews.comment:setFocus(true) end, }, - text_editor.TextEditor{ + widgets.TextArea{ view_id='comment', frame={t=6,b=3}, frame_style=gui.FRAME_INTERIOR,