Several Enhancements
This commit is contained in:
parent
1f56317d5f
commit
46237330d2
@ -68,7 +68,7 @@ if INIT == "client" then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return false, "Invalid usage. (See /help " .. command .. ")"
|
return false, "Invalid usage. (See .help " .. command .. ")"
|
||||||
end
|
end
|
||||||
core.register_chatcommand(command, def)
|
core.register_chatcommand(command, def)
|
||||||
end
|
end
|
||||||
|
@ -116,6 +116,8 @@ Game::Game() :
|
|||||||
&updateAllMapBlocksCallback, this);
|
&updateAllMapBlocksCallback, this);
|
||||||
g_settings->registerChangedCallback("fullbright",
|
g_settings->registerChangedCallback("fullbright",
|
||||||
&updateAllMapBlocksCallback, this);
|
&updateAllMapBlocksCallback, this);
|
||||||
|
g_settings->registerChangedCallback("node_esp_nodes",
|
||||||
|
&updateAllMapBlocksCallback, this);
|
||||||
|
|
||||||
readSettings();
|
readSettings();
|
||||||
|
|
||||||
@ -182,6 +184,8 @@ Game::~Game()
|
|||||||
&updateAllMapBlocksCallback, this);
|
&updateAllMapBlocksCallback, this);
|
||||||
g_settings->deregisterChangedCallback("fullbright",
|
g_settings->deregisterChangedCallback("fullbright",
|
||||||
&updateAllMapBlocksCallback, this);
|
&updateAllMapBlocksCallback, this);
|
||||||
|
g_settings->deregisterChangedCallback("node_esp_nodes",
|
||||||
|
&updateAllMapBlocksCallback, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Game::startup(bool *kill,
|
bool Game::startup(bool *kill,
|
||||||
|
@ -474,8 +474,8 @@ void Minimap::drawMinimap()
|
|||||||
core::matrix4 oldViewMat = driver->getTransform(video::ETS_VIEW);
|
core::matrix4 oldViewMat = driver->getTransform(video::ETS_VIEW);
|
||||||
|
|
||||||
driver->setViewPort(core::rect<s32>(
|
driver->setViewPort(core::rect<s32>(
|
||||||
screensize.X - size - 10, 10,
|
screensize.X - size * 2 - 10, 10,
|
||||||
screensize.X - 10, size + 10));
|
screensize.X - size - 10, size + 10));
|
||||||
driver->setTransform(video::ETS_PROJECTION, core::matrix4());
|
driver->setTransform(video::ETS_PROJECTION, core::matrix4());
|
||||||
driver->setTransform(video::ETS_VIEW, core::matrix4());
|
driver->setTransform(video::ETS_VIEW, core::matrix4());
|
||||||
|
|
||||||
|
@ -320,7 +320,7 @@ void set_default_settings(Settings *settings)
|
|||||||
settings->setDefault("arm_inertia", "true");
|
settings->setDefault("arm_inertia", "true");
|
||||||
|
|
||||||
settings->setDefault("enable_minimap", "true");
|
settings->setDefault("enable_minimap", "true");
|
||||||
settings->setDefault("minimap_shape_round", "true");
|
settings->setDefault("minimap_shape_round", "false");
|
||||||
settings->setDefault("minimap_double_scan_height", "true");
|
settings->setDefault("minimap_double_scan_height", "true");
|
||||||
|
|
||||||
// Effects
|
// Effects
|
||||||
|
@ -6,7 +6,6 @@ set(common_SCRIPT_LUA_API_SRCS
|
|||||||
${CMAKE_CURRENT_SOURCE_DIR}/l_env.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/l_env.cpp
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/l_http.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/l_http.cpp
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/l_inventory.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/l_inventory.cpp
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/l_inventoryaction.cpp
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/l_item.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/l_item.cpp
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/l_itemstackmeta.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/l_itemstackmeta.cpp
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/l_mapgen.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/l_mapgen.cpp
|
||||||
@ -30,6 +29,7 @@ set(client_SCRIPT_LUA_API_SRCS
|
|||||||
${CMAKE_CURRENT_SOURCE_DIR}/l_camera.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/l_camera.cpp
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/l_client.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/l_client.cpp
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/l_clientobject.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/l_clientobject.cpp
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/l_inventoryaction.cpp
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/l_localplayer.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/l_localplayer.cpp
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/l_mainmenu.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/l_mainmenu.cpp
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/l_minimap.cpp
|
${CMAKE_CURRENT_SOURCE_DIR}/l_minimap.cpp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user