Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
illuna-minetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
illuna-minetest
Commits
7b17b905
Commit
7b17b905
authored
10 years ago
by
Jean-Patrick Guerrero
Committed by
Zeno-
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix style on settings tab
parent
e80a0448
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
builtin/mainmenu/tab_settings.lua
+31
-30
31 additions, 30 deletions
builtin/mainmenu/tab_settings.lua
with
31 additions
and
30 deletions
builtin/mainmenu/tab_settings.lua
+
31
−
30
View file @
7b17b905
...
...
@@ -128,35 +128,35 @@ local function formspec(tabview, name, tabdata)
end
end
local
filters
=
{
{
"No Filter,Bilinear Filter,Trilinear Filter"
},
{
""
,
"bilinear_filter"
,
"trilinear_filter"
},
}
local
mipmap
=
{
{
"No Mipmap,Mipmap,Mipmap + Aniso. Filter"
},
{
""
,
"mip_map"
,
"anisotropic_filter"
},
}
local
function
getFilterSettingIndex
()
if
(
core
.
setting_get
(
filters
[
2
][
3
])
==
"true"
)
then
return
3
end
if
(
core
.
setting_get
(
filters
[
2
][
3
])
==
"false"
and
core
.
setting_get
(
filters
[
2
][
2
])
==
"true"
)
then
return
2
end
return
1
end
local
function
getMipmapSettingIndex
()
if
(
core
.
setting_get
(
mipmap
[
2
][
3
])
==
"true"
)
then
return
3
end
if
(
core
.
setting_get
(
mipmap
[
2
][
3
])
==
"false"
and
core
.
setting_get
(
mipmap
[
2
][
2
])
==
"true"
)
then
return
2
end
return
1
end
local
filters
=
{
{
"No Filter,Bilinear Filter,Trilinear Filter"
},
{
""
,
"bilinear_filter"
,
"trilinear_filter"
},
}
local
mipmap
=
{
{
"No Mipmap,Mipmap,Mipmap + Aniso. Filter"
},
{
""
,
"mip_map"
,
"anisotropic_filter"
},
}
local
function
getFilterSettingIndex
()
if
(
core
.
setting_get
(
filters
[
2
][
3
])
==
"true"
)
then
return
3
end
if
(
core
.
setting_get
(
filters
[
2
][
3
])
==
"false"
and
core
.
setting_get
(
filters
[
2
][
2
])
==
"true"
)
then
return
2
end
return
1
end
local
function
getMipmapSettingIndex
()
if
(
core
.
setting_get
(
mipmap
[
2
][
3
])
==
"true"
)
then
return
3
end
if
(
core
.
setting_get
(
mipmap
[
2
][
3
])
==
"false"
and
core
.
setting_get
(
mipmap
[
2
][
2
])
==
"true"
)
then
return
2
end
return
1
end
local
tab_string
=
"box[0,0;3.5,3.9;#999999]"
..
...
...
@@ -241,7 +241,8 @@ end
"textlist[8.33,2.2;4,1;;#888888"
..
fgettext
(
"Waving Water"
)
..
";0;true]"
..
"textlist[8.33,2.7;4,1;;#888888"
..
fgettext
(
"Waving Leaves"
)
..
";0;true]"
..
"textlist[8.33,3.2;4,1;;#888888"
..
fgettext
(
"Waving Plants"
)
..
";0;true]"
end
end
return
tab_string
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