mirror of
https://github.com/MikuLeaks/MikuSB.git
synced 2026-06-04 17:43:57 +00:00
The character displayed on the lobby screen can now be changed.
PlayerSetting_ChangeShowCard
This commit is contained in:
@@ -188,9 +188,22 @@ public class PlayerInstance(PlayerGameData data)
|
||||
proto.Attrs[ToShiftedAttrKey(gid, sid)] = val;
|
||||
}
|
||||
|
||||
proto.ShowItems.AddRange(Data.ShowItems);
|
||||
|
||||
return proto;
|
||||
}
|
||||
|
||||
public void SetShowItem(int index, ulong itemId)
|
||||
{
|
||||
if (index <= 0)
|
||||
return;
|
||||
|
||||
while (Data.ShowItems.Count < index)
|
||||
Data.ShowItems.Add(0);
|
||||
|
||||
Data.ShowItems[index - 1] = itemId;
|
||||
}
|
||||
|
||||
private static uint ToPackedAttrKey(uint gid, uint sid)
|
||||
{
|
||||
if (gid == 0)
|
||||
|
||||
Reference in New Issue
Block a user