Version 1.3.0-release, iOS 1.3.0-release
This commit is contained in:
parent
a86e883834
commit
df06d60f29
@ -14,8 +14,8 @@ set(CMAKE_CXX_STANDARD 11)
|
|||||||
|
|
||||||
# Also remember to set PROTOCOL_VERSION in network/networkprotocol.h when releasing
|
# Also remember to set PROTOCOL_VERSION in network/networkprotocol.h when releasing
|
||||||
set(VERSION_MAJOR 1)
|
set(VERSION_MAJOR 1)
|
||||||
set(VERSION_MINOR 2)
|
set(VERSION_MINOR 3)
|
||||||
set(VERSION_PATCH 1)
|
set(VERSION_PATCH 0)
|
||||||
set(VERSION_EXTRA "" CACHE STRING "Stuff to append to version string")
|
set(VERSION_EXTRA "" CACHE STRING "Stuff to append to version string")
|
||||||
|
|
||||||
# Change to false for releases
|
# Change to false for releases
|
||||||
|
@ -1895,6 +1895,7 @@
|
|||||||
CLANG_ENABLE_OBJC_WEAK = YES;
|
CLANG_ENABLE_OBJC_WEAK = YES;
|
||||||
DEBUG_INFORMATION_FORMAT = dwarf;
|
DEBUG_INFORMATION_FORMAT = dwarf;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
|
ENABLE_INCREMENTAL_DISTILL = YES;
|
||||||
GCC_C_LANGUAGE_STANDARD = gnu11;
|
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||||
GCC_OPTIMIZATION_LEVEL = 3;
|
GCC_OPTIMIZATION_LEVEL = 3;
|
||||||
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
|
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
|
||||||
@ -1916,6 +1917,7 @@
|
|||||||
CLANG_ENABLE_MODULES = YES;
|
CLANG_ENABLE_MODULES = YES;
|
||||||
CLANG_ENABLE_OBJC_WEAK = YES;
|
CLANG_ENABLE_OBJC_WEAK = YES;
|
||||||
ENABLE_BITCODE = NO;
|
ENABLE_BITCODE = NO;
|
||||||
|
ENABLE_INCREMENTAL_DISTILL = YES;
|
||||||
GCC_C_LANGUAGE_STANDARD = gnu11;
|
GCC_C_LANGUAGE_STANDARD = gnu11;
|
||||||
GCC_OPTIMIZATION_LEVEL = 3;
|
GCC_OPTIMIZATION_LEVEL = 3;
|
||||||
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
|
GCC_SYMBOLS_PRIVATE_EXTERN = YES;
|
||||||
|
@ -19,9 +19,9 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.2.1</string>
|
<string>1.3.0</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>51</string>
|
<string>56</string>
|
||||||
<key>LSRequiresIPhoneOS</key>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>NSAppTransportSecurity</key>
|
<key>NSAppTransportSecurity</key>
|
||||||
|
@ -11,8 +11,24 @@ target 'MultiCraft' do
|
|||||||
pod 'libCurlPod', :git => 'https://github.com/MoNTE48/libCurlPod'
|
pod 'libCurlPod', :git => 'https://github.com/MoNTE48/libCurlPod'
|
||||||
pod 'libOggVorbisPod', :git => 'https://github.com/MoNTE48/libOggVorbisPod'
|
pod 'libOggVorbisPod', :git => 'https://github.com/MoNTE48/libOggVorbisPod'
|
||||||
|
|
||||||
pod 'Appodeal/Interstitial', '2.5.4-Beta'
|
# pod 'Appodeal/Interstitial', '2.5.7'
|
||||||
pod 'PersonalizedAdConsent', :git => 'https://github.com/MultiCraftProject/googleads-consent-sdk-ios'
|
|
||||||
|
pod "Appodeal/AdColonyAdapter"
|
||||||
|
pod "Appodeal/AdExchangeAdapter"
|
||||||
|
pod "Appodeal/AppLovinAdapter"
|
||||||
|
pod "Appodeal/ChartboostAdapter"
|
||||||
|
pod "Appodeal/InMobiAdapter"
|
||||||
|
pod "Appodeal/IronSource"
|
||||||
|
pod "Appodeal/MintegralAdapter"
|
||||||
|
pod "Appodeal/MyTargetAdapter"
|
||||||
|
pod "Appodeal/SmaatoAdapter"
|
||||||
|
pod "Appodeal/StartAppAdapter"
|
||||||
|
pod "Appodeal/TapjoyAdapter"
|
||||||
|
pod "Appodeal/UnityAdapter"
|
||||||
|
pod "Appodeal/VungleAdapter"
|
||||||
|
pod "Appodeal/YandexAdapter"
|
||||||
|
|
||||||
|
pod 'PersonalizedAdConsent', :git => 'https://github.com/MoNTE48/consent-sdk-ios'
|
||||||
end
|
end
|
||||||
|
|
||||||
post_install do |installer|
|
post_install do |installer|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
. sdk.sh
|
. sdk.sh
|
||||||
FREETYPE_VERSION=2.10.0
|
FREETYPE_VERSION=2.10.1
|
||||||
|
|
||||||
if [ ! -d freetype-src ]; then
|
if [ ! -d freetype-src ]; then
|
||||||
wget http://download.savannah.gnu.org/releases/freetype/freetype-$FREETYPE_VERSION.tar.gz
|
wget http://download.savannah.gnu.org/releases/freetype/freetype-$FREETYPE_VERSION.tar.gz
|
||||||
|
@ -259,12 +259,10 @@ local function get_creative_formspec(player_name, start_i, pagenum, page, pagema
|
|||||||
if page == "all" then
|
if page == "all" then
|
||||||
local inv = player_inventory[player_name] or {}
|
local inv = player_inventory[player_name] or {}
|
||||||
local filter = inv.filter or ""
|
local filter = inv.filter or ""
|
||||||
if minetest.is_singleplayer() then
|
formspec = formspec .. "field_close_on_enter[Dsearch;false]"..
|
||||||
formspec = formspec .. "field_close_on_enter[search;false]"..
|
"field[5.31,1.27;4.0,0.75;Dsearch;;"..filter.."]"
|
||||||
"field[5.31,1.27;4.0,0.75;!search;;"..filter.."]"
|
if PLATFORM == "Android" or PLATFORM == "iOS" or not minetest.is_singleplayer() then
|
||||||
else
|
formspec = formspec ..
|
||||||
formspec = formspec .. "field_close_on_enter[search;false]"..
|
|
||||||
"field[5.31,1.27;4.0,0.75;search;;"..filter.."]"..
|
|
||||||
"image_button[9.14,0.93;0.81,0.82;creative_search.png;creative_search;;;false]"
|
"image_button[9.14,0.93;0.81,0.82;creative_search.png;creative_search;;;false]"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -349,7 +347,7 @@ local function register_tab(name, title, group)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
inv.filter = fields.search and fields.search:lower() or ""
|
inv.filter = fields.Dsearch and fields.Dsearch:lower() or ""
|
||||||
if fields.build then
|
if fields.build then
|
||||||
sfinv.set_page(player, "creative:blocks")
|
sfinv.set_page(player, "creative:blocks")
|
||||||
elseif fields.stairs then
|
elseif fields.stairs then
|
||||||
@ -374,11 +372,11 @@ local function register_tab(name, title, group)
|
|||||||
sfinv.set_page(player, "creative:inv")
|
sfinv.set_page(player, "creative:inv")
|
||||||
elseif fields.brew then
|
elseif fields.brew then
|
||||||
sfinv.set_page(player, "creative:brew")
|
sfinv.set_page(player, "creative:brew")
|
||||||
elseif fields.search and
|
elseif fields.Dsearch and
|
||||||
(fields.creative_search or
|
(fields.creative_search or
|
||||||
fields.key_enter_field == "search") then
|
fields.key_enter_field == "Dsearch") then
|
||||||
inv.start_i = 0
|
inv.start_i = 0
|
||||||
--inv.filter = fields.search:lower()
|
--inv.filter = fields.Dsearch:lower()
|
||||||
update_creative_inventory(player_name, name)
|
update_creative_inventory(player_name, name)
|
||||||
sfinv.set_player_inventory_formspec(player, context)
|
sfinv.set_player_inventory_formspec(player, context)
|
||||||
elseif not fields.quit then
|
elseif not fields.quit then
|
||||||
|
@ -156,11 +156,7 @@ minetest.register_node("signs:sign", {
|
|||||||
end,
|
end,
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
if minetest.is_singleplayer() then
|
meta:set_string("formspec", "field[Dtext;Enter your text:;${sign_text}]")
|
||||||
meta:set_string("formspec", "field[!text;Enter your text:;${sign_text}]")
|
|
||||||
else
|
|
||||||
meta:set_string("formspec", "field[text;Enter your text:;${sign_text}]")
|
|
||||||
end
|
|
||||||
end,
|
end,
|
||||||
on_destruct = function(pos)
|
on_destruct = function(pos)
|
||||||
for _, obj in pairs(minetest.get_objects_inside_radius(pos, 0.5)) do
|
for _, obj in pairs(minetest.get_objects_inside_radius(pos, 0.5)) do
|
||||||
@ -175,7 +171,7 @@ minetest.register_node("signs:sign", {
|
|||||||
check_text(pos, false)
|
check_text(pos, false)
|
||||||
end,
|
end,
|
||||||
on_receive_fields = function(pos, formname, fields, sender)
|
on_receive_fields = function(pos, formname, fields, sender)
|
||||||
if not fields.text then
|
if not fields.Dtext then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local p2 = minetest.get_node(pos).param2
|
local p2 = minetest.get_node(pos).param2
|
||||||
@ -187,7 +183,7 @@ minetest.register_node("signs:sign", {
|
|||||||
local ent = obj:get_luaentity()
|
local ent = obj:get_luaentity()
|
||||||
if ent and ent.name == "signs:sign_text" then
|
if ent and ent.name == "signs:sign_text" then
|
||||||
obj:set_properties(
|
obj:set_properties(
|
||||||
{textures = {signs.generate_sign_texture(fields.text), "blank.png"}
|
{textures = {signs.generate_sign_texture(fields.Dtext), "blank.png"}
|
||||||
})
|
})
|
||||||
obj:set_pos(vector.add(pos, signs.sign_positions[p2][1]))
|
obj:set_pos(vector.add(pos, signs.sign_positions[p2][1]))
|
||||||
obj:set_yaw(signs.sign_positions[p2][2])
|
obj:set_yaw(signs.sign_positions[p2][2])
|
||||||
@ -198,12 +194,12 @@ minetest.register_node("signs:sign", {
|
|||||||
local obj = minetest.add_entity(vector.add(pos,
|
local obj = minetest.add_entity(vector.add(pos,
|
||||||
signs.sign_positions[p2][1]), "signs:sign_text")
|
signs.sign_positions[p2][1]), "signs:sign_text")
|
||||||
obj:set_properties({
|
obj:set_properties({
|
||||||
textures = {signs.generate_sign_texture(fields.text), "blank.png"}
|
textures = {signs.generate_sign_texture(fields.Dtext), "blank.png"}
|
||||||
})
|
})
|
||||||
obj:set_yaw(signs.sign_positions[p2][2])
|
obj:set_yaw(signs.sign_positions[p2][2])
|
||||||
end
|
end
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
meta:set_string("sign_text", fields.text)
|
meta:set_string("sign_text", fields.Dtext)
|
||||||
end,
|
end,
|
||||||
groups = {oddly_breakable_by_hand = 1, choppy = 3, attached_node = 1},
|
groups = {oddly_breakable_by_hand = 1, choppy = 3, attached_node = 1},
|
||||||
})
|
})
|
||||||
@ -223,11 +219,7 @@ minetest.register_node("signs:wall_sign", {
|
|||||||
drop = "signs:sign",
|
drop = "signs:sign",
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
if minetest.is_singleplayer() then
|
meta:set_string("formspec", "field[Dtext;Enter your text:;${sign_text}]")
|
||||||
meta:set_string("formspec", "field[!text;Enter your text:;${sign_text}]")
|
|
||||||
else
|
|
||||||
meta:set_string("formspec", "field[text;Enter your text:;${sign_text}]")
|
|
||||||
end
|
|
||||||
end,
|
end,
|
||||||
on_destruct = function(pos)
|
on_destruct = function(pos)
|
||||||
for _, obj in pairs(minetest.get_objects_inside_radius(pos, 0.5)) do
|
for _, obj in pairs(minetest.get_objects_inside_radius(pos, 0.5)) do
|
||||||
@ -242,7 +234,7 @@ minetest.register_node("signs:wall_sign", {
|
|||||||
check_text(pos, true)
|
check_text(pos, true)
|
||||||
end,
|
end,
|
||||||
on_receive_fields = function(pos, formname, fields, sender)
|
on_receive_fields = function(pos, formname, fields, sender)
|
||||||
if not fields.text then
|
if not fields.Dtext then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local p2 = minetest.get_node(pos).param2 - 2
|
local p2 = minetest.get_node(pos).param2 - 2
|
||||||
@ -254,7 +246,7 @@ minetest.register_node("signs:wall_sign", {
|
|||||||
local ent = obj:get_luaentity()
|
local ent = obj:get_luaentity()
|
||||||
if ent and ent.name == "signs:sign_text" then
|
if ent and ent.name == "signs:sign_text" then
|
||||||
obj:set_properties({
|
obj:set_properties({
|
||||||
textures = {signs.generate_sign_texture(fields.text), "blank.png"}
|
textures = {signs.generate_sign_texture(fields.Dtext), "blank.png"}
|
||||||
})
|
})
|
||||||
obj:set_pos(vector.add(pos, signs.wall_sign_positions[p2][1]))
|
obj:set_pos(vector.add(pos, signs.wall_sign_positions[p2][1]))
|
||||||
obj:set_yaw(signs.wall_sign_positions[p2][2])
|
obj:set_yaw(signs.wall_sign_positions[p2][2])
|
||||||
@ -265,12 +257,12 @@ minetest.register_node("signs:wall_sign", {
|
|||||||
local obj = minetest.add_entity(vector.add(pos,
|
local obj = minetest.add_entity(vector.add(pos,
|
||||||
signs.wall_sign_positions[p2][1]), "signs:sign_text")
|
signs.wall_sign_positions[p2][1]), "signs:sign_text")
|
||||||
obj:set_properties({
|
obj:set_properties({
|
||||||
textures = {signs.generate_sign_texture(fields.text), "blank.png"}
|
textures = {signs.generate_sign_texture(fields.Dtext), "blank.png"}
|
||||||
})
|
})
|
||||||
obj:set_yaw(signs.wall_sign_positions[p2][2])
|
obj:set_yaw(signs.wall_sign_positions[p2][2])
|
||||||
end
|
end
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
meta:set_string("sign_text", fields.text)
|
meta:set_string("sign_text", fields.Dtext)
|
||||||
end,
|
end,
|
||||||
groups = {oddly_breakable_by_hand = 1, choppy = 3,
|
groups = {oddly_breakable_by_hand = 1, choppy = 3,
|
||||||
not_in_creative_inventory = 1, attached_node = 1},
|
not_in_creative_inventory = 1, attached_node = 1},
|
||||||
|
@ -772,7 +772,7 @@ else()
|
|||||||
if(CMAKE_SYSTEM_NAME MATCHES "(Darwin|FreeBSD)")
|
if(CMAKE_SYSTEM_NAME MATCHES "(Darwin|FreeBSD)")
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Os")
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Os")
|
||||||
else()
|
else()
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Ofast -fdata-sections -ffunction-sections -fvisibility=hidden -flto")
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Ofast -fdata-sections -ffunction-sections -fvisibility=hidden")
|
||||||
endif(CMAKE_SYSTEM_NAME MATCHES "(Darwin|FreeBSD)")
|
endif(CMAKE_SYSTEM_NAME MATCHES "(Darwin|FreeBSD)")
|
||||||
set(CMAKE_CXX_FLAGS_SEMIDEBUG "-g -O1 -Wall -Wabi ${WARNING_FLAGS} ${OTHER_FLAGS}")
|
set(CMAKE_CXX_FLAGS_SEMIDEBUG "-g -O1 -Wall -Wabi ${WARNING_FLAGS} ${OTHER_FLAGS}")
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -Wall -Wabi ${WARNING_FLAGS} ${OTHER_FLAGS}")
|
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -Wall -Wabi ${WARNING_FLAGS} ${OTHER_FLAGS}")
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
#define PROJECT_NAME_C "MultiCraft"
|
#define PROJECT_NAME_C "MultiCraft"
|
||||||
#define STATIC_SHAREDIR ""
|
#define STATIC_SHAREDIR ""
|
||||||
#define VERSION_MAJOR 1
|
#define VERSION_MAJOR 1
|
||||||
#define VERSION_MINOR 2
|
#define VERSION_MINOR 3
|
||||||
#define VERSION_PATCH 2
|
#define VERSION_PATCH 0
|
||||||
#define VERSION_STRING STR(VERSION_MAJOR) "." STR(VERSION_MINOR) "." STR(VERSION_PATCH)
|
#define VERSION_STRING STR(VERSION_MAJOR) "." STR(VERSION_MINOR) "." STR(VERSION_PATCH)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -110,11 +110,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
|
|
||||||
// TODO: implement dpi-based scaling for windows and remove this hack
|
// TODO: implement dpi-based scaling for windows and remove this hack
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
#define TTF_DEFAULT_FONT_SIZE (20)
|
#define TTF_DEFAULT_FONT_SIZE (22)
|
||||||
#elif defined(__ANDROID__) || defined(__IOS__)
|
#elif defined(__ANDROID__) || defined(__IOS__)
|
||||||
#define TTF_DEFAULT_FONT_SIZE (16)
|
#define TTF_DEFAULT_FONT_SIZE (15)
|
||||||
#else
|
#else
|
||||||
#define TTF_DEFAULT_FONT_SIZE (18)
|
#define TTF_DEFAULT_FONT_SIZE (20)
|
||||||
#endif
|
#endif
|
||||||
#define DEFAULT_FONT_SIZE (10)
|
#define DEFAULT_FONT_SIZE (10)
|
||||||
|
|
||||||
|
@ -450,6 +450,8 @@ void set_default_settings(Settings *settings)
|
|||||||
// iOS Settings
|
// iOS Settings
|
||||||
#ifdef __IOS__
|
#ifdef __IOS__
|
||||||
settings->setDefault("debug_log_level", "none");
|
settings->setDefault("debug_log_level", "none");
|
||||||
|
settings->setDefault("autosave_screensize", "false");
|
||||||
|
|
||||||
// set font_path
|
// set font_path
|
||||||
settings->setDefault("mono_font_path", g_settings->get("font_path"));
|
settings->setDefault("mono_font_path", g_settings->get("font_path"));
|
||||||
settings->setDefault("fallback_font_path", g_settings->get("font_path"));
|
settings->setDefault("fallback_font_path", g_settings->get("font_path"));
|
||||||
|
@ -1006,9 +1006,7 @@ void GUIFormSpecMenu::parseSimpleField(parserData* data,
|
|||||||
std::string label = parts[1];
|
std::string label = parts[1];
|
||||||
std::string default_val = parts[2];
|
std::string default_val = parts[2];
|
||||||
|
|
||||||
bool is_dynamic = (name.length() > 0 && name[0] == '!');
|
bool is_dynamic = (name.length() > 0 && name[0] == 'D');
|
||||||
if (is_dynamic)
|
|
||||||
name = name.substr(1);
|
|
||||||
|
|
||||||
core::rect<s32> rect;
|
core::rect<s32> rect;
|
||||||
|
|
||||||
@ -1100,9 +1098,7 @@ void GUIFormSpecMenu::parseTextArea(parserData* data, std::vector<std::string>&
|
|||||||
std::string label = parts[3];
|
std::string label = parts[3];
|
||||||
std::string default_val = parts[4];
|
std::string default_val = parts[4];
|
||||||
|
|
||||||
bool is_dynamic = (name.length() > 0 && name[0] == '!');
|
bool is_dynamic = (name.length() > 0 && name[0] == 'D');
|
||||||
if (is_dynamic)
|
|
||||||
name = name.substr(1);
|
|
||||||
|
|
||||||
MY_CHECKPOS(type,0);
|
MY_CHECKPOS(type,0);
|
||||||
MY_CHECKGEOM(type,1);
|
MY_CHECKGEOM(type,1);
|
||||||
@ -3830,21 +3826,6 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.GUIEvent.EventType == gui::EGET_EDITBOX_CHANGED) {
|
|
||||||
if (event.GUIEvent.Caller->getID() > 257) {
|
|
||||||
for (u32 i = 0; i < m_fields.size(); i++) {
|
|
||||||
FieldSpec &s = m_fields[i];
|
|
||||||
if (s.ftype == f_Unknown && s.is_dynamic &&
|
|
||||||
s.fid == event.GUIEvent.Caller->getID()) {
|
|
||||||
s.send = true;
|
|
||||||
acceptInput();
|
|
||||||
s.send = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (event.GUIEvent.EventType == gui::EGET_EDITBOX_ENTER) {
|
if (event.GUIEvent.EventType == gui::EGET_EDITBOX_ENTER) {
|
||||||
if (event.GUIEvent.Caller->getID() > 257) {
|
if (event.GUIEvent.Caller->getID() > 257) {
|
||||||
bool close_on_enter = true;
|
bool close_on_enter = true;
|
||||||
@ -3875,15 +3856,16 @@ bool GUIFormSpecMenu::OnEvent(const SEvent& event)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.GUIEvent.EventType == gui::EGET_TABLE_CHANGED) {
|
if (event.GUIEvent.EventType == gui::EGET_TABLE_CHANGED || event.GUIEvent.EventType == gui::EGET_EDITBOX_CHANGED) {
|
||||||
int current_id = event.GUIEvent.Caller->getID();
|
int current_id = event.GUIEvent.Caller->getID();
|
||||||
if (current_id > 257) {
|
if (current_id > 257) {
|
||||||
// find the element that was clicked
|
// find the element that was clicked or changed
|
||||||
for (u32 i = 0; i < m_fields.size(); i++) {
|
for (u32 i = 0; i < m_fields.size(); i++) {
|
||||||
FieldSpec &s = m_fields[i];
|
FieldSpec &s = m_fields[i];
|
||||||
// if it's a table, set the send field
|
// if it's a table, set the send field
|
||||||
// so lua knows which table was changed
|
// so lua knows which table was changed
|
||||||
if ((s.ftype == f_Table) && (s.fid == current_id)) {
|
if ((s.ftype == f_Table && s.fid == current_id) ||
|
||||||
|
(s.ftype == f_Unknown && s.is_dynamic && s.fid == current_id)) {
|
||||||
s.send = true;
|
s.send = true;
|
||||||
acceptInput();
|
acceptInput();
|
||||||
s.send = false;
|
s.send = false;
|
||||||
|
@ -112,7 +112,11 @@ FileLogOutput file_log_output;
|
|||||||
|
|
||||||
static OptionList allowed_options;
|
static OptionList allowed_options;
|
||||||
|
|
||||||
|
#ifdef __IOS__
|
||||||
|
int real_main(int argc, char *argv[])
|
||||||
|
#else
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
int retval;
|
int retval;
|
||||||
debug_set_exception_handler();
|
debug_set_exception_handler();
|
||||||
|
@ -314,7 +314,6 @@ void notifyExitGame()
|
|||||||
jnienv->CallVoidMethod(app_global->activity->clazz, notifyExit);
|
jnienv->CallVoidMethod(app_global->activity->clazz, notifyExit);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef SERVER
|
|
||||||
float getDisplayDensity()
|
float getDisplayDensity()
|
||||||
{
|
{
|
||||||
static bool firstrun = true;
|
static bool firstrun = true;
|
||||||
@ -364,5 +363,4 @@ v2u32 getDisplaySize()
|
|||||||
}
|
}
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
#endif // ndef SERVER
|
|
||||||
}
|
}
|
||||||
|
@ -45,7 +45,7 @@ namespace porting {
|
|||||||
}
|
}
|
||||||
|
|
||||||
float getDisplayDensity() {
|
float getDisplayDensity() {
|
||||||
return 1.0;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
v2u32 getDisplaySize() {
|
v2u32 getDisplaySize() {
|
||||||
@ -96,11 +96,11 @@ namespace porting {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extern int main(int argc, char *argv[]);
|
extern int real_main(int argc, char *argv[]);
|
||||||
|
|
||||||
void irrlicht_main() {
|
void irrlicht_main() {
|
||||||
static const char *args[] = {
|
static const char *args[] = {
|
||||||
PROJECT_NAME,
|
PROJECT_NAME,
|
||||||
};
|
};
|
||||||
main(1, (char**) args);
|
real_main(1, (char**) args);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user