Mobile: enable minimap for all
This commit is contained in:
parent
fff7263b28
commit
de1b513fd7
@ -443,7 +443,6 @@ void set_default_settings(Settings *settings) {
|
|||||||
#elif __IOS__
|
#elif __IOS__
|
||||||
} else if (iOS_ver < 13.0) {
|
} else if (iOS_ver < 13.0) {
|
||||||
// low settings
|
// low settings
|
||||||
settings->setDefault("enable_minimap", "false");
|
|
||||||
#endif
|
#endif
|
||||||
settings->setDefault("client_unload_unused_data_timeout", "120");
|
settings->setDefault("client_unload_unused_data_timeout", "120");
|
||||||
settings->setDefault("client_mapblock_limit", "200");
|
settings->setDefault("client_mapblock_limit", "200");
|
||||||
|
@ -253,16 +253,9 @@ void TouchScreenGUI::init(ISimpleTextureSource *tsrc)
|
|||||||
m_screensize.Y / 2 - button_size / 2),
|
m_screensize.Y / 2 - button_size / 2),
|
||||||
L"drop", false);
|
L"drop", false);
|
||||||
|
|
||||||
const bool minimap = g_settings->getBool("enable_minimap");
|
|
||||||
|
|
||||||
double button_075 = 1;
|
double button_075 = 1;
|
||||||
s32 button_05 = 1;
|
s32 button_05 = 1;
|
||||||
double button_05b = 0;
|
double button_05b = 0;
|
||||||
if (!minimap) {
|
|
||||||
button_075 = 0.75;
|
|
||||||
button_05 = 2;
|
|
||||||
button_05b = button_size * 0.5;
|
|
||||||
}
|
|
||||||
|
|
||||||
// init pause button [1]
|
// init pause button [1]
|
||||||
initButton(escape_id,
|
initButton(escape_id,
|
||||||
@ -273,14 +266,12 @@ void TouchScreenGUI::init(ISimpleTextureSource *tsrc)
|
|||||||
L"Exit", false);
|
L"Exit", false);
|
||||||
|
|
||||||
// init minimap button [2]
|
// init minimap button [2]
|
||||||
if (minimap) {
|
initButton(minimap_id,
|
||||||
initButton(minimap_id,
|
rect<s32>(m_screensize.X / 2 - button_size,
|
||||||
rect<s32>(m_screensize.X / 2 - button_size,
|
0,
|
||||||
0,
|
m_screensize.X / 2,
|
||||||
m_screensize.X / 2,
|
button_size),
|
||||||
button_size),
|
L"minimap", false);
|
||||||
L"minimap", false);
|
|
||||||
}
|
|
||||||
|
|
||||||
// init rangeselect button [3]
|
// init rangeselect button [3]
|
||||||
initButton(range_id,
|
initButton(range_id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user