-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #567 from ow-mods/dev
2.10.0
- Loading branch information
Showing
62 changed files
with
4,764 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace OWML.Common | ||
{ | ||
public enum MenuSide | ||
{ | ||
LEFT, | ||
CENTER, | ||
RIGHT | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace OWML.Common | ||
{ | ||
public interface IModDefaultConfig | ||
{ | ||
bool Enabled { get; set; } | ||
|
||
Dictionary<string, object> Settings { get; set; } | ||
|
||
T GetSettingsValue<T>(string key); | ||
|
||
IModConfig Copy(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace OWML.Common | ||
{ | ||
public interface IMenuManager | ||
{ | ||
public ITitleMenuManager TitleMenuManager { get; } | ||
public IPauseMenuManager PauseMenuManager { get; } | ||
public IOptionsMenuManager OptionsMenuManager { get; } | ||
public IPopupMenuManager PopupMenuManager { get; } | ||
|
||
internal IList<IModBehaviour> ModList { get; set; } | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/OWML.Common/Interfaces/Menus/IOWMLFourChoicePopupMenu.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace OWML.Common | ||
{ | ||
public interface IOWMLFourChoicePopupMenu | ||
{ | ||
event PopupConfirmEvent OnPopupConfirm1; | ||
event PopupConfirmEvent OnPopupConfirm2; | ||
event PopupConfirmEvent OnPopupConfirm3; | ||
event PopupValidateEvent OnPopupValidate; | ||
event PopupCancelEvent OnPopupCancel; | ||
|
||
void EnableMenu(bool value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace OWML.Common | ||
{ | ||
public interface IOWMLMenuValueOption | ||
{ | ||
string ModSettingKey { get; set; } | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
src/OWML.Common/Interfaces/Menus/IOWMLOptionsSelectorElement.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace OWML.Common | ||
{ | ||
public delegate void OptionValueChangedEvent(int newIndex, string newSelection); | ||
|
||
public interface IOWMLOptionsSelectorElement : IOWMLMenuValueOption | ||
{ | ||
public event OptionValueChangedEvent OnValueChanged; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using UnityEngine.UI; | ||
|
||
namespace OWML.Common.Interfaces.Menus | ||
{ | ||
public interface IOWMLPopupInputMenu | ||
{ | ||
public event PopupInputMenu.InputPopupValidateCharEvent OnInputPopupValidateChar; | ||
|
||
public void EnableMenu(bool value); | ||
|
||
public string GetInputText(); | ||
|
||
public InputField GetInputField(); | ||
|
||
public event PopupMenu.PopupConfirmEvent OnPopupConfirm; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace OWML.Common | ||
{ | ||
public delegate void FloatOptionValueChangedEvent(float newValue); | ||
|
||
public interface IOWMLSliderElement : IOWMLMenuValueOption | ||
{ | ||
public event FloatOptionValueChangedEvent OnValueChanged; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace OWML.Common | ||
{ | ||
public delegate void TextEntryConfirmEvent(); | ||
|
||
public interface IOWMLTextEntryElement : IOWMLMenuValueOption | ||
{ | ||
public event TextEntryConfirmEvent OnConfirmEntry; | ||
|
||
public string GetInputText(); | ||
} | ||
} |
Oops, something went wrong.