![]() |
|
Add extra quickslot bar - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193) +---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157) +----- Forum: Ep4 Support (https://lckb.dev/forum/forumdisplay.php?fid=128) +----- Thread: Add extra quickslot bar (/showthread.php?tid=4905) |
- nicolasg - 05-07-2022 32 minutes ago, rondo157 said: I did it but i have duplicate 3 and 4 qs 2 I can't access your link, The code posted here is not complete... - rondo157 - 05-07-2022 2 - Gl1tch - 05-07-2022 A question about the ps.dat editor does anyone have this editor for me and can make it available? I would be very grateful - nicolasg - 05-07-2022 24 minutes ago, rondo157 said: 2 CUIChildQuickSlot::CUIChildQuickSlot(int nid) : m_abtnItems(NULL), m_bIsInside(FALSE) { m_nID = nid; m_bRotation[0] = &g_bQuickSlot1HorOrVer; m_bRotation[1] = &g_bQuickSlot2HorOrVer; m_bLock[0] = &g_bQuickSlot1Lock; m_bLock[1] = &g_bQuickSlot2Lock; // NICOLASG MARK (QUICKSLOT) m_bRotation[2] = &g_bQuickSlot3HorOrVer; m_bLock[2] = &g_bQuickSlot3Lock; // NICOLASG MARK (QUICKSLOT) // NICOLASG MARK (QUICKSLOT) OG: /*if (m_nID == UI_QUICKSLOT2) m_nCurSlot = 0; else m_nCurSlot = 1;*/ // NICOLASG MARK (QUICKSLOT) NEW: if (m_nID == UI_QUICKSLOT2) m_nCurSlot = 0; else if (m_nID == UI_QUICKSLOT3) m_nCurSlot = 1; else m_nCurSlot = 2; // NICOLASG MARK (QUICKSLOT) END m_bEXSlot1On = FALSE; m_bEXSlot2On = FALSE; m_bEXSlot3On = FALSE; // NICOLASG MARK (QUICKSLOT) m_nSelSlotBtnID = -1; m_nStartX = 0; m_nStartY = 0; } maybe this? - nicolasg - 05-07-2022 19 minutes ago, Gl1tch said: A question about the ps.dat editor does anyone have this editor for me and can make it available? I would be very grateful 2 2 - Gl1tch - 05-07-2022 thx /index.php?/profile/14423-nicolasg/&do=hovercard" data-mentionid="14423" href="/index.php?/profile/14423-nicolasg/" rel="">@nikolausg - OberonPh - 05-09-2022 You need to work on this piece of code. Otherwise, you have everything right. if (bResultView) { nCurOpenUI = g_bQuickSlotEX1 >= 1 ? (g_bQuickSlotEX3 >= 1 ? -1 : 1) : 0; // NICOLASG MARK (QUICKSLOT) OG: nCurOpenUI = g_bQuickSlotEX1 >= 1 ? (g_bQuickSlotEX2 >= 1 ? -1 : 1) : 0; } else { nCurOpenUI = g_bQuickSlotEX1 >= 1 ? (g_bQuickSlotEX3 >= 1 ? 1 : 0) : -1; // NICOLASG MARK (QUICKSLOT) OG: nCurOpenUI = g_bQuickSlotEX1 >= 1 ? (g_bQuickSlotEX2 >= 1 ? 1 : 0) : -1; } - nicolasg - 05-09-2022 1 minute ago, flyfox20013 said: You need to work on this piece of code. Otherwise, you have everything right. if (bResultView) { nCurOpenUI = g_bQuickSlotEX1 >= 1 ? (g_bQuickSlotEX3 >= 1 ? -1 : 1) : 0; // NICOLASG MARK (QUICKSLOT) OG: nCurOpenUI = g_bQuickSlotEX1 >= 1 ? (g_bQuickSlotEX2 >= 1 ? -1 : 1) : 0; } else { nCurOpenUI = g_bQuickSlotEX1 >= 1 ? (g_bQuickSlotEX3 >= 1 ? 1 : 0) : -1; // NICOLASG MARK (QUICKSLOT) OG: nCurOpenUI = g_bQuickSlotEX1 >= 1 ? (g_bQuickSlotEX2 >= 1 ? 1 : 0) : -1; } yep, after search about ? : operators it was easy ^^ - OberonPh - 05-09-2022 I should have visited the forum earlier ? - rondo157 - 05-10-2022 On 5/9/2022 at 5:02 AM, nicolasg said: yep, after search about ? : operators it was easy ^^ can u upload all files what u changed? |