|
|
@ -24,11 +24,11 @@ static long g_red_pin_texpos_start = -1;
|
|
|
|
static long g_icons_texpos_start = -1;
|
|
|
|
static long g_icons_texpos_start = -1;
|
|
|
|
static long g_on_off_texpos_start = -1;
|
|
|
|
static long g_on_off_texpos_start = -1;
|
|
|
|
static long g_control_panel_texpos_start = -1;
|
|
|
|
static long g_control_panel_texpos_start = -1;
|
|
|
|
static long g_border_thin_texpos_start = -1;
|
|
|
|
static long g_thin_borders_texpos_start = -1;
|
|
|
|
static long g_border_medium_texpos_start = -1;
|
|
|
|
static long g_medium_borders_texpos_start = -1;
|
|
|
|
static long g_border_bold_texpos_start = -1;
|
|
|
|
static long g_bold_borders_texpos_start = -1;
|
|
|
|
static long g_border_panel_texpos_start = -1;
|
|
|
|
static long g_panel_borders_texpos_start = -1;
|
|
|
|
static long g_border_window_texpos_start = -1;
|
|
|
|
static long g_window_borders_texpos_start = -1;
|
|
|
|
|
|
|
|
|
|
|
|
// Converts an arbitrary Surface to something like the display format
|
|
|
|
// Converts an arbitrary Surface to something like the display format
|
|
|
|
// (32-bit RGBA), and converts magenta to transparency if convert_magenta is set
|
|
|
|
// (32-bit RGBA), and converts magenta to transparency if convert_magenta is set
|
|
|
@ -132,15 +132,15 @@ void Textures::init(color_ostream &out) {
|
|
|
|
g_num_dfhack_textures += load_textures(out, "hack/data/art/control-panel.png",
|
|
|
|
g_num_dfhack_textures += load_textures(out, "hack/data/art/control-panel.png",
|
|
|
|
&g_control_panel_texpos_start);
|
|
|
|
&g_control_panel_texpos_start);
|
|
|
|
g_num_dfhack_textures += load_textures(out, "hack/data/art/border-thin.png",
|
|
|
|
g_num_dfhack_textures += load_textures(out, "hack/data/art/border-thin.png",
|
|
|
|
&g_border_thin_texpos_start);
|
|
|
|
&g_thin_borders_texpos_start);
|
|
|
|
g_num_dfhack_textures += load_textures(out, "hack/data/art/border-medium.png",
|
|
|
|
g_num_dfhack_textures += load_textures(out, "hack/data/art/border-medium.png",
|
|
|
|
&g_border_medium_texpos_start);
|
|
|
|
&g_medium_borders_texpos_start);
|
|
|
|
g_num_dfhack_textures += load_textures(out, "hack/data/art/border-bold.png",
|
|
|
|
g_num_dfhack_textures += load_textures(out, "hack/data/art/border-bold.png",
|
|
|
|
&g_border_bold_texpos_start);
|
|
|
|
&g_bold_borders_texpos_start);
|
|
|
|
g_num_dfhack_textures += load_textures(out, "hack/data/art/border-panel.png",
|
|
|
|
g_num_dfhack_textures += load_textures(out, "hack/data/art/border-panel.png",
|
|
|
|
&g_border_panel_texpos_start);
|
|
|
|
&g_panel_borders_texpos_start);
|
|
|
|
g_num_dfhack_textures += load_textures(out, "hack/data/art/border-window.png",
|
|
|
|
g_num_dfhack_textures += load_textures(out, "hack/data/art/border-window.png",
|
|
|
|
&g_border_window_texpos_start);
|
|
|
|
&g_window_borders_texpos_start);
|
|
|
|
|
|
|
|
|
|
|
|
DEBUG(textures,out).print("loaded %ld textures\n", g_num_dfhack_textures);
|
|
|
|
DEBUG(textures,out).print("loaded %ld textures\n", g_num_dfhack_textures);
|
|
|
|
|
|
|
|
|
|
|
@ -197,22 +197,22 @@ long Textures::getControlPanelTexposStart() {
|
|
|
|
return g_control_panel_texpos_start;
|
|
|
|
return g_control_panel_texpos_start;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
long Textures::getBorderThinTexposStart() {
|
|
|
|
long Textures::getThinBordersTexposStart() {
|
|
|
|
return g_border_thin_texpos_start;
|
|
|
|
return g_thin_borders_texpos_start;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
long Textures::getBorderMediumTexposStart() {
|
|
|
|
long Textures::getMediumBordersTexposStart() {
|
|
|
|
return g_border_medium_texpos_start;
|
|
|
|
return g_medium_borders_texpos_start;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
long Textures::getBorderBoldTexposStart() {
|
|
|
|
long Textures::getBoldBordersTexposStart() {
|
|
|
|
return g_border_bold_texpos_start;
|
|
|
|
return g_bold_borders_texpos_start;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
long Textures::getBorderPanelTexposStart() {
|
|
|
|
long Textures::getPanelBordersTexposStart() {
|
|
|
|
return g_border_panel_texpos_start;
|
|
|
|
return g_panel_borders_texpos_start;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
long Textures::getBorderWindowTexposStart() {
|
|
|
|
long Textures::getWindowBordersTexposStart() {
|
|
|
|
return g_border_window_texpos_start;
|
|
|
|
return g_window_borders_texpos_start;
|
|
|
|
}
|
|
|
|
}
|
|
|
|