Part III
This commit is contained in:
parent
1f361017b3
commit
3857a3b0bd
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
@ -378,7 +379,7 @@ $(FREETYPE_LIB) : $(FREETYPE_TIMESTAMP)
|
|||||||
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}; \
|
||||||
|
@ -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
|
||||||
|
@ -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
BIN
fonts/retrovillenc.ttf
Normal file
Binary file not shown.
@ -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
|
||||||
|
@ -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");
|
||||||
|
|
||||||
|
@ -500,6 +500,10 @@ 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))
|
||||||
|
@ -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;
|
||||||
|
@ -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() {
|
||||||
|
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 |
Loading…
x
Reference in New Issue
Block a user