Add IColorPickerManagerInfo interface
This commit is contained in:
@@ -16,7 +16,9 @@ using OpenRA.Graphics;
|
||||
using OpenRA.Mods.Common.Activities;
|
||||
using OpenRA.Mods.Common.Graphics;
|
||||
using OpenRA.Mods.Common.Terrain;
|
||||
using OpenRA.Mods.Common.Widgets;
|
||||
using OpenRA.Primitives;
|
||||
using OpenRA.Support;
|
||||
using OpenRA.Traits;
|
||||
|
||||
namespace OpenRA.Mods.Common.Traits
|
||||
@@ -290,6 +292,18 @@ namespace OpenRA.Mods.Common.Traits
|
||||
IEnumerable<string> ColorPickerPaletteNames { get; }
|
||||
}
|
||||
|
||||
public interface IColorPickerManagerInfo : ITraitInfoInterface
|
||||
{
|
||||
(float sMin, float sMax) SaturationRange { get; }
|
||||
(float vMin, float vMax) ValueRange { get; }
|
||||
event Action<Color> OnColorPickerColorUpdate;
|
||||
Color[] PresetColors { get; }
|
||||
Color RandomPresetColor(MersenneTwister random, IEnumerable<Color> terrainColors, IEnumerable<Color> playerColors);
|
||||
Color RandomValidColor(MersenneTwister random, IEnumerable<Color> terrainColors, IEnumerable<Color> playerColors);
|
||||
Color MakeValid(Color color, MersenneTwister random, IEnumerable<Color> terrainColors, IEnumerable<Color> playerColors, Action<string> onError = null);
|
||||
void ShowColorDropDown(DropDownButtonWidget dropdownButton, Color initialColor, string initialFaction, WorldRenderer worldRenderer, Action<Color> onExit);
|
||||
}
|
||||
|
||||
public interface ICallForTransport
|
||||
{
|
||||
WDist MinimumDistance { get; }
|
||||
|
||||
Reference in New Issue
Block a user