Skip to content

Commit

Permalink
Fix notes tool to use new TextArea instead of deprecated TextEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
wiktor-obrebski committed Jan 12, 2025
1 parent 22fbed1 commit 6aabbeb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions notes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 6aabbeb

Please sign in to comment.