aboutsummaryrefslogtreecommitdiff
path: root/src/tool.h
Commit message (Expand)AuthorAge
* Fix and tune things, add tool "recharge" animation, add dummyballPerttu Ahola2012-03-10
* Damage groups WIPPerttu Ahola2012-03-10
* itemgroup.h and ItemGroupList typedefPerttu Ahola2012-03-10
* Digging time groups WIPPerttu Ahola2012-03-10
* GameDef compilesPerttu Ahola2011-11-29
* Create framework for getting rid of global definitions of node/tool/item/what...Perttu Ahola2011-11-29
* Move tool stuff to tool.{h,cpp}Perttu Ahola2011-11-29
Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include "hud.h" #include <cmath> const struct EnumString es_HudElementType[] = { {HUD_ELEM_IMAGE, "image"}, {HUD_ELEM_TEXT, "text"}, {HUD_ELEM_STATBAR, "statbar"}, {HUD_ELEM_INVENTORY, "inventory"}, {HUD_ELEM_WAYPOINT, "waypoint"}, {0, NULL}, }; const struct EnumString es_HudElementStat[] = { {HUD_STAT_POS, "position"}, {HUD_STAT_POS, "pos"}, /* Deprecated, only for compatibility's sake */ {HUD_STAT_NAME, "name"}, {HUD_STAT_SCALE, "scale"}, {HUD_STAT_TEXT, "text"}, {HUD_STAT_NUMBER, "number"}, {HUD_STAT_ITEM, "item"}, {HUD_STAT_DIR, "direction"}, {HUD_STAT_ALIGN, "alignment"}, {HUD_STAT_OFFSET, "offset"}, {HUD_STAT_WORLD_POS, "world_pos"}, {0, NULL}, }; const struct EnumString es_HudBuiltinElement[] = { {HUD_FLAG_HOTBAR_VISIBLE, "hotbar"}, {HUD_FLAG_HEALTHBAR_VISIBLE, "healthbar"}, {HUD_FLAG_CROSSHAIR_VISIBLE, "crosshair"}, {HUD_FLAG_WIELDITEM_VISIBLE, "wielditem"}, {HUD_FLAG_BREATHBAR_VISIBLE, "breathbar"}, {HUD_FLAG_MINIMAP_VISIBLE, "minimap"}, {0, NULL}, };