Beispiel #1
0
    private void MAJInfobullBoutonOutil()
    {
        StockRessource stock = exploitation.expedition.tribu.stockRessources;
        string         retour;

        if (bonusOutil)
        {
            retour = "Cliquez pour desactiver le bonus d'outil";
        }
        else
        {
            retour = "Cliquez pour activer le bonus d'outil";

            retour += "\n<color=#" + ColorUtility.ToHtmlStringRGBA(ListeCouleurs.Defaut.couleurAlerteTexteInterface)
                      + ">-1 <color=\"white\">Outil";

            if (!yASuffisammentOutil)
            {
                retour += "<color=#" + ColorUtility.ToHtmlStringRGBA(ListeCouleurs.Defaut.couleurAlerteTexteInterface) +
                          "> (insufisant)";
            }
        }

        infobulleBoutonOutil.texteInfoBulle = retour;
    }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     stocks = panelRecette.craft.campement.tribu.stockRessources;
     InterfaceRessource.Actuel.EventInterfaceMAJ.AddListener(MAJSlot);
     demo = panelRecette.craft.campement.tribu.demographie;
     TourParTour.Defaut.eventNouveauTour.AddListener(MAJDepense);
     MAJSlot();
 }
Beispiel #3
0
    private void MAJBoutonBonusOutil()
    {
        StockRessource stock = exploitation.expedition.tribu.stockRessources;

        if (yASuffisammentOutil || bonusOutil)
        {
            boutonBonusOutil.interactable = true;
        }
        else
        {
            boutonBonusOutil.interactable = false;
        }

        if (bonusOutil && !yASuffisammentOutil)
        {
            CliquerSurBoutonOutil();
            boutonBonusOutil.interactable = false;
        }

        MAJInfobullBoutonOutil();
    }