Skip to content

Commit 038960c

Browse files
committed
update color-schemes for v5X
also, gui/color-schemes suggests registering from `/dfhack-config/colors` instead of `/raw/colors/`now. note: doesn't use the getConfigPath() api, aince that would be a pretty involved change and i'd rather get feedback first. also, doesn't update the gui style.
1 parent 8d0d033 commit 038960c

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ Template for new versions:
4747
- `add-recipe`: fix to include incorrectly excluded recipes
4848
- `gui/control-panel`: fixed incorrect description of deteriorate commands
4949
- `gui/petitions`: fix deity display
50+
- `color-schemes`: updated for v5X
5051

5152
## Misc Improvements
5253
- `trackstop`: ``pressureplate`` overlay moved to `machine-toggle` as an ``armok`` tool

color-schemes.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ function Scheme:load()
259259
for c,color in ipairs(COLORS) do
260260
for l,channel in ipairs(CHANNELS) do
261261
-- Use `math.max` for -1 values (not parsed correctly)
262-
local value = math.max(0, self.values[color][channel]) / 255
263-
df.global.enabler.ccolor[c - 1][l - 1] = value
262+
local value = math.max(0, self.values[color][channel])
263+
df.global.gps.uccolor[c - 1][l - 1] = value
264264
end
265265
end
266266
df.global.gps.force_full_display_count = 1

gui/color-schemes.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ function screen:onRegister()
611611
"Register",
612612
"Register color schemes by file or directory",
613613
COLOR_WHITE,
614-
"/raw/colors/",
614+
"/dfhack-config/colors/",
615615
function(path)
616616
ColorSchemes.register(path)
617617
self:populateList()

0 commit comments

Comments
 (0)