diff --git a/examples/proto_debuger/lua_wraper.cpp b/examples/proto_debuger/lua_wraper.cpp index 6115854f..69cd73ec 100644 --- a/examples/proto_debuger/lua_wraper.cpp +++ b/examples/proto_debuger/lua_wraper.cpp @@ -53,8 +53,7 @@ void LuaDelegate::OnSerialData(std::string data) { } -void LuaDelegate::DumpStack() -{ +void LuaDelegate::DumpStack() { static int count = 0; printf("begin dump lua stack:%d\n", count); int top = lua_gettop(mVM); @@ -81,16 +80,14 @@ void LuaDelegate::DumpStack() } -LuaDelegate::~LuaDelegate() -{ +LuaDelegate::~LuaDelegate() { if(nullptr != mVM){ lua_close(mVM); } } LuaDelegate::LuaDelegate(): - mVM(nullptr) -{ + mVM(nullptr) { mVM = luaL_newstate(); //打开lua if(nullptr != mVM){ printf("shit is nullptr"); @@ -100,8 +97,7 @@ LuaDelegate::LuaDelegate(): } LuaDelegate::LuaDelegate(std::map maps) : - mVM(nullptr) -{ + mVM(nullptr) { mVM = luaL_newstate(); //打开lua if (nullptr != mVM) { printf("shit is nullptr"); @@ -114,8 +110,7 @@ LuaDelegate::LuaDelegate(std::map maps) : mFunc = maps; } -int LuaDelegate::DoFile(std::string path) -{ +int LuaDelegate::DoFile(std::string path) { if(mVM != nullptr){ int ret = luaL_dofile(mVM, path.c_str()); if (ret > 0){ diff --git a/examples/x64/Debug/resources/lang/en_US/gdstrings.ini b/examples/x64/Debug/resources/lang/en_US/gdstrings.ini new file mode 100644 index 00000000..e3badba0 --- /dev/null +++ b/examples/x64/Debug/resources/lang/en_US/gdstrings.ini @@ -0,0 +1,24 @@ +;String resources in English +;Example: +;STRID_MAINWINDOW_BUTTON_LOGIN = Login +;TIPID_MAINWINDOW_BUTTON_LOGIN = Click to login +;comment symbol:“;” +;rule:Every window uses its own strings. One windows is not permitted to use strings of other windows'. + +;Common +STRING_OK = OK +STRING_CANCEL = Cancel + +;cef Browser +STRID_CEF_BROWSER_WINDOW_MODE = Window Mode Cef Browser Component Test +STRID_CEF_BROWSER_BACKWARD = Back +STRID_CEF_BROWSER_FORWARD = Forward +STRID_CEF_BROWSER_INPUT_ADDRESS = Input Address +STRID_CEF_BROWSER_BROWSE_TO = Go To +STRID_CEF_BROWSER_REFRESH = Reload +STRID_CEF_BROWSER_HELLO_JS = Hello JS! +STRID_CEF_BROWSER_INPUT_TEXT = Input text sending to JS +STRID_CEF_BROWSER_SEND_TO_JS = Send to JS +STRID_CEF_BROWSER_OFF_SCREEN_MODE = Off-screen Rendering Cef Browser Component Test +STRID_CEF_BROWSER_RECEIVE_JS_MSG = Received Msg From JS: %s +STRID_CEF_BROWSER_MULTI_TAB = Multi Tab Browser diff --git a/examples/x64/Debug/resources/lang/zh_CN/gdstrings.ini b/examples/x64/Debug/resources/lang/zh_CN/gdstrings.ini new file mode 100644 index 00000000..4e2736e6 --- /dev/null +++ b/examples/x64/Debug/resources/lang/zh_CN/gdstrings.ini @@ -0,0 +1,25 @@ +;中文简体字符资源 +;事例 +;常规字符:STRID_MAINWINDOW_BUTTON_LOGIN = 登 录 +;Tip字符 :TIPID_MAINWINDOW_BUTTON_LOGIN = 点击登录 +;注释符号:“;” +;使用规范:每个窗口单独成方阵,不允许出现跨窗口复用情况(一个字符资源多个窗口使用) + +;通用 +STRING_OK = 确定 +STRING_CANCEL = 取消 + +;cef 浏览器 +STRID_CEF_BROWSER_WINDOW_MODE = 有窗模式Cef浏览器组件测试 +STRID_CEF_BROWSER_BACKWARD = 后退 +STRID_CEF_BROWSER_FORWARD = 前进 +STRID_CEF_BROWSER_INPUT_ADDRESS = 请输入地址 +STRID_CEF_BROWSER_BROWSE_TO = 转到 +STRID_CEF_BROWSER_REFRESH = 刷新 +STRID_CEF_BROWSER_HELLO_JS = 你好JS! +STRID_CEF_BROWSER_INPUT_TEXT = 输入发送给JS的文本 +STRID_CEF_BROWSER_SEND_TO_JS = 发送给JS +STRID_CEF_BROWSER_OFF_SCREEN_MODE = 离屏渲染Cef浏览器组件测试 +STRID_CEF_BROWSER_RECEIVE_JS_MSG = 收到来自JS的消息:%s +STRID_CEF_BROWSER_MULTI_TAB = 可拖拽多标签浏览器 +STRID_CEF_BROWSER_CLOSING = 当前窗口包含多个标签页,确定要关闭吗? diff --git a/examples/x64/Debug/resources/themes/default/basic/basic.xml b/examples/x64/Debug/resources/themes/default/basic/basic.xml new file mode 100644 index 00000000..70712684 --- /dev/null +++ b/examples/x64/Debug/resources/themes/default/basic/basic.xml @@ -0,0 +1,30 @@ + + + + + + +