civfanatics / CQUI_Community-Edition

Civilization 6 mod - UI enhancements, reduce clicks and manage your empire faster!
MIT License
154 stars 28 forks source link

Feature Request: +5 and/or +10 button in Diplomacy Deal Screen #149

Open the-m4a opened 4 years ago

the-m4a commented 4 years ago

Requested by "Jin Shepard" on the Steam Site:

Hello creator of this mod, is there any chance you are going to or even can, make it so that in trade you can use a key modifier or just a button of +5 or +10 of a resource in the trade UI? My fingers and probably many other fingers would love it!

I would like this as well as I generally do not want to touch the keyboard when playing

wayneb64 commented 4 years ago

In another game I play, Guild Wars 2, the UI lets you hold down the left mouse button after selecting the text entry box and drag up and down to select an amount, very efficient way to enter large numbers without typing or lots of clicking.

the-m4a commented 4 years ago

That would be an interesting way to do it as well... scroll control kind of thing

Infixo commented 4 years ago

That is why I use one of the modules from the ConciseUI mod. The Deal screen from CUI is absolutely the best one out there.

Swarsel commented 4 years ago

As I see, ConciseUI development is effectively stopped (https://steamcommunity.com/sharedfiles/filedetails/?id=1671978687). What do you think of asking to integrate the current CUI DealView (or other CUI features) into CQUI?

Also, there are other very nice changes done by this mod that could also be integrated nearly 1:1 and could be easily toggled on/off. In particular, I like the inline quests in the CityStatePanel: cd as well as the additions to the WorldTracker (World Wonders, Trade routes etc.) ewf

Infixo commented 4 years ago

The development is stopped, true, but the author maintains it so it is still working. Well... Asking is not forbidded, I assume :) I am thinking about a big rework of the CityState window. I like what CUI did there and also adedd a few of my own improvements. But that would probably be a separate mod of my own.

Swarsel commented 4 years ago

I will ask him these days to test the waters I guess :)

Also sounds very interesting about your seperate CityStatePanel mod, I just hope it is compatible with CQUI out of the box - nowadays it became such a hassle to keep all my customized mods working, since so many updates are coming out right now^^

Generally, I would be very happy if we could work on the compatibility of CQUI with other mods, namely EDR, CUI (even though that one is already very easy due to being modular) Z Unit Marks and Alternate Policy Screen. I would also be gladly doing it myself; I am just not too sure on what is acceptable to be started as a PR. I remember seeing some guidelines on that matter, but I cannot find it anymore.

the-m4a commented 3 years ago

I started looking at this - I had forgotten about the Concise UI mod and maybe should give it a download to see how they accomplished this.

ReAttachValueEdit() handles the interaction with that "How Many?" dialog/popup UI. It makes use of multiple file-local variables that are not easy to navigate around, ms_AgreementOptionIM in particular being one I'm not sure how to deal with.

It... sort of works, but that single line in ReAttachValueEdit that resets the Instance manager thingy leaves me not feeling confident this will be reasonably done.

kamimark commented 3 years ago

My group insists on using ConciseUI just because of this screen. I personally don't like the ConciseUI screen cause it has too many buttons.

I think the best idea is using a modifier key as suggested above. You will also want to reduce the defaults to help with fine tuning the trading with AI, which is the primary reason that we want the extra buttons to begin with.

So final result should look like this: Simple left click One time gold step +10 Per turn gold step +1 Diplomatic Favor +1 Rest +1

Simple right click One time gold step -10 Per turn gold step -1 Diplomatic Favor -1 Rest -1

when you shift click to multiply by 10 the effect ex, Shift Right Click One time gold step -100 Per turn gold step -10 Diplomatic Favor -10 Rest unaffected

With this mechanism you reduce dramatically the number of clicks required to make a deal with AI.

This renders the extra buttons in ConciseUI useless AND makes implementation easier.

Code for shift detection:
if (UIManager:GetShift()) then iAddAmount = iAddAmount * 10; end

wapenshaw commented 3 years ago

As I see, ConciseUI development is effectively stopped (steamcommunity.com/sharedfiles/filedetails/?id=1671978687). What do you think of asking to integrate the current CUI DealView (or other CUI features) into CQUI?

Also, there are other very nice changes done by this mod that could also be integrated nearly 1:1 and could be easily toggled on/off. In particular, I like the inline quests in the CityStatePanel: cd as well as the additions to the WorldTracker (World Wonders, Trade routes etc.) ewf

Hey, I kinda tested out most of the Consise UI features with CQUI (this repo) and with some base level testing, I managed to find some incompatible modules in it. I deleted those and it seems to be working fine alongside CQUI.

Here is the fork : https://github.com/wapenshaw/ConciseUI

The Gossip/combat log on the side is great along with the other features from this during gameplay

image

image