Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New feature: Improved trade menu
New feature: Improved trade menu[message #349019] Sun, 26 February 2017 18:44 Go to next message
Flugente

 
Messages:3160
Registered:April 2009
Location: Germany
While my previous ideas to improve the trade menu were well received, as usual nobody was willing to implement them, so I did. This is pretty much exactly what proposed - the trade menu is now resolution-dependent. Observe:

http://i.imgur.com/qRRQA7p.png
1600x1024

http://i.imgur.com/7ZHjnbW.png
640x480

This of course works in any resolution. As a result, this is not optional. I've altered huge parts of that code and have no intention to go the usual 'we make things optional for no reason' route.

I've also added the colouring of items that can't be sold, stacking of additional items and the display of the merchant budget.

The only thing not implemented in the afore-mentioned post is the sector inventory access. As usual, the strategic inventory is not wrapped at all, which means I'd have to recreate that entire thing, which I'd loathe to. Additionally, accessing sector inventory in tactical would cause quite a few internal problems I have no motivation to solve right now.

This has been added to the trunk in r8389 and is fully savegame compatible.



Saren threw his head back and screamed in impotent fury, before falling to his throne, head in his claws, trembling in horrified disbelief.

Then he heard a faint chime as Sovereign subscribed to her ECHO channel.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.


Re: New feature: Improved trade menu[message #349021 is a reply to message #349019] Sun, 26 February 2017 18:58 Go to previous messageGo to next message
Xafloz

 
Messages:76
Registered:December 2016
In bigger resolutions items may become rather small. Do you plan to introduce a magnifying glass like the one in sector inventory? Great improvement anyway.
Re: New feature: Improved trade menu[message #349251 is a reply to message #349021] Sun, 12 March 2017 20:09 Go to previous messageGo to next message
Xafloz

 
Messages:76
Registered:December 2016
Observation: unfortunately the feature freezes the game in 1920x1080 (when you click BUY in any merchant dialogue). This resolution is very useful for 4k monitors and so far I have been play countless hours using this one on 4k monitor. In smaller resolutions the feature works as intended, but visual effect of the game as a whole is not so good.

[Updated on: Sun, 12 March 2017 20:10]

Re: New feature: Improved trade menu[message #349252 is a reply to message #349251] Sun, 12 March 2017 22:20 Go to previous messageGo to next message
Flugente

 
Messages:3160
Registered:April 2009
Location: Germany
Eh? I'm playing with that resolution and get no error at all.

Items in shopkeeper inventory aren't bigger or smaller than those in merc inventories. I see no reason to change that.



Saren threw his head back and screamed in impotent fury, before falling to his throne, head in his claws, trembling in horrified disbelief.

Then he heard a faint chime as Sovereign subscribed to her ECHO channel.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.


Re: New feature: Improved trade menu[message #349255 is a reply to message #349252] Sun, 12 March 2017 23:06 Go to previous messageGo to next message
Xafloz

 
Messages:76
Registered:December 2016
Well I tried on pure new 8390. The same result at my end. Maybe it`s just Radeon "antymagic" or something connected with my specific configuration, but as I said it works form me in lower res.
Re: New feature: Improved trade menu[message #350519 is a reply to message #349255] Wed, 09 August 2017 23:27 Go to previous messageGo to next message
Flugente

 
Messages:3160
Registered:April 2009
Location: Germany
Because some people are not happy with a simple clean grey background, and I strongly dislike the Sirtech way of creating backgrounds for huge panels of unknown size - using a smaller image over and over again as if tiling a roof - I've decided to simply generate something different (r8444).

http://i.imgur.com/lPPn5Qf.png

The background is now a texture generated via random noise. The texture is generated anew once every use of an exe. I could also generate it constantly (so we would have a moving, swirling background), but this shall suffice.

If anybody is still unhappy about these colours, let me point out that I can still change my mind and have it simply be neon-pink.

[Updated on: Wed, 09 August 2017 23:29]




Saren threw his head back and screamed in impotent fury, before falling to his throne, head in his claws, trembling in horrified disbelief.

Then he heard a faint chime as Sovereign subscribed to her ECHO channel.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.


Re: New feature: Improved trade menu[message #350530 is a reply to message #350519] Thu, 10 August 2017 16:25 Go to previous messageGo to next message
smeagol

 
Messages:2713
Registered:June 2008
Location: Bremen, Germany
Much better... but why use 3 different colours?


Re: New feature: Improved trade menu[message #350538 is a reply to message #350530] Thu, 10 August 2017 20:23 Go to previous messageGo to next message
Flugente

 
Messages:3160
Registered:April 2009
Location: Germany
To better tell apart the different areas of the screen.



Saren threw his head back and screamed in impotent fury, before falling to his throne, head in his claws, trembling in horrified disbelief.

Then he heard a faint chime as Sovereign subscribed to her ECHO channel.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.


Re: New feature: Improved trade menu[message #350544 is a reply to message #349019] Fri, 11 August 2017 12:04 Go to previous messageGo to next message
grim

 
Messages:294
Registered:July 2006
Location: France
Legit.

By the way, another old idea made real by you, Flugente.
Thank you, much respect!
Re: New feature: Improved trade menu[message #350755 is a reply to message #350544] Sat, 26 August 2017 18:52 Go to previous message
Flugente

 
Messages:3160
Registered:April 2009
Location: Germany
Due to the considerable slowdown mentioned in this thread, as of r8457 & GameDir r2385, the trade menu background is no longer generated by random noise, but by cutting out a section of a much bigger picture.

http://i.imgur.com/8C87eOX.png

This should remove any speed issues. The picture used has a size of 3088x2056. This should suffice for resolutions up to ~5544x3540. If you have a screen with a bigger resolution, you need to add a picture with higher dimensions. You are also spending waaaay to much money on monitors.

Keep in mind that you will need the new picture that comes with GameDir r2385 when using the new exe.

[Updated on: Sat, 26 August 2017 18:55]




Saren threw his head back and screamed in impotent fury, before falling to his throne, head in his claws, trembling in horrified disbelief.

Then he heard a faint chime as Sovereign subscribed to her ECHO channel.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.


Previous Topic: New feature: enemy generals
Next Topic: New Feature: militia volunteer pool
Goto Forum:
  


Current Time: Sat Oct 21 02:35:11 EEST 2017

Total time taken to generate the page: 0.00897 seconds