Vertex scale can now be set in Preferences (controls the size of vertex handles in 2D Modes).

This commit is contained in:
MaxED 2012-09-07 10:45:49 +00:00
parent f2b42d1329
commit 59ade165e7
5 changed files with 71 additions and 15 deletions

View file

@ -108,6 +108,7 @@ namespace CodeImp.DoomBuilder.Config
private float gzDynamicLightIntensity;
private bool gzTestFromCurrentPosition;
private bool gzStretchModels;
private float gzVertexScale2D;
// These are not stored in the configuration, only used at runtime
private string defaulttexture;
@ -185,6 +186,7 @@ namespace CodeImp.DoomBuilder.Config
public float GZDynamicLightRadius { get { return gzDynamicLightRadius; } internal set { gzDynamicLightRadius = value; } }
public float GZDynamicLightIntensity { get { return gzDynamicLightIntensity; } internal set { gzDynamicLightIntensity = value; } }
public bool GZStretchModels { get { return gzStretchModels; } internal set { gzStretchModels = value; } }
public float GZVertexScale2D { get { return gzVertexScale2D; } internal set { gzVertexScale2D = value; } }
public string DefaultTexture { get { return defaulttexture; } set { defaulttexture = value; } }
public string DefaultFloorTexture { get { return defaultfloortexture; } set { defaultfloortexture = value; } }
@ -278,6 +280,7 @@ namespace CodeImp.DoomBuilder.Config
gzDynamicLightRadius = cfg.ReadSetting("gzdynamiclightradius", 1.0f);
gzDynamicLightIntensity = cfg.ReadSetting("gzdynamiclightintensity", 1.0f);
gzStretchModels = cfg.ReadSetting("gzstretchmodels", true);
gzVertexScale2D = cfg.ReadSetting("gzvertexscale2d", 1.0f);
// Success
return true;
@ -353,6 +356,7 @@ namespace CodeImp.DoomBuilder.Config
cfg.WriteSetting("gzdynamiclightradius", gzDynamicLightRadius);
cfg.WriteSetting("gzdynamiclightintensity", gzDynamicLightIntensity);
cfg.WriteSetting("gzstretchmodels", gzStretchModels);
cfg.WriteSetting("gzvertexscale2d", gzVertexScale2D);
// Save settings configuration
General.WriteLogLine("Saving program configuration...");