Esempio n. 1
0
    public void panelClick()
    {
        switch (CowAppScript.listMode)
        {
        case 0:
            break;

        case 1:
            CowAppScript.currentFocusAnimal = panelTarget;
            CowAppScript.changeMenu(3);
            CowAppScript.getCurrentMenu().refreshMenu();
            break;

        case 2:
            CowAppScript.listMode        = 1;
            CowAppScript.requestedAnimal = panelTarget;

            /*Farm.removeAnimalFromAllLocations(panelTarget);
             * CowAppScript.currentAnimalList.Add(panelTarget);
             * CowAppScript.targetMenu = CowAppScript.requestingMenu;*/
            break;

        case 3:
            Farm.removeAnimal(panelTarget);
            CowAppScript.listMode = 1;
            CowAppScript.getCurrentMenu().refreshMenu();
            break;

        case 4:
            CowAppScript.currentFocusLocation.removeAnimalFromLocation(panelTarget);
            CowAppScript.listMode = 1;
            break;
        }
    }
Esempio n. 2
0
    public void panelClick()
    {
        switch (CowAppScript.listMode)
        {
        case 0:
            break;

        case 1:
            CowAppScript.currentFocusLocation = panelTarget;
            CowAppScript.changeMenu(4);
            break;

        case 2:
            CowAppScript.listMode          = 1;
            CowAppScript.requestedLocation = panelTarget;

            /*
             * CowAppScript.currentLocationList.Add(panelTarget);
             * CowAppScript.targetMenu = CowAppScript.requestingMenu;
             */
            break;

        case 3:
            Farm.getLocations().Remove(panelTarget);
            CowAppScript.listMode = 1;
            CowAppScript.getCurrentMenu().refreshMenu();
            break;
        }
    }