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
a28055f8
Commit
a28055f8
authored
10 years ago
by
Zeno-
Browse files
Options
Downloads
Patches
Plain Diff
Allow filter and mipmap drop down menues to be translated
parent
a6dd6199
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
builtin/mainmenu/tab_settings.lua
+20
-8
20 additions, 8 deletions
builtin/mainmenu/tab_settings.lua
with
20 additions
and
8 deletions
builtin/mainmenu/tab_settings.lua
+
20
−
8
View file @
a28055f8
...
...
@@ -17,13 +17,25 @@
--------------------------------------------------------------------------------
local
dd_filter_labels
=
{
fgettext
(
"No Filter"
),
fgettext
(
"Bilinear Filter"
),
fgettext
(
"Trilinear Filter"
)
}
local
filters
=
{
{
"No Filter,Bilinear Filter,Trilinear Filter"
},
{
dd_filter_labels
[
1
]
..
","
..
dd_filter_labels
[
2
]
..
","
..
dd_filter_labels
[
3
]
},
{
""
,
"bilinear_filter"
,
"trilinear_filter"
},
}
local
dd_mipmap_labels
=
{
fgettext
(
"No Mipmap"
),
fgettext
(
"Mipmap"
),
fgettext
(
"Mipmap + Aniso. Filter"
)
}
local
mipmap
=
{
{
"No Mipmap,Mipmap,Mipmap + Aniso. Filter"
},
{
dd_mipmap_labels
[
1
]
..
","
..
dd_mipmap_labels
[
2
]
..
","
..
dd_mipmap_labels
[
3
]
},
{
""
,
"mip_map"
,
"anisotropic_filter"
},
}
...
...
@@ -347,32 +359,32 @@ local function handle_settings_buttons(this, fields, tabname, tabdata)
video_driver_fname_to_name
(
fields
[
"dd_video_driver"
]))
ddhandled
=
true
end
if
fields
[
"dd_filters"
]
==
"No Filter"
then
if
fields
[
"dd_filters"
]
==
dd_filter_labels
[
1
]
then
core
.
setting_set
(
"bilinear_filter"
,
"false"
)
core
.
setting_set
(
"trilinear_filter"
,
"false"
)
ddhandled
=
true
end
if
fields
[
"dd_filters"
]
==
"Bilinear Filter"
then
if
fields
[
"dd_filters"
]
==
dd_filter_labels
[
2
]
then
core
.
setting_set
(
"bilinear_filter"
,
"true"
)
core
.
setting_set
(
"trilinear_filter"
,
"false"
)
ddhandled
=
true
end
if
fields
[
"dd_filters"
]
==
"Trilinear Filter"
then
if
fields
[
"dd_filters"
]
==
dd_filter_labels
[
3
]
then
core
.
setting_set
(
"bilinear_filter"
,
"false"
)
core
.
setting_set
(
"trilinear_filter"
,
"true"
)
ddhandled
=
true
end
if
fields
[
"dd_mipmap"
]
==
"No Mipmap"
then
if
fields
[
"dd_mipmap"
]
==
dd_mipmap_labels
[
1
]
then
core
.
setting_set
(
"mip_map"
,
"false"
)
core
.
setting_set
(
"anisotropic_filter"
,
"false"
)
ddhandled
=
true
end
if
fields
[
"dd_mipmap"
]
==
"M
ipmap
"
then
if
fields
[
"dd_mipmap"
]
==
dd_m
ipmap
_labels
[
2
]
then
core
.
setting_set
(
"mip_map"
,
"true"
)
core
.
setting_set
(
"anisotropic_filter"
,
"false"
)
ddhandled
=
true
end
if
fields
[
"dd_mipmap"
]
==
"M
ipmap
+ Aniso. Filter"
then
if
fields
[
"dd_mipmap"
]
==
dd_m
ipmap
_labels
[
3
]
then
core
.
setting_set
(
"mip_map"
,
"true"
)
core
.
setting_set
(
"anisotropic_filter"
,
"true"
)
ddhandled
=
true
...
...
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