Repository navigation
RustConstructor v0.2.0
RustConstructor v0.2.0 更新
- 添加了生成矩形和滚动背景的功能;
- 修改页面的加载逻辑:现在页面包含一个id和两个值:forced_update控制是否强制加载(因为egui在未检测用户活动时会停止渲染),change_page_updated控制是否已刷新页面,所有资源将在all_page_preload中加载完毕;
- 添加config及其配置文件与配套json处理方法;
- 现在图片支持翻转处理和使用&str路径加载图片而非直接给予include_bytes!;
- 添加timer值,可用于确定当前页面/程序全程的运行时间;
- 加入一些私有函数以辅助公共函数;
- 加入track_resource方法,只需给予一个资源名称和所属列表便可查找出该资源的索引值(若出现异常,则固定返回0);
- 添加last_window_size,可以记录上一次渲染时窗口的尺寸,以确定窗口尺寸是否被调整;
以上内容为概述,具体更新内容请自行查看。
**RustConstructor v0.2.0 update **
- Added the function of generating rectangle and scrolling background;
- modify the page loading logic: Now the page contains an id and two values: forced_update controls whether the load is forced (because egui stops rendering when user activity is not detected), change_page_updated controls whether the page is refreshed and all resources are loaded in all_page_preload;
- add config and its configuration file and matching json processing method;
- Images now support flipping and loading images using the &str path instead of giving include_bytes! directly;
- Add timer value, which can be used to determine the running time of the current page/program;
- Add some private functions to supplement the public functions;
- add track_resource method, just give a resource name and owning list can find out the index value of the resource (if there is an exception, fixed return 0);
- Add last_window_size, which can record the size of the window at the last rendering to determine whether the window size has been adjusted;
The above content is an overview, please check the specific update content.