Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
ResourceImportTool.c
Go to the documentation of this file.
1
[
WorkbenchPluginAttribute
(
"Model Import"
,
"Model Import Helper"
,
""
,
""
, {
"ResourceManager"
})]
2
class
ResourceImportPlugin: ResourceManagerPlugin
3
{
4
[
Attribute
(
"true"
,
UIWidgets
.CheckBox)]
5
bool
Enabled;
6
7
//--------------------------------------------------------------------
8
void
ResourceImportPlugin()
9
{
10
}
11
12
//--------------------------------------------------------------------
13
override
string
OnGetMaterialGenerateDir(
string
absModelPath)
14
{
15
return
absModelPath +
"/Data"
;
16
}
17
18
//--------------------------------------------------------------------
19
override
void
OnRegisterResource(
string
absFileName,
BaseContainer
metaFile)
20
{
21
BaseContainer
conf
= metaFile.GetObjectArray(
"Configurations"
)[0];
22
if
(!Enabled)
23
return
;
24
25
string
className =
conf
.GetClassName();
26
27
if
(
ResourceProcessorPlugin
.IsMeshObject(className))
28
{
29
ResourceProcessorPlugin
.FixMeshObjectMetaFile(metaFile, absFileName);
30
}
31
else
if
(
ResourceProcessorPlugin
.IsSound(className))
32
{
33
ResourceProcessorPlugin
.FixSoundMetaFile(metaFile, absFileName);
34
}
35
else
if
(
ResourceProcessorPlugin
.IsParticleEffect(className))
36
{
37
ResourceProcessorPlugin
.FixParticleEffectMetaFile(metaFile, absFileName);
38
}
39
}
40
41
override
void
Configure
()
42
{
43
Workbench.ScriptDialog(
"Configure Texture Import Plugin"
,
""
,
this
);
44
}
45
46
[
ButtonAttribute
(
"OK"
)]
47
void
OkButton() {}
48
}
49
WorkbenchPluginAttribute
GenerateFlowMaps WorkbenchPlugin WorkbenchPluginAttribute("Regenerate river flow-maps", "Generate and save/overwrite river flow-maps", "", "", {"WorldEditor"}, "", 0xf773)
Definition
FlowmapTool.c:59
conf
Configs ServerBrowser KickDialogs conf
Definition
SCR_NotificationSenderComponent.c:29
Configure
override void Configure()
Definition
ViewOrientationTool.c:112
ButtonAttribute
class WorkbenchDialog_AbortRetryIgnore ButtonAttribute("OK", true)
Definition
WorkbenchDialogs.c:30
BaseContainer
Definition
BaseContainer.c:13
ResourceProcessorPlugin
Definition
ResourceProcessorTool.c:3
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
WorkbenchCommon
ResourceImportTool.c
Generated by
1.17.0