Skip to content

Commit 6b62639

Browse files
committed
Switch buttons to ALT for raw data.
1 parent 37757e0 commit 6b62639

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Export/Classes/RowListControl.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function RowListClass:BuildColumns()
5151
width = specCol.width,
5252
specColRef = specCol, -- Link to the original data
5353
label = specCol.name,
54-
font = function() return IsKeyDown("CTRL") and "FIXED" or "VAR" end,
54+
font = function() return IsKeyDown("ALT") and "FIXED" or "VAR" end,
5555
sortable = true
5656
})
5757
end
@@ -65,7 +65,7 @@ function RowListClass:GetRowValue(column, index, row)
6565
if column == 1 then
6666
return string.format("%5d", row)
6767
end
68-
if not main.curDatFile.spec[column - 1] or IsKeyDown("CTRL") then
68+
if not main.curDatFile.spec[column - 1] or IsKeyDown("ALT") then
6969
local out = { main.curDatFile:ReadCellRaw(row, column - 1) }
7070
for i, b in ipairs(out) do
7171
out[i] = string.format("%02X", b)

src/Export/Main.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ function main:Init()
324324
}
325325
self.controls.filter.tooltipText = "Takes a Lua expression that returns true or false for a row.\nE.g. `Id:match(\"test\")` or for a key column, `Col and Col.Id:match(\"test\")`"
326326
self.controls.filterError = new("LabelControl", {"LEFT",self.controls.filter,"RIGHT"}, {4, 2, 0, 14}, "")
327+
self.controls.showRaw = new("LabelControl", {"LEFT",self.controls.filter,"RIGHT"}, {600, 2, 0, 14}, "^7Hold ALT to show raw data.")
327328

328329
self.controls.rowList = new("RowListControl", nil, {270, 0, 0, 0}) {
329330
y = function()

0 commit comments

Comments
 (0)