Giter Club home page Giter Club logo

Comments (12)

yairm210 avatar yairm210 commented on May 10, 2024

Is Livability a resource?

from unciv.

yairm210 avatar yairm210 commented on May 10, 2024

...it's not a stat, so it can't be in that unique anyway
You should be doing that as a resource

from unciv.

AutumnPizazz avatar AutumnPizazz commented on May 10, 2024

Yes. This is a Resource, but I hope to "disguise" it at the unique level

from unciv.

SomeTroglodyte avatar SomeTroglodyte commented on May 10, 2024

five kinds of Stats emojis

Isn't that seven? Seven Samurais, seven Flies, seven Dials, seven Bridges, seven Wizards...

from unciv.

AutumnPizazz avatar AutumnPizazz commented on May 10, 2024

five kinds of Stats emojis

Isn't that seven? Seven Samurais, seven Flies, seven Dials, seven Bridges, seven Wizards...

It doesn't matter... I misremembered

from unciv.

AutumnPizazz avatar AutumnPizazz commented on May 10, 2024

Seven Samurais, seven Flies, seven Dials, seven Bridges, seven Wizards...

I have difficulty capturing the original meaning of this passage, whether it's through a dictionary or GPT. What does it mean?

from unciv.

SomeTroglodyte avatar SomeTroglodyte commented on May 10, 2024

What does it mean

Just joking. Obscure references. A movie, a book, London, a song and Pratchett (as the eighth son might be a Sourcerer instead of a Wizzard).

from unciv.

SomeTroglodyte avatar SomeTroglodyte commented on May 10, 2024

hope to "disguise" it at the unique level

Then that should be a Comment Unique, and for those to support automatic ruleset object icons we would need nested brackets. Idea: Would uniques:["Comment [+2 {Livability}]"],... work? That should feed +2 {Livability} into the tr() function... Will the autoicons code trigger?

from unciv.

AutumnPizazz avatar AutumnPizazz commented on May 10, 2024

Will the autoicons code trigger?

It doesn't work...
image
image
And I store this png file in unciv\mods\CoeHarMod\Images\OtherIcons

from unciv.

SomeTroglodyte avatar SomeTroglodyte commented on May 10, 2024

image

... the icons do work this way, but what I had forgotten - because my example didn't have any - the text outside the {} will of course not be translated ... So we would need [] nesting after all. Which is officially not supported, but happens to work on Comment uniques by lucky happenstance.

image
One mod atlas icon, one builtin icon, translated - aucun probléme.

    "uniques": [
          "Comment [Can build [Shaolin Monastery] improvements on tiles]",
          "Comment [[Great General] provides double combat bonus]",
          "Great General provides double combat bonus <hidden from users>",

... and only one of the comments can reuse an existing translation, so the other one is in the mod.

OtherIcons? You said it was a resource... No point otherwise.

from unciv.

AutumnPizazz avatar AutumnPizazz commented on May 10, 2024

This does work in the country selection interface, but it's not as good in the civilization encyclopedia interface.
image
image
image

from unciv.

yairm210 avatar yairm210 commented on May 10, 2024

I see, this is because of a conscious choice to remove those extra icons so you won't have double images - one because of the link for Livability, and one for the resource name
I think this is nicer this way

from unciv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.