Set prefix automatically
This commit is contained in:
parent
9225c94160
commit
107173cd15
1 changed files with 55 additions and 0 deletions
|
@ -102,6 +102,61 @@ pub struct Engine {
|
|||
|
||||
impl Engine {
|
||||
pub fn new(#[allow(unused)] mut create_info: EngineCreateInfo<'_>) -> Result<Arc<Self>> {
|
||||
create_info
|
||||
.gui_info
|
||||
.menu_button
|
||||
.set_prefix(&create_info.resource_base_path);
|
||||
create_info
|
||||
.gui_info
|
||||
.menu_button_selected
|
||||
.set_prefix(&create_info.resource_base_path);
|
||||
create_info
|
||||
.gui_info
|
||||
.click_sound
|
||||
.set_prefix(&create_info.resource_base_path);
|
||||
create_info
|
||||
.gui_info
|
||||
.hover_sound
|
||||
.set_prefix(&create_info.resource_base_path);
|
||||
if let Font::Path(path) = &mut create_info.gui_info.font {
|
||||
path.set_prefix(&create_info.resource_base_path);
|
||||
}
|
||||
|
||||
create_info
|
||||
.controller_directories
|
||||
.xbox_path
|
||||
.set_prefix(&create_info.resource_base_path);
|
||||
create_info
|
||||
.controller_directories
|
||||
.steam_path
|
||||
.set_prefix(&create_info.resource_base_path);
|
||||
create_info
|
||||
.controller_directories
|
||||
.ps4_path
|
||||
.set_prefix(&create_info.resource_base_path);
|
||||
|
||||
create_info
|
||||
.asset_directories
|
||||
.entity_file_directory
|
||||
.set_prefix(&create_info.resource_base_path);
|
||||
create_info
|
||||
.asset_directories
|
||||
.gltf_file_directory
|
||||
.set_prefix(&create_info.resource_base_path);
|
||||
create_info
|
||||
.asset_directories
|
||||
.tile_file_directory
|
||||
.set_prefix(&create_info.resource_base_path);
|
||||
|
||||
create_info
|
||||
.key_backgrounds
|
||||
.light
|
||||
.set_prefix(&create_info.resource_base_path);
|
||||
create_info
|
||||
.key_backgrounds
|
||||
.dark
|
||||
.set_prefix(&create_info.resource_base_path);
|
||||
|
||||
// --------------- context --------------------
|
||||
|
||||
let context = {
|
||||
|
|
Loading…
Reference in a new issue