Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hudbars
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Illuna-Minetest
hudbars
Commits
85ba0cfd
Commit
85ba0cfd
authored
9 years ago
by
Milan
Browse files
Options
Downloads
Patches
Plain Diff
positioning and resizing
parent
5b28ce44
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hudbars/init.lua
+3
-3
3 additions, 3 deletions
hudbars/init.lua
with
3 additions
and
3 deletions
hudbars/init.lua
+
3
−
3
View file @
85ba0cfd
...
...
@@ -8,7 +8,7 @@ hb.registered_slots = {}
hb
.
settings
=
{}
local
enable_damage
=
minetest
.
setting_getbool
(
"enable_damage"
)
local
gui_scale
=
tonumber
(
minetest
.
setting_get
(
"gui_scaling"
))
or
1
-- use this to scale hud
local
gui_scale
=
1
.
4
1
-- use this to scale hud
function
hb
.
load_setting
(
sname
,
stype
,
defaultval
,
valid_values
)
local
sval
...
...
@@ -74,7 +74,7 @@ hb.settings.start_offset_right.y = hb.load_setting("hudbars_start_offset_right_y
hb
.
settings
.
vmargin
=
hb
.
load_setting
(
"hudbars_tick"
,
"number"
,
24
*
gui_scale
)
hb
.
settings
.
tick
=
hb
.
load_setting
(
"hudbars_tick"
,
"number"
,
1
)
-- was 0.1
hb
.
settings
.
tick
=
hb
.
load_setting
(
"hudbars_tick"
,
"number"
,
1
)
-- was 0.1
---was 1
-- experimental setting: Changing this setting is not officially supported, do NOT rely on it!
hb
.
settings
.
forceload_default_hudbars
=
hb
.
load_setting
(
"hudbars_forceload_default_hudbars"
,
"bool"
,
true
)
...
...
@@ -99,7 +99,7 @@ hb.settings.bar_type = hb.load_setting(
hb
.
settings
.
autohide_breath
=
hb
.
load_setting
(
"hudbars_autohide_breath"
,
"bool"
,
true
)
hb
.
direction
=
0
-- 0: left-right, 1: right-left, 2: top-bottom, 3: bottom-top -TENPLUS1
if
hb
.
settings
.
bar_type
==
"progress_bar"
then
hb
.
size
=
{
x
=
3
*
gui_scale
,
y
=
17
*
gui_scale
}
hb
.
size
=
{
x
=
17
*
gui_scale
,
y
=
17
*
gui_scale
}
else
hb
.
size
=
{
x
=
17
*
gui_scale
,
y
=
17
*
gui_scale
}
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment