RSPSApp / elvarg-rsps

17 stars 39 forks source link

Preset Re-write / Saving #281

Open DrHenny opened 1 year ago

DrHenny commented 1 year ago
Mark7625 commented 1 year ago

In packet 164 just do this

`int id = incoming.readLEUShort(); boolean showMainInterface = (byte) incoming.readUnsignedByte() == 1;

            resetAnimation(id);
            if (overlayInterfaceId != -1) {
                overlayInterfaceId = -1;
                tabAreaAltered = true;
            }

            backDialogueId = id;
            updateChatbox = true;
            if (!showMainInterface) {
                openInterfaceId = -1;
                interfaceParent = -1;
            }
            continuedDialogue = false;`

Will allow u to pick if u want to close interfaces or not server sided and then

DrHenny commented 1 year ago

In packet 164 just do this

`int id = incoming.readLEUShort(); boolean showMainInterface = (byte) incoming.readUnsignedByte() == 1;

          resetAnimation(id);
          if (overlayInterfaceId != -1) {
              overlayInterfaceId = -1;
              tabAreaAltered = true;
          }

          backDialogueId = id;
          updateChatbox = true;
          if (!showMainInterface) {
              openInterfaceId = -1;
              interfaceParent = -1;
          }
          continuedDialogue = false;`

Will allow u to pick if u want to close interfaces or not server sided and then

164 is sending the interface packet. We want to be able to close a dialogue whenever we need to via server which is why I implemented the custom empty packet. Unless I'm misunderstanding what you're referring to?