2021-09-20 05:29:02 +02:00
|
|
|
import React from "react";
|
|
|
|
import ReactDOM from "react-dom";
|
|
|
|
|
2021-09-22 08:20:29 +02:00
|
|
|
import { TTheme as Theme, ThemeEvents, refreshTheme } from "./ui/React/Theme";
|
2021-09-20 05:29:02 +02:00
|
|
|
import { LoadingScreen } from "./ui/LoadingScreen";
|
|
|
|
import "./engineStyle";
|
|
|
|
|
|
|
|
ReactDOM.render(
|
|
|
|
<Theme>
|
|
|
|
<LoadingScreen />
|
|
|
|
</Theme>,
|
|
|
|
document.getElementById("mainmenu-container"),
|
|
|
|
);
|
2021-09-21 19:08:05 +02:00
|
|
|
|
2021-09-22 07:36:17 +02:00
|
|
|
function rerender() {
|
2021-09-22 08:20:29 +02:00
|
|
|
refreshTheme();
|
2021-09-22 07:36:17 +02:00
|
|
|
ReactDOM.render(
|
|
|
|
<Theme>
|
|
|
|
<LoadingScreen />
|
|
|
|
</Theme>,
|
|
|
|
document.getElementById("mainmenu-container"),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
(function () {
|
|
|
|
ThemeEvents.subscribe(rerender);
|
|
|
|
})();
|