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
29b0dc89
Commit
29b0dc89
authored
9 years ago
by
est31
Browse files
Options
Downloads
Patches
Plain Diff
Fix single click world select
parent
85f3d575
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
builtin/mainmenu/common.lua
+8
-8
8 additions, 8 deletions
builtin/mainmenu/common.lua
builtin/mainmenu/tab_server.lua
+1
-1
1 addition, 1 deletion
builtin/mainmenu/tab_server.lua
builtin/mainmenu/tab_singleplayer.lua
+1
-1
1 addition, 1 deletion
builtin/mainmenu/tab_singleplayer.lua
with
10 additions
and
10 deletions
builtin/mainmenu/common.lua
+
8
−
8
View file @
29b0dc89
...
...
@@ -307,7 +307,7 @@ function menu_worldmt(selected, setting, value)
local
filename
=
world
.
path
..
DIR_DELIM
..
"world.mt"
local
world_conf
=
Settings
(
filename
)
if
value
then
if
value
~=
nil
then
if
not
world_conf
:
write
()
then
core
.
log
(
"error"
,
"Failed to write world config file"
)
end
...
...
@@ -320,14 +320,14 @@ function menu_worldmt(selected, setting, value)
end
end
function
menu_worldmt_legacy
()
local
modes
=
{
"creative_mode"
,
"enable_damage"
}
for
_
,
mode
in
pairs
(
modes
)
do
local
mode
=
menu_worldmt
(
selected
,
""
..
mode
..
""
)
if
mode
then
core
.
setting_set
(
""
..
mode
..
""
,
mode
)
function
menu_worldmt_legacy
(
selected
)
local
modes
_names
=
{
"creative_mode"
,
"enable_damage"
}
for
_
,
mode
_name
in
pairs
(
modes
_names
)
do
local
mode
_val
=
menu_worldmt
(
selected
,
mode_name
)
if
mode
_val
~=
nil
then
core
.
setting_set
(
mode_name
,
mode
_val
)
else
menu_worldmt
(
selected
,
""
..
mode
..
""
,
core
.
setting_get
(
""
..
mode
..
""
))
menu_worldmt
(
selected
,
mode_name
,
core
.
setting_get
(
mode_name
))
end
end
end
This diff is collapsed.
Click to expand it.
builtin/mainmenu/tab_server.lua
+
1
−
1
View file @
29b0dc89
...
...
@@ -69,7 +69,7 @@ local function main_button_handler(this, fields, name, tabdata)
local
event
=
core
.
explode_textlist_event
(
fields
[
"srv_worlds"
])
local
selected
=
core
.
get_textlist_index
(
"srv_worlds"
)
menu_worldmt_legacy
()
menu_worldmt_legacy
(
selected
)
if
event
.
type
==
"DCL"
then
world_doubleclick
=
true
...
...
This diff is collapsed.
Click to expand it.
builtin/mainmenu/tab_singleplayer.lua
+
1
−
1
View file @
29b0dc89
...
...
@@ -107,7 +107,7 @@ local function main_button_handler(this, fields, name, tabdata)
local
event
=
core
.
explode_textlist_event
(
fields
[
"sp_worlds"
])
local
selected
=
core
.
get_textlist_index
(
"sp_worlds"
)
menu_worldmt_legacy
()
menu_worldmt_legacy
(
selected
)
if
event
.
type
==
"DCL"
then
world_doubleclick
=
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