mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-06-02 09:51:47 +00:00
Vertex scale can now be set in Preferences (controls the size of vertex handles in 2D Modes).
This commit is contained in:
parent
f2b42d1329
commit
59ade165e7
5 changed files with 71 additions and 15 deletions
|
@ -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...");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue