Studio Breakthrough
Posted: Sun Sep 29, 2019 8:40 am
I have unlocked studio mode but all I need is help fixing brush configs
this is the error
and here is proof of studio
this is the error
and here is proof of studio
Army Men RTS Forums, Maps, Cheats, Trainers, Multiplayer, Studio, & More!
https://clanexf.com/forums/
Code: Select all
CreateControl("Brush::Terrain", "Brush::Config")
{
ReadTemplate("Brush::Common");
Text("Terrain");
// Invisible control to align to
CreateControl("Align", "Static")
{
Style("Transparent");
Geometry("HCentre", "ParentWidth");
Size(-4, 0);
}
// Should the brush draw heights
CreateControl("Deform", "Tool::ToggleAlignButton")
{
UseVar("$<.drawheight");
}
Code: Select all
CreateControl("Notches", "Game::Notches")
{
Align("<VolumeMaster");
}
Code: Select all
ConfigureInterface()
{
DefineControlType("Game::Notches", "Static")
{
Geometry("Bottom", "HInternal");
Style("Transparent");
Pos(0, 1);
Size(302, 12);
CreateControl("LeftNotch", "Static")
{
ColorGroup("Sys::Texture");
Image("if_interfacealpha_game.tga", 56, 14, 7, 11);
Size(7, 11);
}
CreateControl("RightNotch", "Static")
{
Geometry("Right");
ColorGroup("Sys::Texture");
Image("if_interfacealpha_game.tga", 63, 14, 7, 11);
Size(7, 11);
}
CreateControl("Notch1", "Static")
{
Pos(24, 0);
ColorGroup("Sys::Texture");
Image("if_interfacealpha_game.tga", 28, 10, 3, 5);
Size(3, 5);
}
CreateControl("Notch2", "Static")
{
Pos(49, 0);
ColorGroup("Sys::Texture");
Image("if_interfacealpha_game.tga", 28, 10, 3, 5);
Size(3, 5);
}
Code: Select all
TerrainTweak::TerrainTweak(const char *name) : ApplyCell(name)
{
// Create interface vars
varVertexColor1 = CreateInteger("vertexColor1", Color((S32)64, (S32)128, (S32)64));
varVertexColor2 = CreateInteger("vertexColor2", Color((S32)255, (S32)255, (S32)255));
varColorScale = CreateFloat("colorScale", 0.3f, 0.001f, 1.0f);
varSmoothFloor = CreateInteger("smoothFloor", FALSE);
}
Code: Select all
int __thiscall sub_5D7050(int this, char *a2)
{
int v2; // esi@1
v2 = this;
sub_5E56C0(this, a2);
*(_DWORD *)v2 = &off_671008;
*(_DWORD *)(v2 + 336) = sub_5BCF50((void *)v2, (int)aVertexcolor1, -12550080, 2147483648, 0x7FFFFFFF);
*(_DWORD *)(v2 + 340) = sub_5BCF50((void *)v2, (int)aVertexcolor2, -1, 2147483648, 0x7FFFFFFF);
*(_DWORD *)(v2 + 344) = sub_5BD020((void *)v2, (int)aColorscale, 1050253722, 981668463, 1065353216);
*(_DWORD *)(v2 + 348) = sub_5BCF50((void *)v2, (int)aSmoothfloor, 0, 2147483648, 0x7FFFFFFF);
return v2;
}