7
7
#include " xrCommon/xr_vector.h"
8
8
#include " xrCommon/xr_map.h"
9
9
#include " xrSound/Sound.h"
10
+ #include " editor_base.h"
10
11
11
12
// refs
12
13
class ENGINE_API IRender_Visual;
@@ -193,6 +194,8 @@ class ENGINE_API CEnvDescriptor
193
194
exec_time_loaded = tm1;
194
195
}
195
196
197
+ void ed_show_params (const CEnvironment& env); // ImGui editor
198
+
196
199
void on_device_create ();
197
200
void on_device_destroy ();
198
201
@@ -217,9 +220,11 @@ class ENGINE_API CEnvDescriptorMixer : public CEnvDescriptor
217
220
float f, CEnvModifier& M, float m_power);
218
221
219
222
static std::pair<Fvector3, float > calculate_dynamic_sun_dir (float fGameTime , float azimuth);
223
+
224
+ void ed_show_params (const CEnvironment& env); // ImGui editor
220
225
};
221
226
222
- class ENGINE_API CEnvironment
227
+ class ENGINE_API CEnvironment : public xray::editor::ide_tool
223
228
{
224
229
friend class dxEnvironmentRender ;
225
230
struct str_pred
@@ -318,6 +323,7 @@ class ENGINE_API CEnvironment
318
323
void mods_unload ();
319
324
320
325
void OnFrame ();
326
+ void on_tool_frame () override ;
321
327
void lerp ();
322
328
323
329
void RenderSky ();
@@ -362,6 +368,9 @@ class ENGINE_API CEnvironment
362
368
363
369
void save_weathers (CInifile* environment_config = nullptr ) const ;
364
370
void save_weather_effects (CInifile* environment_config = nullptr ) const ;
371
+
372
+ private:
373
+ pcstr tool_name () override { return " Weather Editor" ; }
365
374
};
366
375
367
376
ENGINE_API extern Flags32 psEnvFlags;
0 commit comments