Skip to content

Commit

Permalink
OUTP: Better message formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tewlwolow committed Feb 15, 2023
1 parent 9dceccb commit 08ed72c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions 00 Core/MWSE/mods/tew/AURA/outputKey.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ local messages = require(config.language).messages

event.register("keyDown", function(e)
if e.isShiftDown then
local output = ""
for module, data in pairs(moduleData) do
local old, new = messages.none, messages.none
if data.old then
Expand All @@ -13,10 +14,11 @@ event.register("keyDown", function(e)
new = data.new.id or new
end

tes3.messageBox{
message = string.format("AURA %s module\n%s: %s\n%s: %s", module, messages.oldTrack, old, messages.newTrack, new)
}
output = output .. string.format("AURA %s module\n%s: %s\n%s: %s\n\n", module, messages.oldTrack, old, messages.newTrack, new)

end
tes3.messageBox{
message = string.sub(output, 1, -3)
}
end
end, {filter = config.outputKey.keyCode})

0 comments on commit 08ed72c

Please sign in to comment.
  翻译: