Skip to content

Commit

Permalink
Fix scroll bug & series filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Xele02 committed Aug 20, 2023
1 parent 0d1fb78 commit b610299
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,9 @@ private void UpdateScrollCb(Vector2 position)
}
diff = m_diffPrePosition;
listTop = m_listTopPosition;
cnt = 0;
if(0 <= (ScrollMergin + AnchoredPosition - m_diffPrePosition))
{
cnt = 0;
do
{
diff += ItemSize;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ private void UpdateScrollCb(Vector2 position)
}
top = m_listTopPosition;
diffPre = m_diffPrePosition;
cnt = 0;
if (0 <= AnchoredPosition - m_diffPrePosition)
{
cnt = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public static uint CreateBit(PIGBBNDPPJC a_view)
a = IMMAOANGPNK.HHCJCDFCLOB.NKEBMCIMJND_Database.MGFMPKLLGHE_Diva.GCINIJEMHFK_GetInfo(IMMAOANGPNK.HHCJCDFCLOB.NKEBMCIMJND_Database.MFPNGNMFEAL_Costume.EEOADCECNOM_GetCostumeInfo(id).AHHJLDLAPAN_PrismDivaId).AIHCEGFANAM_Attr;
}
uint res = 16;
if (a > 0 && a < 3)
if (a > 0 && a < 5)
res = (uint)(1 << (a - 1));
return res;
}
Expand All @@ -120,9 +120,9 @@ private uint ConvertBit_SeriesToBtn(uint a_bit_series)
uint res = 0;
for(int i = 0; i < m_bind_tbl.Length; i++)
{
if((a_bit_series & (1 << (m_bind_tbl[i].m_series))) != 0)
if((a_bit_series & (1 << (m_bind_tbl[i].m_series - 1))) != 0)
{
res |= (uint)(1 << (m_bind_tbl[i].m_btn));
res |= (uint)(1 << (m_bind_tbl[i].m_btn - 1));
}
}
return res;
Expand All @@ -134,9 +134,9 @@ private uint ConvertBit_BtnToSeries(uint a_bit_btn)
uint res = 0;
for(int i = 0; i < m_bind_tbl.Length; i++)
{
if((a_bit_btn & (1 << (m_bind_tbl[i].m_btn))) != 0)
if((a_bit_btn & (1 << (m_bind_tbl[i].m_btn - 1))) != 0)
{
res |= (uint)(1 << (m_bind_tbl[i].m_series));
res |= (uint)(1 << (m_bind_tbl[i].m_series - 1));
}
}
return res;
Expand Down

1 comment on commit b610299

@Xele02
Copy link
Owner Author

@Xele02 Xele02 commented on b610299 Aug 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix #89

Please sign in to comment.