master
Maksim Gamarnik 2016-04-21 01:53:17 +03:00
parent 05b9ece1c3
commit 52abfb0219
14 changed files with 30 additions and 15 deletions

1
.gitignore vendored
View File

@ -33,6 +33,7 @@ gtags.files
## Configuration/log files ## Configuration/log files
debug.txt debug.txt
multicraft.conf
## Doxygen files ## Doxygen files
doc/Doxyfile doc/Doxyfile

View File

@ -83,6 +83,7 @@ IRRLICHT_TIMESTAMP = $(IRRLICHT_DIR)/timestamp
IRRLICHT_TIMESTAMP_INT = $(ROOT)/deps/irrlicht_timestamp IRRLICHT_TIMESTAMP_INT = $(ROOT)/deps/irrlicht_timestamp
IRRLICHT_URL_HTTP = https://github.com/zaki/irrlicht/archive/$(IRRLICHT_COMMIT).zip IRRLICHT_URL_HTTP = https://github.com/zaki/irrlicht/archive/$(IRRLICHT_COMMIT).zip
# not used now
OPENSSL_VERSION = 1.0.2g OPENSSL_VERSION = 1.0.2g
OPENSSL_DIR = $(ROOT)/deps/openssl OPENSSL_DIR = $(ROOT)/deps/openssl
OPENSSL_LIB = $(OPENSSL_DIR)/libssl.so.1.0.0 OPENSSL_LIB = $(OPENSSL_DIR)/libssl.so.1.0.0
@ -118,7 +119,7 @@ ICONV_TIMESTAMP = $(ICONV_DIR)/timestamp
ICONV_TIMESTAMP_INT = $(ROOT)/deps/iconv_timestamp ICONV_TIMESTAMP_INT = $(ROOT)/deps/iconv_timestamp
ICONV_URL_HTTP = http://ftp.gnu.org/pub/gnu/libiconv/libiconv-$(ICONV_VERSION).tar.gz ICONV_URL_HTTP = http://ftp.gnu.org/pub/gnu/libiconv/libiconv-$(ICONV_VERSION).tar.gz
SQLITE3_VERSION= 3120100 SQLITE3_VERSION= 3120200
SQLITE3_DIR = $(ROOT)/deps/sqlite SQLITE3_DIR = $(ROOT)/deps/sqlite
SQLITE3_URL = http://www.sqlite.org/2016/sqlite-amalgamation-$(SQLITE3_VERSION).zip SQLITE3_URL = http://www.sqlite.org/2016/sqlite-amalgamation-$(SQLITE3_VERSION).zip
@ -376,9 +377,9 @@ $(FREETYPE_LIB) : $(FREETYPE_TIMESTAMP)
export PATH="$${TOOLCHAIN}/bin:$${PATH}"; \ export PATH="$${TOOLCHAIN}/bin:$${PATH}"; \
export CXX=${CROSS_PREFIX}g++; \ export CXX=${CROSS_PREFIX}g++; \
export TARGET_OS=OS_ANDROID_CROSSCOMPILE; \ export TARGET_OS=OS_ANDROID_CROSSCOMPILE; \
CC=${CROSS_PREFIX}gcc ./configure --host=${TARGET_HOST} \ CC=${CROSS_PREFIX}gcc ./configure --host=${TARGET_HOST} \
--prefix=${TOOLCHAIN} --with-png=no --with-harfbuzz=no || exit 1; \ --prefix=${TOOLCHAIN} --with-png=no --with-harfbuzz=no || exit 1; \
CC=${CROSS_PREFIX}gcc ANDROID_DEV=/tmp/ndk-${TARGET_HOST}-freetype make || exit 1; \ CC=${CROSS_PREFIX}gcc ANDROID_DEV=/tmp/ndk-${TARGET_HOST}-freetype $(MAKE) || exit 1; \
touch ${FREETYPE_TIMESTAMP}; \ touch ${FREETYPE_TIMESTAMP}; \
touch ${FREETYPE_TIMESTAMP_INT}; \ touch ${FREETYPE_TIMESTAMP_INT}; \
$(RM) -rf $${TOOLCHAIN}; \ $(RM) -rf $${TOOLCHAIN}; \

View File

@ -180,6 +180,6 @@ function mm_texture.set_dirt_bg()
end end
--use base pack --use base pack
local minimalpath = defaulttexturedir .. "dirt_bg.png" local minimalpath = defaulttexturedir .. "bg.png"
core.set_background("background", minimalpath, true, 128) core.set_background("background", minimalpath, true, 128)
end end

View File

@ -227,6 +227,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.
RetroVille NC:
100% Free
Copyright (c) 2010, Jayvee Enaguas
http://www.dafont.com/retroville-nc.font
--- --- --- --- --- ---
Mod "Dungeon Loot" [dungeon_loot] Mod "Dungeon Loot" [dungeon_loot]

Binary file not shown.

BIN
fonts/retrovillenc.ttf Normal file

Binary file not shown.

View File

@ -1,6 +1,6 @@
menu_last_game = default menu_last_game = default
name = name =
selected_world_path = /home/maksim/MultiCraft/bin/../worlds/World 1 selected_world_path = /media/maksim/LinuxWork/MultiCraft-master/bin/../worlds/World 2
server_dedicated = false server_dedicated = false
creative_mode = false creative_mode = false
enable_damage = true enable_damage = true

