/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Tools/Inspector/CVarsWidget.moc.h
42 строки
1 KB
Jan Krassnigg
Updated ADS and fixed document layout restoration (#1497)
28 фев 2025, 12:35
Не верифицирован
28 фев 2025, 12:35
2e065c5
Код
Авторство
О чём код?
#pragma once #include <Foundation/Basics.h> #include <Foundation/Configuration/CVar.h> #include <Foundation/Containers/Map.h> #include <Foundation/Strings/String.h> #include <GuiFoundation/Widgets/CVarWidget.moc.h> #include <Inspector/ui_CVarsWidget.h> #include <ads/DockWidget.h> class ezQtCVarsWidget : public ads::CDockWidget, public Ui_CVarsWidget { public: Q_OBJECT public: ezQtCVarsWidget(ads::CDockManager* pDockManager, QWidget* pParent = 0); static ezQtCVarsWidget* s_pWidget; private Q_SLOTS: void BoolChanged(ezStringView sCVar, bool newValue); void FloatChanged(ezStringView sCVar, float newValue); void IntChanged(ezStringView sCVar, int newValue); void StringChanged(ezStringView sCVar, ezStringView sNewValue); public: static void ProcessTelemetry(void* pUnuseed); static void ProcessTelemetryConsole(void* pUnuseed); void ResetStats(); private: // void UpdateCVarsTable(bool bRecreate); void SendCVarUpdateToServer(ezStringView sName, const ezCVarWidgetData& cvd); void SyncAllCVarsToServer(); ezMap<ezString, ezCVarWidgetData> m_CVars; ezMap<ezString, ezCVarWidgetData> m_CVarsBackup; };