Marky Posted May 31, 2021 Posted May 31, 2021 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!
DaVilka Posted June 1, 2021 Posted June 1, 2021 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); }
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now