public OriHitboxDisplay(OriState state) {
            try {
                InitializeComponent();
                reader = state.oriMemory;
                OriInfo.Visibility = Visibility.Visible;

                Thread worker = new Thread(UpdateUI);
                worker.IsBackground = true;
                worker.Name = "UI Worker";
                worker.Start();
            } catch (Exception e) {
                System.Windows.MessageBox.Show("Error loading program: " + e.ToString());
                Close();
            }
        }
 public OriComponent() {
     textInfo = new InfoTextComponent("0%", "Swamp 0.00%");
     oriState = new OriState();
     Settings = new OriAndTheBlindForestSettings(this);
     oriState.oriTriggers.OnSplit += OnSplitTriggered;
 }