View File

@ -217,7 +217,7 @@ void set_default_settings(Settings *settings)
std::stringstream fontsize; std::stringstream fontsize;
fontsize << DEFAULT_FONT_SIZE; fontsize << DEFAULT_FONT_SIZE;
settings->setDefault("font_size", "12"); settings->setDefault("font_size", fontsize.str());
settings->setDefault("mono_font_size", fontsize.str()); settings->setDefault("mono_font_size", fontsize.str());
settings->setDefault("fallback_font_size", fontsize.str()); settings->setDefault("fallback_font_size", fontsize.str());
#else #else
@ -355,7 +355,7 @@ void set_default_settings(Settings *settings)
settings->setDefault("fps_max", "30"); settings->setDefault("fps_max", "30");
settings->setDefault("max_objects_per_block", "20"); settings->setDefault("max_objects_per_block", "20");
settings->setDefault("sqlite_synchronous", "1"); settings->setDefault("sqlite_synchronous", "1");
settings->setDefault("gui_scaling", "1.1"); settings->setDefault("gui_scaling", "1.2");
settings->setDefault("doubletap_jump", "true"); settings->setDefault("doubletap_jump", "true");
settings->setDefault("server_map_save_interval", "20"); settings->setDefault("server_map_save_interval", "20");
settings->setDefault("client_unload_unused_data_timeout", "60"); settings->setDefault("client_unload_unused_data_timeout", "60");
@ -382,9 +382,10 @@ void set_default_settings(Settings *settings)
settings->setDefault("mouse_sensitivity", "0.15"); settings->setDefault("mouse_sensitivity", "0.15");
} }
std::stringstream anddroidfontsize; //std::stringstream anddroidfontsize;
anddroidfontsize << DEFAULT_FONT_SIZE / 2.8 * x_inches; //anddroidfontsize << DEFAULT_FONT_SIZE / 3.0 * x_inches;
settings->setDefault("font_size", anddroidfontsize.str()); //settings->setDefault("font_size", anddroidfontsize.str());
settings->setDefault("mono_font_path", "/system/fonts/DroidSansMono.ttf"); settings->setDefault("mono_font_path", "/system/fonts/DroidSansMono.ttf");
settings->setDefault("fallback_font_path", "/system/fonts/DroidSans.ttf"); settings->setDefault("fallback_font_path", "/system/fonts/DroidSans.ttf");

View File

@ -500,7 +500,11 @@ void draw_load_screen(const std::wstring &text, IrrlichtDevice* device,
} }
else else
driver->beginScene(true, true, video::SColor(255, 0, 0, 0)); driver->beginScene(true, true, video::SColor(255, 0, 0, 0));
video::ITexture *background_image = driver->getTexture((porting::path_share + "/textures/base/bg.png").c_str());
draw2DImageFilterScaled(driver, background_image,
irr::core::rect<s32>(0, 0, screensize.X*2, screensize.Y*2),
irr::core::rect<s32>(0, 0, screensize.X, screensize.Y), 0, 0, false);
// draw progress bar // draw progress bar
if ((percent >= 0) && (percent <= 100)) if ((percent >= 0) && (percent <= 100))
{ {

View File

@ -2902,7 +2902,7 @@ bool GUIFormSpecMenu::preprocessEvent(const SEvent& event)
if (label == "") { if (label == "") {
label = "text"; label = "text";
} }
message += gettext(label) + ":"; message += gettext(label.c_str());
/* single line text input */ /* single line text input */
int type = 2; int type = 2;

View File

@ -449,7 +449,7 @@ void Hud::drawHotbar(u16 playeritem) {
s32 hotbar_itemcount = player->hud_hotbar_itemcount; s32 hotbar_itemcount = player->hud_hotbar_itemcount;
s32 width = hotbar_itemcount * (m_hotbar_imagesize + m_padding * 2); s32 width = hotbar_itemcount * (m_hotbar_imagesize + m_padding * 2);
v2s32 pos = centerlowerpos - v2s32(width / 2, m_hotbar_imagesize + m_padding * 3); v2s32 pos = centerlowerpos - v2s32(width / 2, m_hotbar_imagesize + m_padding * 2.7);
if ( (float) width / (float) porting::getWindowSize().X <= if ( (float) width / (float) porting::getWindowSize().X <=
g_settings->getFloat("hud_hotbar_max_width")) { g_settings->getFloat("hud_hotbar_max_width")) {
@ -580,7 +580,7 @@ void Hud::updateSelectionMesh(const v3s16 &camera_offset)
m_halo_boxes.push_back(halo_box); m_halo_boxes.push_back(halo_box);
m_selection_mesh = convertNodeboxesToMesh( m_selection_mesh = convertNodeboxesToMesh(
m_halo_boxes, texture_uv, 0.5); m_halo_boxes, texture_uv, 0.3);
} }
void Hud::resizeHotbar() { void Hud::resizeHotbar() {

View File

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 219 B

After

Width:  |  Height:  |  Size: 222 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 257 B

After

Width:  |  Height:  |  Size: 272 B