Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Template for new versions:
- `add-recipe`: fix to include incorrectly excluded recipes
- `gui/control-panel`: fixed incorrect description of deteriorate commands
- `gui/petitions`: fix deity display
- `color-schemes`: updated for v5X

## Misc Improvements
- `trackstop`: ``pressureplate`` overlay moved to `machine-toggle` as an ``armok`` tool
Expand Down
4 changes: 2 additions & 2 deletions color-schemes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ function Scheme:load()
for c,color in ipairs(COLORS) do
for l,channel in ipairs(CHANNELS) do
-- Use `math.max` for -1 values (not parsed correctly)
local value = math.max(0, self.values[color][channel]) / 255
df.global.enabler.ccolor[c - 1][l - 1] = value
local value = math.max(0, self.values[color][channel])
df.global.gps.uccolor[c - 1][l - 1] = value
end
end
df.global.gps.force_full_display_count = 1
Expand Down
2 changes: 1 addition & 1 deletion gui/color-schemes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ function screen:onRegister()
"Register",
"Register color schemes by file or directory",
COLOR_WHITE,
"/raw/colors/",
"/dfhack-config/colors/",
function(path)
ColorSchemes.register(path)
self:populateList()
Expand Down
Loading