Skip to content

Commit

Permalink
V3.3.0
Browse files Browse the repository at this point in the history
Seperate PlayerUITemplate from PlayerUI
  • Loading branch information
MeowServer committed Jun 12, 2024
1 parent 0c86cd2 commit 1ccf5b8
Show file tree
Hide file tree
Showing 14 changed files with 54 additions and 1,339 deletions.
145 changes: 0 additions & 145 deletions Config/GeneralConfig.cs

This file was deleted.

44 changes: 44 additions & 0 deletions Config/PlayerDisplayConfigs/HintConfigs.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HintServiceMeow.Config.PlayerDisplayConfigs
{
public abstract class AbstractHintConfig
{
private HintAlignment alignment;

private int fontSize;

private string message;

public AbstractHintConfig(string message, HintAlignment alignment, int fontSize)
{
this.message = message;
this.alignment = alignment;
this.fontSize = fontSize;
}
}

public class HintConfig : AbstractHintConfig
{
public int yCoordinate;

public HintConfig(int yCoordinate,string message, HintAlignment alignment, int fontSize) : base(message, alignment, fontSize)
{
this.yCoordinate = yCoordinate;
}
}

public class DynamicHintConfig : AbstractHintConfig
{
public DynamicHintField hintField;

public DynamicHintConfig(DynamicHintField hintField, string message, HintAlignment alignment, int fontSize, int topYCoordinate, int bottomYCoordinate) : base(message, alignment, fontSize)
{
this.hintField = hintField;
}
}
}
File renamed without changes.
21 changes: 0 additions & 21 deletions Config/PlayerUIConfig.cs

This file was deleted.

42 changes: 0 additions & 42 deletions Config/PlayerUITemplateConfigs.cs

This file was deleted.

25 changes: 0 additions & 25 deletions Config/PlayerUIToolConfig.cs

This file was deleted.

31 changes: 1 addition & 30 deletions Config/PluginConfig.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Exiled.API.Enums;
using Exiled.API.Interfaces;
using HintServiceMeow.UITemplates;
using PlayerRoles;
using Respawning;

Expand All @@ -12,40 +11,12 @@ namespace HintServiceMeow.Config
{
public class PluginConfig:IConfig
{
public static PluginConfig instance;
internal static PluginConfig instance;

public bool IsEnabled { get; set; } = true;
public bool Debug { get; set; } = false;

[Description("Configs for PlayerDisplay. Changing these configs might leads to errors")]
public PlayerDisplayConfig PlayerDisplayConfig { get; set; } = new PlayerDisplayConfig();


[Description("The config for general names")]
public GeneralConfig GeneralConfig { get; set; } = new GeneralConfig();

[Description("All of the following configs are used for PlayerUI")]
public bool EnablePlayerUI { get; set; } = true;

[Description("The config for PlayerUI")]
public PlayerUIConfig PlayerUIConfig { get; set; } = new PlayerUIConfig();

[Description("The config for PlayerUITools, will affect multiple templates")]
public PlayerUIToolsConfig PlayerUIToolsConfig { get; private set; } = new PlayerUIToolsConfig();

[Description("The config for general human tempalte")]
public GeneralHumanTemplateConfig GeneralHumanTemplateConfig { get; private set; } = new GeneralHumanTemplateConfig();

[Description("The config for scp tempalte")]
public SCPTemplateConfig ScpTemplateConfig { get; private set; } = new SCPTemplateConfig();

[Description("The config for custom human tempalte")]
public CustomHumanTemplateConfig CustomHumanTemplate { get; private set; } = new CustomHumanTemplateConfig();

[Description("The config for custom scp tempalte")]
public CustomSCPTemplateConfig CustomSCPTemplate { get; private set; } = new CustomSCPTemplateConfig();

[Description("The config for spectator tempalte")]
public SpectatorTemplateConfig SpectatorTemplateConfig { get; private set; } = new SpectatorTemplateConfig();
}
}
Loading

0 comments on commit 1ccf5b8

Please sign in to comment.