Пример #1
0
 public MhwOverlay(Window mainWindow, params WidgetWindow[] widgetWindows) : base(mainWindow, widgetWindows)
 {
     ConfigHelper.Main.Loaded         += (s, e) => { UpdateWidgetsFromConfig(); };
     ConfigHelper.Localization.Loaded += (s, e) => { RefreshWidgetsLayout(); };
     ConfigHelper.MonsterData.Loaded  += (s, e) => { RefreshWidgetsLayout(); };
     ConfigHelper.PlayerData.Loaded   += (s, e) => { RefreshWidgetsLayout(); };
     _memoryUpdater = !ConfigHelper.Main.Values.Debug.UseSampleData ? _memoryUpdater = new MhwMemoryUpdater() : null;
     _stopwatch     = new Stopwatch();
     _stopwatch.Start();
 }
Пример #2
0
        public MhwOverlay(Window mainWindow, params WidgetWindow[] widgetWindows) : base(mainWindow, widgetWindows)
        {
            ConfigHelper.Main.Loaded         += (s, e) => { UpdateWidgetsFromConfig(); };
            ConfigHelper.Localization.Loaded += (s, e) => { RefreshWidgetsLayout(); };
            ConfigHelper.MonsterData.Loaded  += (s, e) => { RefreshWidgetsLayout(); };
            ConfigHelper.PlayerData.Loaded   += (s, e) => { RefreshWidgetsLayout(); };

            if (!ConfigHelper.Main.Values.Debug.UseSampleData)
            {
                m_MemoryUpdater = new MhwMemoryUpdater();
            }
        }