mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-06-02 09:51:47 +00:00
@ work in progress on dockers
This commit is contained in:
parent
a5ad32d6d3
commit
bec1acf6c9
7 changed files with 372 additions and 106 deletions
|
@ -81,6 +81,7 @@ namespace CodeImp.DoomBuilder.Config
|
|||
private PasteOptions pasteoptions;
|
||||
private int dockersposition;
|
||||
private bool collapsedockers;
|
||||
private int dockerswidth;
|
||||
|
||||
// These are not stored in the configuration, only used at runtime
|
||||
private string defaulttexture;
|
||||
|
@ -131,6 +132,7 @@ namespace CodeImp.DoomBuilder.Config
|
|||
internal PasteOptions PasteOptions { get { return pasteoptions; } set { pasteoptions = value; } }
|
||||
public int DockersPosition { get { return dockersposition; } internal set { dockersposition = value; } }
|
||||
public bool CollapseDockers { get { return collapsedockers; } internal set { collapsedockers = value; } }
|
||||
public int DockersWidth { get { return dockerswidth; } internal set { dockerswidth = value; } }
|
||||
|
||||
public string DefaultTexture { get { return defaulttexture; } set { defaulttexture = value; } }
|
||||
public string DefaultFloorTexture { get { return defaultfloortexture; } set { defaultfloortexture = value; } }
|
||||
|
@ -197,6 +199,7 @@ namespace CodeImp.DoomBuilder.Config
|
|||
previousversion = cfg.ReadSetting("currentversion", 0);
|
||||
dockersposition = cfg.ReadSetting("dockersposition", 1);
|
||||
collapsedockers = cfg.ReadSetting("collapsedockers", true);
|
||||
dockerswidth = cfg.ReadSetting("dockerswidth", 300);
|
||||
pasteoptions.ReadConfiguration(cfg, "pasteoptions");
|
||||
|
||||
// Success
|
||||
|
@ -246,6 +249,7 @@ namespace CodeImp.DoomBuilder.Config
|
|||
cfg.WriteSetting("currentversion", v.Major * 1000000 + v.Revision);
|
||||
cfg.WriteSetting("dockersposition", dockersposition);
|
||||
cfg.WriteSetting("collapsedockers", collapsedockers);
|
||||
cfg.WriteSetting("dockerswidth", dockerswidth);
|
||||
pasteoptions.WriteConfiguration(cfg, "pasteoptions");
|
||||
|
||||
// Save settings configuration
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue