Jump to content

Technology Positioning in GUI


Recommended Posts

Can we make it possible to dictate where techs can go in the UI? It would be very helpful (and logical) to be able to place techs beneath the units that they primarily affect. For instance, Rank Promotion techs  and "Tradition" techs ("Archery Tradition", "Hoplite Tradition" etc.) can go directly beneath the unit.

 

Example: 

nkRq3uG.jpg

 

It could go in the building's template in the productionqueue/technologies component, perhaps productionque/technologies/row. 

 

  <ProductionQueue>
    <BatchTimeModifier>0.8</BatchTimeModifier>
    <Entities datatype="tokens">
      units/{civ}/infantry_javelineer_b
      units/{civ}/infantry_slinger_b
      units/{civ}/infantry_archer_b
      units/{civ}/infantry_crossbowman_b
    </Entities>
    <Technologies>
      <Row2 datatype="tokens">
        upgrade_rank_advanced_infantry_jav
        upgrade_rank_elite_infantry_jav
        upgrade_rank_advanced_infantry_slinger
        upgrade_rank_elite_infantry_slinger
        upgrade_rank_advanced_infantry_archer
        upgrade_rank_elite_infantry_archer
      </Row2>
      <Row3 datatype="tokens">
        <br/>
        <br/>
        special_archery_tradition
      </Row3>
      <Row4 datatype="tokens">
        training_levy_infantry_ranged
      </Row4>
    </Technologies>
  </ProductionQueue>

 

Edited by wowgetoffyourcellphone
  • Like 3
Link to comment
Share on other sites

39 minutes ago, nani said:

What if there are two rows of units?

I think more than 10 units available for training would be overkill.

But regardless, that would be up to the designer to make sure that they wouldn't overlap. Would be trivial. I'd say for now (until pages or tabs are implemented) just limit the UI to 10 trainable units and upgrades in the top row. I'd say for multiple-selected buildings (like in a ctrl-group or something), if there are more than 10 units and upgrades, needing 2 rows, then mash the technologies together, like the behavior we already have. :) 

Edited.

Edited by wowgetoffyourcellphone
  • Like 1
Link to comment
Share on other sites

I don't really mind, but we don't really have upgrade techs like that in the public mod :P 

It's not too difficult to do, but we'd have to take potential token modifications into account. I might actually prefer a special mode where the tech icon is below the production.
I do agree that we'd probably not want more than 10 units to produce.

That being said, I don't see myself working on this for quite some time, unfortunately.

Link to comment
Share on other sites

2 hours ago, wraitii said:

I think those are general mere upgrades, not specific units, so putting them under the units might arguably be more confusing.

Ah yes, you're right. I guess my request is more for mods then. Although who knows what folks will want to do with techs in the future.

Edited by wowgetoffyourcellphone
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...