Exemplo n.º 1
0
    public void SetItem(Gossip gossip)
    {
        _gossip                  = gossip;
        GossipNameText.text      = gossip.Name();
        GossipRelevanceText.text = "- " + gossip.FreshnessString() + " (" + gossip.Freshness + " days left)";
        Sprite factionSprite;

        _factionSymbolList.TryGetValue(gossip.Faction, out factionSprite);
        GossipIcon.sprite = factionSprite;
    }
Exemplo n.º 2
0
        void HandleGossipStats(Gossip gossip)
        {
            Sprite factionSprite;

            _factionSymbolList.TryGetValue(gossip.Faction, out factionSprite);
            GossipFactionSymbol.color  = Color.white;
            GossipFactionSymbol.sprite = factionSprite;
            GossipNameText.text        = gossip.Name();
            GossipDescriptionText.text = gossip.DescriptionText; //To Do: Make gossip items generate description text properly
            GossipEffectText.text      = gossip.PoliticalEffectDescriptionText();
            FreshnessSlider.value      = gossip.Freshness;
            GossipValue.text           = "£" + gossip.LivreValue().ToString("### ###");
        }