Declare version 1.2.0
[minetest_hudbars.git] / README.txt
blob49cd98c3644cac4252247b0396e558e2679e2a8b
1 Minetest mod: HUD bars
2 ======================
3 Version: 1.2.0
5 This software uses semantic versioning, as defined by version 2.0.0 of the SemVer
6 standard. <http://semver.org/>
9 License of source code: WTFPL
10 -----------------------------
11 Author: Wuzzy (2015)
12 Forked from the “Better HUD” [hud] mod by BlockMen.
15 Using the mod:
16 --------------
17 This mod changes the HUD of Minetest. It replaces the default health and breath symbols by horizontal colored bars with text showing
18 the number.
20 Furthermore, it enables other mods to add their own custom bars to the HUD, this mod will place them accordingly.
22 You can create a “hudbars.conf” file to customize the positions of the health and breath bars. Take a look at “hudbars.conf.example”
23 to get more infos. The lines starting with “--” are comments, remove the two dashes to activate a setting. Settings which are not
24 set will use a default value instead.
27 IMPORTANT:
28 Keep in mind if running a server with this mod, that the custom position should be displayed correctly on every screen size!
30 Settings:
31 ---------
32 This mod can be configured by editing minetest.conf. Currently, the following setting is recognized:
34 - hudbars_autohide_breath: A boolean setting, it can be either “true” or “false”. If set to “true”,
35   the breath bar will be automatically hidden shortly after the breathbar has been filled up. If set
36   to “false”, the breath bar will always be displayed. The default value is “true”.
38 - hudbars_sorting: This setting allows you to specify the “slot” positions of the HUD bars manually.
40   The setting has to be specified as a comma-seperated list of key=value pairs, where a key refers to the
41   identifier of a HUD bar and the value refers to the slot number of where the HUD bar should be placed.
42   The slot number must be an integer greater of equal to 0. The slot positions start (slot 0) at the
43   bottom (nearest to hotbar in default configuration) left side, the following slot 1 is at the right
44   side, slot `2` is on the right side again, but placed over the first HUD bar (slot 0), and it goes on,
45   in a zig-zag pattern.
46   All HUD bars to which no sorting rule has been applied will fill in all slots which have not been occupied
47   by the HUD bars specified in this setting, the slots will be filled in from the lowest slot number.
48   Note that the order of those remaining HUD bars is *not* fixed, it basically just boils down on which mod
49   “came” first. Don't worry, the mod will still work perfectly fine, this setting is entirely optional.
51   Be careful not to use slot indices twice, or else different HUD bars will be drawn over each other!
53   If this setting is not set, by default the health and breath bar are displayed at slot positions 0 and 1,
54   respectively (health bar at left bottom-most positoin, breath bar right from it). All other HUD bars are
55   placed automatically.
57   Example value:
58     breath=0, health=1
59   This places the breath bar at the left side, and the health bar to the right side.
61 - hudbars_bar_type: Specifies the style of bars. You can select between the default progress-bar-like bars and the good old statbars
62   like you know from vanilla Minetest. Note that the classic and modern statbars are still a little bit experimental.
63   These values are possible:
64     - progress_bar:    A horizontal progress-bar-like bar with a label, showing numerical value (current, maximum), and an icon.
65                        These bars usually convey the most information. This is the default and recommended value..
66     - statbar_classic: Classic statbar, like in vanilla Minetest. Made out of up to 20 half-symbols. Those bars represent the vague ratio between
67                        the current value and the maximum value. 1 half-symbol stands for approximately 5% of the maximum value.
68     - statbar_modern:  Like the classic statbar, but also supports background images, this kind of statbar may be considered to be more user-friendly
69                        than the classic statbar. This bar type closely resembles the [hud] mod.
71 - hudbars_vmargin: The vertical distance between two HUD bars in pixels (default: 24)
72 - hudbars_tick: The number of seconds between two updates of the HUD bars. Increase this number if you have a slow server (default: 0.1)
74 Position settings:
75 With these settings you can configure the positions of the HUD bars. All settings must be specified as a number.
76 The pos settings are specified as a floating-point number between 0 to 1 each, the start_offset settings are
77 specified as whole numbers, they specify a number of pixels.
78 The left and right variants are used for the zig-zag mode. In the stack_up and stack_down modes, only the left variant is used for
79 the base position
81 - hudbars_pos_left_x, hudbars_pos_left_y: Screen position (x and y) of the left HUD bar in zigzag mode. 0 is left-most/top, 1 is right-most/bottom.
82         Defaults: 0.5 (x) and 1 (y)
83 - hudbars_pos_right_x, hudbars_pos_right_y: Same as above, but for the right one.
84         Defaults: 0.5 and 1.
85 - hudbars_start_offset_left_x, hudbars_start_offset_left_y: Offset in pixels from the basic screen position specified in hudbars_pos_left_x/hudbars_pos_left_y.
86         Defaults: -175 and -86
87 - hudbars_start_offset_right_x, hudbars_start_offset_right_y: Same as above, but for the right one.
88         Defaults: 15 and -86
90 API:
91 ----
92 The API is used to add your own custom HUD bars.
93 Documentation for the API of this mod can be found in API.md.
96 License of textures:
97 --------------------
98 hudbars_icon_health.png - celeron55 (CC BY-SA 3.0), modified by BlockMen
99 hudbars_bgicon_health.png - celeron55 (CC BY-SA 3.0), modified by BlockMen
100 hudbars_icon_breath.png - kaeza (WTFPL), modified by BlockMen
101 hudbars_bar_health.png - Wuzzy (WTFPL)
102 hudbars_bar_breath.png - Wuzzy (WTFPL)
103 hudbars_bar_background.png - Wuzzy(WTFPL)
105 This program is free software. It comes without any warranty, to
106 the extent permitted by applicable law. You can redistribute it
107 and/or modify it under the terms of the Do What The Fuck You Want
108 To Public License, Version 2, as published by Sam Hocevar. See
109 http://sam.zoy.org/wtfpl/COPYING for more details.