Jump to content

Recommended Posts

Posted

My question is, I am using CSharp and want to transfer some stats to display on CEF.

 

So, on the CSharp - I have the variables:

 

PlayerLevel

PlayerExp

 

How could I get them to display on a HTML page from the CSharp side of things?

 

Many thanks in advance!

Posted
public static HtmlWindow CustomBrowser;
public static void CreateBrowser(string html, string closingFunction, params object[] args)
        {
            if (CustomBrowser == null)
            {
                // Create the browser
                CustomBrowser = new HtmlWindow("package://statics/html/" + html);
            }
        }

        public static void ExecuteFunction(string function, params object[] args)
        {
            // Call the function with the parameters
            CustomBrowser.Call(function, args);
        }

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...