Skip to content

Commit ce3edb4

Browse files
authored
Merge pull request #1372 from wiktor-obrebski/fix/notes-tool
Fix notes tool to use new TextArea instead of deprecated TextEditor
2 parents 22fbed1 + 6aabbeb commit ce3edb4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

notes.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ local widgets = require('gui.widgets')
55
local textures = require('gui.textures')
66
local overlay = require('plugins.overlay')
77
local guidm = require('gui.dwarfmode')
8-
local text_editor = reqscript('internal/journal/text_editor')
98

109
local green_pin = dfhack.textures.loadTileset(
1110
'hack/data/art/note_green_pin_map.png',
@@ -172,7 +171,7 @@ function NoteManager:init()
172171
auto_width=true,
173172
on_activate=function() self.subviews.name:setFocus(true) end,
174173
},
175-
text_editor.TextEditor{
174+
widgets.TextArea{
176175
view_id='name',
177176
frame={t=1,h=3},
178177
frame_style=gui.FRAME_INTERIOR,
@@ -187,7 +186,7 @@ function NoteManager:init()
187186
auto_width=true,
188187
on_activate=function() self.subviews.comment:setFocus(true) end,
189188
},
190-
text_editor.TextEditor{
189+
widgets.TextArea{
191190
view_id='comment',
192191
frame={t=6,b=3},
193192
frame_style=gui.FRAME_INTERIOR,

0 commit comments

Comments
 (0)