BambuStudio 自定义加载页面

目录

语言设置:

修改文件:

编译后会生成:

语言设置:

[BambuStudio 自定义加载页面](#BambuStudio 自定义加载页面)

插件下载url:

[version.inc 中设置软件名字:](#version.inc 中设置软件名字:)


语言设置:

cmake --build . --target gettext_po_to_mo --config RelWithDebInfo

修改文件:

BambuStudio_zh_CN.po

编译后会生成:

bash 复制代码
BambuStudio\build\src\RelWithDebInfo\resources\i18n\zh_CN\BambuStudio.mo

findstr /S /I "zh_CN" *.cpp *.h *.cmake

CMakeFiles\VerifyGlobs.cmake: "E:/pro_math/BambuStudio/src/slic3r/GUI/DeviceWeb/device_page/locales/zh_CN.json"

语言设置:

cpp 复制代码
    sort_remove_duplicates(language_infos);
    std::sort(language_infos.begin(), language_infos.end(), [](const wxLanguageInfo *l, const wxLanguageInfo *r) { return l->Description < r->Description; });
    auto item_language = create_item_language_combobox(_L("Language"), page, _L("Language"), 50, "language", language_infos);

    std::vector<wxString> Regions         = {_L("Asia-Pacific"), _L("Chinese Mainland"), _L("Europe"), _L("North America"), _L("Others")};
    auto                  item_region= create_item_region_combobox(_L("Login Region"), page, _L("Login Region"), Regions);

BambuStudio 自定义加载页面

bash 复制代码
cmake --build . --target BambuStudio --config RelWithDebInfo
bash 复制代码
src/slic3r/GUI/GUI_App.cpp
cpp 复制代码
        void init(wxFont init_font)
        {
            // title
            title = wxGetApp().is_editor() ? SLIC3R_APP_FULL_NAME : GCODEVIEWER_APP_NAME;
            title=wxString::FromUTF8("AIGC制造工坊");

            // dynamically get the version to display
//            version = _L("V") + " " + GUI_App::format_display_version();
            version = _L("V02.08.00.50");

            // credits infornation
            credits = "";

            title_font = Label::Head_16;
            version_font = Label::Body_16;
            credits_font = init_font;
        }

插件下载url:

cpp 复制代码
BOOST_LOG_TRIVIAL(info) << "[download_plugin] get_url = " << download_url;

插件目录:

cpp 复制代码
 const size_t len = BBL_INTERNAL_TESTING == 1 ? strlen("\\AppData\\Roaming\\BambuStudioInternal\\user") : strlen("\\AppData\\Roaming\\BambuStudioBeta\\user");

version.inc 中设置软件名字:

缓存目录地址:

C:\Users\ChangJing03\AppData\Roaming\BambuStudioaaaInternal

SLIC3R_APP_NAME

bash 复制代码
# Included by CMakeLists, edited by the build script
# (the version numbers are generated by the build script from the git current label)

set(SLIC3R_APP_NAME "BambuStudio")
set(SLIC3R_APP_KEY "BambuStudio")

if(NOT DEFINED BBL_RELEASE_TO_PUBLIC)
set(BBL_RELEASE_TO_PUBLIC "0")
endif()
if(NOT DEFINED BBL_INTERNAL_TESTING)
set(BBL_INTERNAL_TESTING "1")
endif()

# The build_version should start from 50 in master branch

set(SLIC3R_VERSION "02.08.00.40")

string(REPLACE "." "," SLIC3R_COMMA_SEPARATED_VERSION ${SLIC3R_VERSION})
set(SLIC3R_COMMA_SEPARATED_VERSION "${SLIC3R_COMMA_SEPARATED_VERSION}")
相关推荐
我不叫武31 分钟前
一个用 Rust 写的离线编码查询桌面工具
前端
Web4Browser1 小时前
指纹浏览器 API 自动化怎么接:启动 Profile、获取 CDP 端点并连接自动化框架
前端·网络·typescript·自动化
Patrick_Wilson2 小时前
从 React 到 Flutter:写给前端的一张跨端知识地图
前端·flutter·react.js
颜酱2 小时前
06 | 把 meta_config 同步进 MySQL(生成阶段)
前端·人工智能·后端
OpenTiny社区2 小时前
Loop Engineering:让 AI Agent 自己跑起来的工程方法
前端·github
IT_陈寒3 小时前
SpringBoot自动配置坑了我一周,原来问题这么蠢!
前端·人工智能·后端
kyriewen3 小时前
我review了一份Vibe Coding写的前端代码——能跑,但5个地方迟早要命
前端·javascript·ai编程
REDcker3 小时前
Cesium三维WebGIS入门详解
前端·gis·web·cesium·webgis
0暗影流光04 小时前
十倍效能提升——Web 基础研发体系的建立
前端
前端一课4 小时前
用Agent Skill重构代码:300行缩至30行的实战教程
前端