2023-01-03 02:01:30 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Export.h"
|
|
|
|
#include "ColorText.h"
|
|
|
|
|
|
|
|
namespace DFHack {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The Textures module - loads and provides access to DFHack textures
|
|
|
|
* \ingroup grp_modules
|
|
|
|
* \ingroup grp_textures
|
|
|
|
*/
|
|
|
|
namespace Textures {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Call this on DFHack init and on every viewscreen change so we can reload
|
|
|
|
* and reindex textures as needed.
|
|
|
|
*/
|
|
|
|
void init(DFHack::color_ostream &out);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Call this when DFHack is being unloaded.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void cleanup();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get first texpos for the DFHack logo. This texpos and the next 11 make up the
|
|
|
|
* 4x3 grid of logo textures that can be displayed on the UI layer.
|
|
|
|
*/
|
|
|
|
DFHACK_EXPORT long getDfhackLogoTexposStart();
|
|
|
|
|
2023-01-09 01:47:13 -07:00
|
|
|
/**
|
2023-01-12 15:42:40 -07:00
|
|
|
* Get the first texpos for the UI pin tiles. Each are 2x2 grids.
|
2023-01-09 01:47:13 -07:00
|
|
|
*/
|
|
|
|
DFHACK_EXPORT long getGreenPinTexposStart();
|
|
|
|
DFHACK_EXPORT long getRedPinTexposStart();
|
2023-01-12 15:42:40 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the first texpos for the DFHack icons. It's a 5x2 grid.
|
|
|
|
*/
|
|
|
|
DFHACK_EXPORT long getIconsTexposStart();
|
|
|
|
|
2023-01-29 00:59:36 -07:00
|
|
|
/**
|
|
|
|
* Get the first texpos for the on and off icons. It's a 2x1 grid.
|
|
|
|
*/
|
|
|
|
DFHACK_EXPORT long getOnOffTexposStart();
|
|
|
|
|
2023-02-01 00:52:30 -07:00
|
|
|
/**
|
|
|
|
* Get the first texpos for the control panel icons. 10x2 grid.
|
|
|
|
*/
|
|
|
|
DFHACK_EXPORT long getControlPanelTexposStart();
|
|
|
|
|
2023-01-23 03:25:16 -07:00
|
|
|
/**
|
|
|
|
* Get the first texpos for the DFHack borders. Each is a 7x3 grid.
|
|
|
|
*/
|
2023-05-18 03:22:58 -06:00
|
|
|
DFHACK_EXPORT long getBorderThinTexposStart();
|
|
|
|
DFHACK_EXPORT long getBorderMediumTexposStart();
|
|
|
|
DFHACK_EXPORT long getBorderBoldTexposStart();
|
|
|
|
DFHACK_EXPORT long getBorderPanelTexposStart();
|
|
|
|
DFHACK_EXPORT long getBorderWindowTexposStart();
|
2023-01-23 03:25:16 -07:00
|
|
|
|
2023-01-03 02:01:30 -07:00
|
|
|
}
|
|
|
|
}
|