diff --git a/data/art/control-panel.png b/data/art/control-panel.png new file mode 100644 index 000000000..2f5e9468a Binary files /dev/null and b/data/art/control-panel.png differ diff --git a/library/include/modules/Textures.h b/library/include/modules/Textures.h index 446bd1962..a438f01f4 100644 --- a/library/include/modules/Textures.h +++ b/library/include/modules/Textures.h @@ -46,6 +46,11 @@ DFHACK_EXPORT long getIconsTexposStart(); */ DFHACK_EXPORT long getOnOffTexposStart(); +/** + * Get the first texpos for the control panel icons. 10x2 grid. + */ +DFHACK_EXPORT long getControlPanelTexposStart(); + /** * Get the first texpos for the DFHack borders. Each is a 7x3 grid. */ diff --git a/library/modules/Textures.cpp b/library/modules/Textures.cpp index 7781bfc10..25d44695a 100644 --- a/library/modules/Textures.cpp +++ b/library/modules/Textures.cpp @@ -23,6 +23,7 @@ static long g_green_pin_texpos_start = -1; static long g_red_pin_texpos_start = -1; static long g_icons_texpos_start = -1; static long g_on_off_texpos_start = -1; +static long g_control_panel_texpos_start = -1; static long g_thin_borders_texpos_start = -1; static long g_medium_borders_texpos_start = -1; static long g_panel_borders_texpos_start = -1; @@ -127,6 +128,8 @@ void Textures::init(color_ostream &out) { &g_icons_texpos_start); g_num_dfhack_textures += load_textures(out, "hack/data/art/on-off.png", &g_on_off_texpos_start); + g_num_dfhack_textures += load_textures(out, "hack/data/art/control-panel.png", + &g_control_panel_texpos_start); g_num_dfhack_textures += load_textures(out, "hack/data/art/border-thin.png", &g_thin_borders_texpos_start); g_num_dfhack_textures += load_textures(out, "hack/data/art/border-medium.png", @@ -187,6 +190,10 @@ long Textures::getOnOffTexposStart() { return g_on_off_texpos_start; } +long Textures::getControlPanelTexposStart() { + return g_control_panel_texpos_start; +} + long Textures::getThinBordersTexposStart() { return g_thin_borders_texpos_start; }