[UI]DiploWillard - Easier City-States management from one window

Cool! But this is weird: I went to look for it in the Downloads section here under Modpacks. v3.0 isn't showing up, v2.0 is gone. I figured you pulled it, or moved it. But when I Search for "Willard" it tells me it's in Civ5-Modpacks! Huh?

The v3.0 is uploaded here, but it's still waiting for the approval. It's unfortunate that the whole download page for the mod gets offline when you update the file. I'm sure it will be back soon.
 
Nice mod, i like it!

The button looks and behave odd though. There is a square background just below the button, and since all other civ5 buttons are round, yours look out of place. Even when I move the button to other position, the ugly background still follows. Also when I mouse over the button, it moves upward a tiny distance. All other buttons stays in the same place when being mouse overed. There is no tooltip when mouseing over your button. Although this isn't needed, it would be neat if your button behaved and acted just like all other buttons.

It's actually the same button that you can find on top of the help-pages (Civilopedia). It's meant to be sitting at the bottom of the screen so the look and feel is as it should be. I'm quessing that one day people might have many mod-buttons that will be visible all the time. Bottom row seemed to be a good place to put them?
 
Thanks for the update, I couldn't figure out what had happened, was going through and disabling mods when I found the v3 update.

Great tool, love the customizations, keep up the good work!
 
thanks for adding my request... and for v3.... 300+ turns and still no crash... hands down one of my favorite mod.. +2 cookie points for you...
 
One minor quibble: if you current allegiance is 0, it shouldn't be showing 2.00 as my allegiance change (I'm greek, so that's doubled), it should just be 0. And is it easy to get rid of the decimal places unless they're necessary?
 
One minor quibble: if you current allegiance is 0, it shouldn't be showing 2.00 as my allegiance change (I'm greek, so that's doubled), it should just be 0. And is it easy to get rid of the decimal places unless they're necessary?

I left the allegiance change number there, even if it's not actually changing, so that people would always know what the change rate is. This is especially useful in the beginning when your deciding who your first city-state friend will be. Hostile personality City-states tend to give less bang for your bucks. :mischief:

Decimals are quite necessary because there can be major changes to that rate which can only be noticed through decimals.
 
Only good things to say about this so far. The consolidated info is quite a bit more agreeable than drilling down into multiple screens and searching tooltips to discover needed data. I also like the method you're using to avoid this being a static screen where one is locked out of the world view.

One question: Did I imagine the last 4 columns being in a previous version (resources, status, allies and protected). Or is that screenshot what you're working on currently?
 
Decimals are quite necessary because there can be major changes to that rate which can only be noticed through decimals.

I'm aware of that, but some of the time the rate will be an even number, it could display just 2 instead of 2.00 at those times. It would just look a little less cluttered, is all.
 
One question: Did I imagine the last 4 columns being in a previous version (resources, status, allies and protected). Or is that screenshot what you're working on currently?
Those stats are already in the mod. It's just that they are not shown by default. You can add them yourself by going to the options page and checking one of the dropdown boxes on the right side of the screen.
 
Excellent mod. v2 was indeed buggy, but no problem with v3.
Very handy. Besides the luxury displayer, this is the most useful mod there is. Very flexible with the options.

I did notice that v1.0 is still mentioned. ;)
Also, a small request, is it possible to have a X button at the topright of the window to close it? I find the small 'close' text a little annoying/small.
 
Those stats are already in the mod. It's just that they are not shown by default. You can add them yourself by going to the options page and checking one of the dropdown boxes on the right side of the screen.

Lol. Found that, thanks :) I thought the options were all toggles, but it's a drop down.
 
Hi, I made some position tweaks about your mod, that places the UI in the better place. I wish you can apply these code. I have already tested them.

File: DiploWillard.xml

Line: 9
Code:
<Button ID="MainButton" Anchor="C,B" Size="49,50" [COLOR="Red"]Offset="200,0"[/COLOR] Texture="CivilopediaTopButtonsCities.dds"  ToolTip="City-StatesList">

Line: 14
Code:
<Grid ID="MainWindow" Size="390,420" [COLOR="red"]Anchor="C,C" Offset="0,0"[/COLOR]  Style="Grid9DetailFive140" ConsumeMouse="1">

File: DiploWillardWind.lua
Line: 289
Code:
Controls.MainWindow:SetAnchor("C,C")
Controls.MainWindow:SetOffsetVal(0, 0)
Controls.MainButton:SetAnchor("C,B")
Controls.MainButton:SetOffsetVal(200, 0)

