Skip to content

Commit

Permalink
feat(radar): add icons for the new radar buttons
Browse files Browse the repository at this point in the history
Szlrd created icons both for the scanner/radar toggle button as well as
for the manual/automatic zoom mode indicator button.

Two of the new icons are on the 21st row (starting on index 320) for the
radar's automatic and manual zoom mode indicator.

This necessitated modifying several other files to reflect the increased
grid size of the icons.svg file.

Co-authored-by: Szlrd <[email protected]>
  • Loading branch information
bszlrd authored and mwerle committed Nov 16, 2024
1 parent 88a1735 commit f1b0b82
Show file tree
Hide file tree
Showing 7 changed files with 12,448 additions and 12,475 deletions.
2 changes: 1 addition & 1 deletion data/fonts/UIFont.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"svgFile": "icons/icons.svg",
"rangeBase": "0xF000",
"grid": [ 16, 20 ]
"grid": [ 16, 21 ]
}
]
}
2 changes: 1 addition & 1 deletion data/fonts/UIHeadingFont.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"svgFile": "icons/icons.svg",
"rangeBase": "0xF000",
"grid": [ 16, 20 ]
"grid": [ 16, 21 ]
}
]
}
2 changes: 1 addition & 1 deletion data/fonts/UIIconFont.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"svgFile": "icons/icons.svg",
"rangeBase": "0xF000",
"grid": [ 16, 20 ]
"grid": [ 16, 21 ]
}
]
}
2 changes: 1 addition & 1 deletion data/fonts/UIMonoFont.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{
"svgFile": "icons/icons.svg",
"rangeBase": "0xF000",
"grid": [ 16, 20 ]
"grid": [ 16, 21 ]
}
]
}
24,904 changes: 12,435 additions & 12,469 deletions data/icons/icons.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion data/pigui/libs/icons.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ local function encode_icon(idx)
end

local iconsX = 16
local iconsY = 20
local iconsY = 21

local icons_texture_small = pigui:LoadTextureFromSVG(pigui.DataDirPath({"icons", "icons.svg"}), iconsX * 24, iconsY * 24)
local icons_texture_med = pigui:LoadTextureFromSVG(pigui.DataDirPath({"icons", "icons.svg"}), iconsX * 32, iconsY * 32)
Expand Down
9 changes: 8 additions & 1 deletion data/pigui/themes/default.lua
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ theme.icons = {
equip_autopilot = 302,
equip_hyperdrive = 303,

-- twentieth row
-- twentieth row : icons 304 to 319
plus = 304,
minus = 305,
cross = 306,
Expand All @@ -669,6 +669,13 @@ theme.icons = {
increase_1 = 315,
increase_2 = 316,
increase_max = 317,
radar_2d = 318,
radar_3d = 319,

-- twenty-first row : icons 320 to 335
radar_automatic = 320,
radar_manual = 321,
-- 322 - 335 : empty

shipmarket_compare_better = 38,
shipmarket_compare_worse = 40,
Expand Down

0 comments on commit f1b0b82

Please sign in to comment.