Skip to content

Commit 993a761

Browse files
authored
feat: exporter: add clear output button (#8565)
just the button this time copy-pasta from pob2
1 parent 6ba9ed6 commit 993a761

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Export/Main.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,17 @@ function main:Init()
192192
end
193193
}
194194

195+
self.controls.clearOutput = new("ButtonControl", nil, {1190, 10, 100, 18}, "Clear", function()
196+
wipeTable(self.scriptOutput)
197+
end) {
198+
shown = function()
199+
return not self.curDatFile
200+
end,
201+
enabled = function()
202+
return #self.scriptOutput > 0
203+
end
204+
}
205+
195206
self.controls.scriptList = new("ScriptListControl", nil, {270, 35, 100, 300}) {
196207
shown = function()
197208
return not self.curDatFile

0 commit comments

Comments
 (0)