コード例 #1
0
        public RadialPuppet(RadialMenuControl control) : base(100, control)
        {
            _progress = this.MyAdd(RadialMenuUtility.Prefabs.NewCircle(96, RadialMenuUtility.Colors.ProgressRadial, RadialMenuUtility.Colors.ProgressRadial, Position.Absolute));
            Add(RadialMenuUtility.Prefabs.NewCircle(65, RadialMenuUtility.Colors.RadialInner, RadialMenuUtility.Colors.OuterBorder, Position.Absolute));
            Add(RadialMenuUtility.Prefabs.NewRadialText(out _text, 0, Position.Absolute));
            _point = this.MyAdd(GeneratePoint());

            ShowValue(Get);
        }
コード例 #2
0
 private static GmgCircleElement SetCircle(GmgCircleElement element, float size, Color centerColor, Color color, Color border, Position position = default)
 {
     element.style.width = element.style.height = size;
     element.CenterColor = centerColor;
     element.VertexColor = color;
     element.MyBorder(2, size, border);
     element.style.alignItems     = Align.Center;
     element.style.justifyContent = Justify.Center;
     element.style.position       = position;
     return(element);
 }
コード例 #3
0
 internal static GmgCircleElement SetCircle(GmgCircleElement element, float size, Color color, Color border, Position position = default) => SetCircle(element, size, color, color, border, position);
コード例 #4
0
 public static void MyBorder(this GmgCircleElement visualElement, float width, float radius, Color color)
 {
     visualElement.BorderColor = color;
     visualElement.BorderWidth = width;
 }