Add a custom background to a game menu

Users who are viewing this thread

slaur4

Recruit
Hi, I'm looking for a way to add a custom image as background for a new menu

Somewhere in the code there is this line :

C#:
public static void game_menu_taken_prisoner_town_ui_on_init(MenuCallbackArgs args)
{
  if (Hero.MainHero.IsFemale)
    args.MenuContext.SetBackgroundMeshName("wait_prisoner_female");
  else
    args.MenuContext.SetBackgroundMeshName("wait_prisoner_male");
}

How would you create and add a new background mesh ? Can it be a simple image ?

Edit
This is it : http://docs.modding.bannerlord.com/asset-management/generating_and_loading_ui_sprite_sheets/
There is a whole process to create an asset pack using modding tools.
 
Last edited:
Back
Top Bottom