RAGE.Ui.HtmlWindow.ExecuteJs: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:
     CEF = new HtmlWindow("package://cef/index.html");
     CEF = new HtmlWindow("package://cef/index.html");
     cef.executeJs("startFunction(\"Argument 1\", \"Argument 2\")");
     cef.executeJs("startFunction(\"Argument 1\", \"Argument 2\")");
     Rage.Ui.Cursor.Visable = true;
     Rage.Ui.Cursor.Visible = true;
}
}
</syntaxhighlight>
</syntaxhighlight>
}}
}}

Latest revision as of 12:23, 29 July 2019

Syntax

void HtmlWindow.ExecuteJs(string code);

Required Arguments

  • code: Command line for JS console;


C# Syntax

HtmlWindow CEF;

private void openUI() {
    CEF = new HtmlWindow("package://cef/index.html");
    cef.executeJs("startFunction(\"Argument 1\", \"Argument 2\")");
    Rage.Ui.Cursor.Visible = true;
}