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
1c7c3492
Commit
1c7c3492
authored
9 years ago
by
srfqi
Committed by
Zeno-
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove fly mode in simple main menu
As the fly mode option is avaiable in-game, this is not used anymore.
parent
e3764410
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_simple_main.lua
+6
-13
6 additions, 13 deletions
builtin/mainmenu/tab_simple_main.lua
with
6 additions
and
13 deletions
builtin/mainmenu/tab_simple_main.lua
+
6
−
13
View file @
1c7c3492
...
...
@@ -69,20 +69,18 @@ local function get_formspec(tabview, name, tabdata)
-- separator
retval
=
retval
..
"box[-0.
3
,3.75;12.4,0.1;#FFFFFF]"
"box[-0.
28
,3.75;12.4,0.1;#FFFFFF]"
-- checkboxes
retval
=
retval
..
"checkbox[
1
.0,3.9;cb_creative;"
..
fgettext
(
"Creative Mode"
)
..
";"
..
"checkbox[
8
.0,3.9;cb_creative;"
..
fgettext
(
"Creative Mode"
)
..
";"
..
dump
(
core
.
setting_getbool
(
"creative_mode"
))
..
"]"
..
"checkbox[5.0,3.9;cb_damage;"
..
fgettext
(
"Enable Damage"
)
..
";"
..
dump
(
core
.
setting_getbool
(
"enable_damage"
))
..
"]"
..
"checkbox[8,3.9;cb_fly_mode;"
..
fgettext
(
"Fly mode"
)
..
";"
..
dump
(
core
.
setting_getbool
(
"free_move"
))
..
"]"
"checkbox[8.0,4.4;cb_damage;"
..
fgettext
(
"Enable Damage"
)
..
";"
..
dump
(
core
.
setting_getbool
(
"enable_damage"
))
..
"]"
-- buttons
retval
=
retval
..
"button[
2.0,4.5;6
,1.5;btn_start_singleplayer;"
..
fgettext
(
"Start Singleplayer"
)
..
"]"
..
"button[
8.25
,4.5;
2.5
,1.5;btn_config_sp_world;"
..
fgettext
(
"Config mods"
)
..
"]"
"button[
0,3.7;8
,1.5;btn_start_singleplayer;"
..
fgettext
(
"Start Singleplayer"
)
..
"]"
..
"button[
0
,4.5;
8
,1.5;btn_config_sp_world;"
..
fgettext
(
"Config mods"
)
..
"]"
return
retval
end
...
...
@@ -138,11 +136,6 @@ local function main_button_handler(tabview, fields, name, tabdata)
return
true
end
if
fields
[
"cb_fly_mode"
]
then
core
.
setting_set
(
"free_move"
,
fields
[
"cb_fly_mode"
])
return
true
end
if
fields
[
"btn_mp_connect"
]
~=
nil
or
fields
[
"key_enter"
]
~=
nil
then
...
...
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