mirror of
https://github.com/ZuneDev/Xune.git
synced 2026-07-27 13:13:10 -07:00
56 lines
2.2 KiB
C#
56 lines
2.2 KiB
C#
// Decompiled with JetBrains decompiler
|
|||
|
|
// Type: Microsoft.Iris.Markup.UIX.ContrastInstanceSchema
|
||
|
|
// Assembly: UIX, Version=4.8.0.0, Culture=neutral, PublicKeyToken=ddd0da4d3e678217
|
||
|
|
// MVID: A56C6C9D-B7F6-46A9-8BDE-B3D9B8D60B11
|
||
|
|
// Assembly location: C:\Program Files\Zune\UIX.dll
|
||
|
|
|
||
|
|
using Microsoft.Iris.Animations;
|
||
|
|
using Microsoft.Iris.Library;
|
||
|
|
using Microsoft.Iris.Session;
|
||
|
|
using Microsoft.Iris.UI;
|
||
|
|
|
||
|
|
namespace Microsoft.Iris.Markup.UIX
|
||
|
|
{
|
||
|
|
internal static class ContrastInstanceSchema
|
||
|
|
{
|
||
|
|
public static UIXTypeSchema Type;
|
||
|
|
|
||
|
|
private static void SetContrast(ref object instanceObj, object valueObj)
|
||
|
|
{
|
||
|
|
EffectElementWrapper effectElementWrapper = (EffectElementWrapper)instanceObj;
|
||
|
|
float num = (float)valueObj;
|
||
|
|
Result result = SingleSchema.ValidateNotNegative(valueObj);
|
||
|
|
if (result.Failed)
|
||
|
|
ErrorManager.ReportError(result.Error);
|
||
|
|
else
|
||
|
|
effectElementWrapper.SetProperty("Contrast", num);
|
||
|
|
}
|
||
|
|
|
||
|
|
private static object CallPlayContrastAnimationEffectFloatAnimation(
|
||
|
|
object instanceObj,
|
||
|
|
object[] parameters)
|
||
|
|
{
|
||
|
|
((EffectElementWrapper)instanceObj).PlayAnimation(EffectProperty.Contrast, (EffectAnimation)parameters[0]);
|
||
|
|
return null;
|
||
|
|
}
|
||
|
|
|
||
|
|
public static void Pass1Initialize() => Type = new UIXTypeSchema(43, "ContrastInstance", null, 74, typeof(EffectElementWrapper), UIXTypeFlags.None);
|
||
|
|
|
||
|
|
public static void Pass2Initialize()
|
||
|
|
{
|
||
|
|
UIXPropertySchema uixPropertySchema = new UIXPropertySchema(43, "Contrast", 194, -1, ExpressionRestriction.None, false, SingleSchema.ValidateNotNegative, false, null, new SetValueHandler(SetContrast), false);
|
||
|
|
UIXMethodSchema uixMethodSchema = new UIXMethodSchema(43, "PlayContrastAnimation", new short[1]
|
||
|
|
{
|
||
|
|
75
|
||
|
|
}, 240, new InvokeHandler(CallPlayContrastAnimationEffectFloatAnimation), false);
|
||
|
|
Type.Initialize(null, null, new PropertySchema[1]
|
||
|
|
{
|
||
|
|
uixPropertySchema
|
||
|
|
}, new MethodSchema[1]
|
||
|
|
{
|
||
|
|
uixMethodSchema
|
||
|
|
}, null, null, null, null, null, null, null, null);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|