Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

spacer.png

 

In this guide, we will detail the process for enhancing item swapping functionalities within your game by modifying aspects of the item handling systems. The following changes allow players to swap items more fluidly while ensuring that the item types and sizes are appropriately considered.

Modifications Overview

Server-Side Changes

  1. Navigate to char_item.cpp:
    Open this file and locate the bool CHARACTER::MoveItem function. Replace the existing condition regarding item grid checking with the following code:

     
  1. This is the hidden content, please

     

Client-Side Changes

  1. Update PythonGridSlotWindow.cpp:
    Locate the function CGridSlotWindow::OnRenderPickingSlot() and replace it with the following code:

     
  • This is the hidden content, please

     

  • In PythonSlotWindow.cpp:
    After declaring void CSlotWindow::SetUsableItem(BOOL bFlag), add:

     
This is the hidden content, please

During initialization, ensure you add:

 
  • This is the hidden content, please

     

  • In PythonWindowManagerModule.cpp:
    Add the following method:

     
This is the hidden content, please

Ensure to register this new function:

 
  • This is the hidden content, please

     

  • In ui.py:
    Add:

     
  • This is the hidden content, please

     

  • In uiinventory.py:
    Update the OverOutItem function to include:

     
This is the hidden content, please

Substitute OverInItem with:

 
  1. This is the hidden content, please

     

Additional Changes

  1. Expand functionality in PythonGridSlotWindow.cpp:
    Add:

     
  1. This is the hidden content, please

     

  2. In PythonSlotWindow.cpp:
    Replace OnMouseLeftButtonDown() with:

 
This is the hidden content, please

Also, define the method header in CSlotWindow:

 
This is the hidden content, please

 

With these changes, the item swapping mechanics should now allow players to efficiently swap items, ensuring clarity and usability within the interface. Test the adjustments thoroughly to maintain a smooth user experience.

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

spacer.png

Disable AdBlock
The popup will be closed in 5 seconds...