Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CalloutClass

Featured Replies

Hi there

 

I'm not sure if it is possible to do but, I would like to create a "CalloutBase.cs" that uses LSPDFR's Variable functions like OnBeforeCalloutDisplayed(), OnCalloutAccepted(), or Proccess() and basically have my own functions that are called within the callout scripts themselves then they transfer the data to LSPDFR via the CalloutBase.cs to tell LSPDFR whats happening within the callout. 

Rough Example:
--------------------
CalloutBase.cs

OnCallAccepted()

        Gathers all the data from the specific callout like it normally would if it was just LSPDFR

 

        Then calls lspdfr OnCalloutAccepted() using the data it got from above.

 

base.OnCallAccepted

 

--------------------

Right, so my callout scripts will still use the generic style of making the Callouts, but for example if I wanted to add something within the calls, rather than going through each script, I can just add it into that specific function to add it to all callouts.

sorry if it sounds confusing lol

 

  • 3 weeks later...
On 3/1/2025 at 11:48 PM, TAG1534 said:

Hi there

 

I'm not sure if it is possible to do but, I would like to create a "CalloutBase.cs" that uses LSPDFR's Variable functions like OnBeforeCalloutDisplayed(), OnCalloutAccepted(), or Proccess() and basically have my own functions that are called within the callout scripts themselves then they transfer the data to LSPDFR via the CalloutBase.cs to tell LSPDFR whats happening within the callout. 

Rough Example:
--------------------
CalloutBase.cs

OnCallAccepted()

        Gathers all the data from the specific callout like it normally would if it was just LSPDFR

 

        Then calls lspdfr OnCalloutAccepted() using the data it got from above.

 

base.OnCallAccepted

 

--------------------

Right, so my callout scripts will still use the generic style of making the Callouts, but for example if I wanted to add something within the calls, rather than going through each script, I can just add it into that specific function to add it to all callouts.

sorry if it sounds confusing lol

 

Do it exactly how you've described it. Have a class where the stuff you want to be called in every file, and in the FR callouts call each method. You can looks at pyro's github. 

https://github.com/SuperPyroManiac/SuperPlugins/blob/master/SuperCallouts/SuperCallout.cs#L42

#Roasted

#RoastedByJM

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...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.