private void OnMouseEvent(UIMouseEventType type, UpdateState state)
        {
            switch (type)
            {
            case UIMouseEventType.MouseOver:
                IsOver = true;
                break;

            case UIMouseEventType.MouseOut:
                IsOver = false;
                break;

            case UIMouseEventType.MouseDown:
                if (LinkAvatar > 0)
                {
                    var ratingList = new UIRatingList(LinkAvatar);
                    UIScreen.GlobalShowAlert(new UIAlertOptions()
                    {
                        Title           = GameFacade.Strings.GetString("f118", "23", new string[] { "Retrieving..." }),
                        Message         = GameFacade.Strings.GetString("f118", "24", new string[] { "Retrieving..." }),
                        GenericAddition = ratingList,
                        Width           = 530
                    }, true);
                }
                if (Settable)
                {
                    HalfStars = HoverHalfStars;
                    OnStarChange?.Invoke(HalfStars);
                    Invalidate();
                }
                break;

            case UIMouseEventType.MouseUp:
                break;
            }
        }
示例#2
0
 public RatingListController(UIRatingList view, IClientDataService dataService, Network.Network network)
 {
     this.Network     = network;
     this.DataService = dataService;
     this.View        = view;
 }