Skip to content

Commit d7cda7d

Browse files
authored
Merge pull request #529 from PGDeve/dev
Add clear button in dat viewer
2 parents ded0ba3 + 4aafa62 commit d7cda7d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Export/Main.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,16 @@ function main:Init()
198198
return not self.curDatFile
199199
end
200200
}
201+
self.controls.clearOutput = new("ButtonControl", nil, {1190, 10, 100, 18}, "Clear", function()
202+
wipeTable(self.scriptOutput)
203+
end) {
204+
shown = function()
205+
return not self.curDatFile
206+
end,
207+
enabled = function()
208+
return #self.scriptOutput > 0
209+
end
210+
}
201211

202212
self.controls.scriptList = new("ScriptListControl", nil, {270, 35, 100, 300}) {
203213
shown = function()

0 commit comments

Comments
 (0)