Skip to content

Commit

Permalink
Merge pull request #195 from amazingalek/alek/compatibility-fix-fix
Browse files Browse the repository at this point in the history
this works too
  • Loading branch information
TAImatem authored Jul 13, 2020
2 parents 19d19c6 + 20c2122 commit 0179205
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions OWML.Common/Menus/IModMainMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
{
public interface IModMainMenu : IModOWMenu
{
IModTabbedMenu OptionsMenu { get; }
IModButton OptionsButton { get; }
IModButton QuitButton { get; }
new IModTabbedMenu OptionsMenu { get; }
new IModButton OptionsButton { get; }
new IModButton QuitButton { get; }
IModButton ResumeExpeditionButton { get; }
IModButton NewExpeditionButton { get; }
IModButton ViewCreditsButton { get; }
Expand Down
6 changes: 3 additions & 3 deletions OWML.Common/Menus/IModPauseMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
{
public interface IModPauseMenu : IModPopupMenu, IModOWMenu
{
IModTabbedMenu OptionsMenu { get; }
IModButton OptionsButton { get; }
IModButton QuitButton { get; }
new IModTabbedMenu OptionsMenu { get; }
new IModButton OptionsButton { get; }
new IModButton QuitButton { get; }
IModButton ResumeButton { get; }

void Initialize(SettingsManager settingsManager);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace OWML.ModHelper.Menus
{
public abstract class ModButton : IModButtonBase
public abstract class ModButtonBase : IModButtonBase
{
public event Action OnClick;

Expand All @@ -27,7 +27,7 @@ public int Index

private readonly UIStyleApplier _uIStyleApplier;

protected ModButton(Button button, IModMenu menu)
protected ModButtonBase(Button button, IModMenu menu)
{
_uIStyleApplier = button.GetComponent<UIStyleApplier>();
Button = button;
Expand Down
2 changes: 1 addition & 1 deletion OWML.ModHelper.Menus/ModLayoutButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OWML.ModHelper.Menus
{
public class ModLayoutButton : ModButton, IModLayoutButton
public class ModLayoutButton : ModButtonBase, IModLayoutButton
{
public IModLayoutManager Layout { get; }

Expand Down
2 changes: 1 addition & 1 deletion OWML.ModHelper.Menus/ModTitleButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace OWML.ModHelper.Menus
{
public class ModTitleButton : ModButton, IModButton
public class ModTitleButton : ModButtonBase, IModButton
{
private readonly Text _text;
public virtual string Title
Expand Down
2 changes: 1 addition & 1 deletion OWML.ModHelper.Menus/OWML.ModHelper.Menus.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<Compile Include="ModInputCombinationMenu.cs" />
<Compile Include="ModInputCombinationPopup.cs" />
<Compile Include="ModLayoutButton.cs" />
<Compile Include="ModButton.cs" />
<Compile Include="ModButtonBase.cs" />
<Compile Include="ModConfigMenuBase.cs" />
<Compile Include="ModTitleButton.cs" />
<Compile Include="ModConfigMenu.cs" />
Expand Down

0 comments on commit 0179205

Please sign in to comment.