Browse Source

added addGlobal

Nicolas Cannasse 2 months ago
parent
commit
76cc7de841
1 changed files with 5 additions and 0 deletions
  1. 5 0
      hrt/impl/DomkitViewer.hx

+ 5 - 0
hrt/impl/DomkitViewer.hx

@@ -305,6 +305,11 @@ class DomkitViewer extends h2d.Object {
 		rebuildDelay();
 	}
 
+	public function addGlobal( name : String, v : Dynamic ) {
+		variables.set(name, v);
+		rebuildDelay();
+	}
+
 	public function addComponentHook( name : String, make ) {
 		compHooks.set(name, make);
 	}