Skip to content

Graphics FR: render the effects of a specialist in the city screen ui #798

@TomWerner

Description

@TomWerner

Relevant TODO:

// TODO: Render the specialist effect (like a smiley for entertainers)

Original game example, the entertainers have smileys:

Image

We already have the art assets configured, just not associated with the citizen types. The citizen types should have all the details configured already:

  • // The contribution, in gold per turn, that this citizen makes towards
    // luxuries/happiness.
    public int Luxuries;
    // The contribution, in beakers, that this citizen makes towards teching
    public int Research;
    // The contribution, in gold per turn, that this citizen makes towards
    // the treasury.
    public int Taxes;
    // TODO: Figure out the details of how corruption is reduced by
    // policemen.
    public int Corruption;
    // The contribution, in shields per turn, that this citizen makes
    // towards production.
    public int Construction;
  • shieldTexture = TextureLoader.Load("icons.good_shield");
    emptyShieldTexture = TextureLoader.Load("icons.empty_shield");
    corruptShieldTexture = TextureLoader.Load("icons.wasted_shield");
    foodTexture = TextureLoader.Load("icons.full_food");
    emptyFoodTexture = TextureLoader.Load("icons.empty_food");
    noFoodTexture = TextureLoader.Load("icons.no_food");
    eatenFoodTexture = TextureLoader.Load("icons.eaten_food");
  • (the domestic advisor should have any not in the city UI):
    eatenFood.TextureNormal = TextureLoader.Load("icons.eaten_food");
    fullFood.TextureNormal = TextureLoader.Load("icons.full_food");
    wastedShield.TextureNormal = TextureLoader.Load("icons.wasted_shield");
    goodShield.TextureNormal = TextureLoader.Load("icons.good_shield");
    wastedGold.TextureNormal = TextureLoader.Load("icons.wasted_gold");
    goodGold.TextureNormal = TextureLoader.Load("icons.good_gold");
    happyFace.TextureNormal = TextureLoader.Load("icons.happy_face");
    contentFace.TextureNormal = TextureLoader.Load("icons.content_face");
    beaker.TextureNormal = TextureLoader.Load("icons.beaker");
    treasuryIcon.TextureNormal = TextureLoader.Load("icons.treasury");

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions