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
0a0378fe
Commit
0a0378fe
authored
9 years ago
by
Sokomine
Committed by
est31
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Set server_announce to world.mt and respect modes when changing subgame
parent
8a85e5e5
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
+1
-1
1 addition, 1 deletion
builtin/mainmenu/common.lua
builtin/mainmenu/tab_server.lua
+3
-0
3 additions, 0 deletions
builtin/mainmenu/tab_server.lua
builtin/mainmenu/tab_singleplayer.lua
+8
-0
8 additions, 0 deletions
builtin/mainmenu/tab_singleplayer.lua
with
12 additions
and
1 deletion
builtin/mainmenu/common.lua
+
1
−
1
View file @
0a0378fe
...
...
@@ -322,7 +322,7 @@ function menu_worldmt(selected, setting, value)
end
function
menu_worldmt_legacy
(
selected
)
local
modes_names
=
{
"creative_mode"
,
"enable_damage"
}
local
modes_names
=
{
"creative_mode"
,
"enable_damage"
,
"server_announce"
}
for
_
,
mode_name
in
pairs
(
modes_names
)
do
local
mode_val
=
menu_worldmt
(
selected
,
mode_name
)
if
mode_val
~=
nil
then
...
...
This diff is collapsed.
Click to expand it.
builtin/mainmenu/tab_server.lua
+
3
−
0
View file @
0a0378fe
...
...
@@ -103,6 +103,9 @@ local function main_button_handler(this, fields, name, tabdata)
if
fields
[
"cb_server_announce"
]
then
core
.
setting_set
(
"server_announce"
,
fields
[
"cb_server_announce"
])
local
selected
=
core
.
get_textlist_index
(
"srv_worlds"
)
menu_worldmt
(
selected
,
"server_announce"
,
fields
[
"cb_server_announce"
])
return
true
end
...
...
This diff is collapsed.
Click to expand it.
builtin/mainmenu/tab_singleplayer.lua
+
8
−
0
View file @
0a0378fe
...
...
@@ -38,6 +38,14 @@ local function singleplayer_refresh_gamebar()
core
.
set_topleft_text
(
gamemgr
.
games
[
j
].
name
)
core
.
setting_set
(
"menu_last_game"
,
gamemgr
.
games
[
j
].
id
)
menudata
.
worldlist
:
set_filtercriteria
(
gamemgr
.
games
[
j
].
id
)
local
index
=
filterlist
.
get_current_index
(
menudata
.
worldlist
,
tonumber
(
core
.
setting_get
(
"mainmenu_last_selected_world"
)))
local
selected
=
core
.
get_textlist_index
(
"sp_worlds"
)
if
not
index
or
index
<
1
then
index
=
math.min
(
core
.
get_textlist_index
(
"sp_worlds"
),
#
menudata
.
worldlist
:
get_list
())
end
menu_worldmt_legacy
(
index
)
return
true
end
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