Beispiel #1
0
 protected override void OnAction(ActionType actionType, UIScrollListParent <ShipModel, OrganizeShipListChild> calledObject, OrganizeShipListChild actionChild)
 {
     base.OnAction(actionType, calledObject, actionChild);
     switch (actionType)
     {
     case ActionType.OnChangeFocus:
         if (0 < GetModelSize())
         {
             CommonPopupDialog.Instance.StartPopup($"{actionChild.SortIndex + 1}/{GetModelSize()}", 0, CommonPopupDialogMessage.PlayType.Short);
         }
         SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
         break;
     }
 }
Beispiel #2
0
 protected override void OnAction(ActionType actionType, UIScrollListParent <ShipModel, OrganizeShipListChild> calledObject, OrganizeShipListChild actionChild)
 {
     base.OnAction(actionType, calledObject, actionChild);
     if (actionType != ActionType.OnChangeFocus)
     {
         if (actionType != ActionType.OnChangeFirstFocus)
         {
         }
     }
     else
     {
         if (0 < base.GetModelSize())
         {
             CommonPopupDialog.Instance.StartPopup(string.Format("{0}/{1}", actionChild.SortIndex + 1, base.GetModelSize()), 0, CommonPopupDialogMessage.PlayType.Short);
         }
         SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
     }
 }
Beispiel #3
0
    protected override void OnAction(ActionType actionType, UIScrollListParent <MissionModel, UIMissionScrollListChild> calledObject, UIMissionScrollListChild actionChild)
    {
        base.OnAction(actionType, calledObject, actionChild);
        switch (actionType)
        {
        case ActionType.OnButtonSelect:
        case ActionType.OnTouch:
            SoundUtils.PlaySE(SEFIleInfos.CommonEnter1);
            break;

        case ActionType.OnChangeFocus:
            SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
            break;

        case ActionType.OnBack:
            SoundUtils.PlaySE(SEFIleInfos.CommonCancel1);
            break;
        }
    }