And I noticed that the current method of moving main window and button has a little offset. It makes a bad user experience. I'm trying to change it to a better method.
 
I found the problem. The reason of the incorrect moving position is you add and subtract the wrong values. And I made a little change for moving bottom button. That's the code I changed below:

File: DiploWillardWind.lua
Line: 238
Code:
function GG.ProcessInput( uiMsg, wParam, lParam )
	if GG.updateOptions then --used to force update options screen on actions
	    if( uiMsg == MouseEvents.MouseMove ) then
			Controls.MainWindow:SetHide(false)
			GG.UpdateDisplay()
			GG.updateOptions = false
		end
	end
	if GG.moveMode then --move main window
		Controls.MainWindow:SetHide(false) --was temporarily hidden to get mouse movements registered
	    if( uiMsg == MouseEvents.MouseMove ) then
	        x, y = UIManager:GetMousePos()
			Controls.MainWindow:SetAnchor("L,T")
			Controls.MainWindow:SetOffsetVal(x+1, y) -- +1 to avoid clicking the element
		end
	    if( uiMsg == MouseEvents.LButtonUp ) then
	        x, y = UIManager:GetMousePos()
			Controls.MainWindow:SetAnchor("L,T")
			Controls.MainWindow:SetOffsetVal(x+1, y) -- -1 to help position on top and left edges
			GG.S.Settings.windowX = x+1
			GG.S.Settings.windowY = y
			GG.moveMode = false
		end
	end
	if GG.moveMode2 then --move main button
	    if( uiMsg == MouseEvents.MouseMove ) then
	        x, y = UIManager:GetMousePos()
			Controls.MainButton:SetAnchor("L,B")
			Controls.MainButton:SetOffsetVal(x+1, 0) -- +1 to avoid clicking the element
		end
	    if( uiMsg == MouseEvents.LButtonUp ) then
	        x, y = UIManager:GetMousePos()
			Controls.MainButton:SetAnchor("L,B")
			Controls.MainButton:SetOffsetVal(x+1, 0) -- -1 to help position on top and left edges
			GG.S.Settings.buttonX = x+1
			GG.S.Settings.buttonY = 0
			GG.moveMode2 = false
			Controls.MainWindow:SetHide(false)
		end
	end
end

File: DiploWillardPara.lua
Line: 76
Code:
Controls.MainButton:SetAnchor("L,B")
Controls.MainButton:SetOffsetVal(GG.S.Settings.buttonX, 0)
 
Also, a small request, is it possible to have a X button at the topright of the window to close it? I find the small 'close' text a little annoying/small.
I decided to go for the close button instead of X button, because the games standard windows also use that one. I think this is just one of those things that some people like and others don't. :crazyeye:
 
Hi, I made some position tweaks about your mod, that places the UI in the better place. I wish you can apply these code. I have already tested them.

And I noticed that the current method of moving main window and button has a little offset. It makes a bad user experience. I'm trying to change it to a better method.

I found the problem. The reason of the incorrect moving position is you add and subtract the wrong values. And I made a little change for moving bottom button. That's the code I changed below:
Thanks for the suggestions, but the window positions are also one of those things that everybody have their own preferences. That's why everybody can now position them how ever they like.

I made a compromise with the +10 offset (instead of +1) when moving those windows. +1 required you to be absolutely still when you pressed that mouse button and that lead to too many "miss-clicks". If there only were a simple command to make that main window [ConsumeMouse="0"] it would have made that solution much easier? :confused:
 
I decided to go for the close button instead of X button, because the games standard windows also use that one. I think this is just one of those things that some people like and others don't. :crazyeye:

That's ok. :)

However, I noticed when 2 city states declared war on me (because I was at war with their allied civ), they didn't have the red color that I left as the default color for war. Allied city states does have the correct color.
 
Thanks for the suggestions, but the window positions are also one of those things that everybody have their own preferences. That's why everybody can now position them how ever they like.

I made a compromise with the +10 offset (instead of +1) when moving those windows. +1 required you to be absolutely still when you pressed that mouse button and that lead to too many "miss-clicks". If there only were a simple command to make that main window [ConsumeMouse="0"] it would have made that solution much easier? :confused:

I not mean that the add/subtract values are too small, I mean you use the wrong sign operator. In your original code, you add 10 at the begining of draging, and subtract 10 at the end. Did you notice that every time you drag the window, the had window been put 20 pixels far from the cursor pos.
 
Back
Top Bottom