feat(ui): unify retained window mounts
This commit is contained in:
parent
6e9e10367f
commit
a8e9503d2e
20 changed files with 823 additions and 366 deletions
|
|
@ -172,8 +172,8 @@ public static class CharacterStatController
|
|||
private const uint ScrollThumbSprite = 0x06004C63u;
|
||||
private const uint ScrollThumbTop = 0x06004C60u;
|
||||
private const uint ScrollThumbBot = 0x06004C66u;
|
||||
private const uint ScrollUpSprite = 0x06004C6Cu;
|
||||
private const uint ScrollDownSprite = 0x06004C69u;
|
||||
private const uint ScrollUpSprite = 0x06004C69u;
|
||||
private const uint ScrollDownSprite = 0x06004C6Cu;
|
||||
|
||||
private enum CharacterStatTab
|
||||
{
|
||||
|
|
@ -634,7 +634,11 @@ public static class CharacterStatController
|
|||
|
||||
if (source is UiScrollbar existingBar)
|
||||
{
|
||||
ConfigureSkillScrollbar(existingBar, spriteResolve);
|
||||
existingBar.SpriteResolve ??= id =>
|
||||
{
|
||||
var (handle, width, height) = spriteResolve(id);
|
||||
return (handle, width, height);
|
||||
};
|
||||
existingBar.Visible = false;
|
||||
return existingBar;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue