Jump to content
Eternal Lands Official Forums
bluap

Switchable inventory windos size and items print

Recommended Posts

I thought it might be nice to be able to use the small inventory window even with larger resolutions. So I've made a change to enable that. Then the tricky question was "oh no, not another config option". So I added a small menu icon to the inventory window which uses a context menu to access the option. The default state is to change the window size when the resolution changes; as is the case now. The context menu gives the option to force the size or restore the auto size default. I've also added the "Item Window On Drop" option to the menu. I'm thinking to add the option values to the el.cfg file and may be remove the "Item Window On Drop" from the config menu.

 

While I was messing with the inventory code, I added a "Print items to console" feature. The similar storage print function appears to be relatively popular so may this will be useful too; I was thinking it would help make lists of items in the notepad for harvest+mix operations. I was also thinking about adding a "print items" function to the bag window too.

 

So any thoughts, is this OK to add to the client? One other thought. May be we could standardize windows to (optionally) have a context menu (left size of title bar) and move the (optional) close button to the right side of the title bar. That would require a new graphic however....

 

Here's a screen shot.

gallery_14814_13_2530.jpg

Share this post


Link to post
Share on other sites

OK, no interest. :P So, I've modified this patch, removing the menu icon. Instead, I've added a generic hook to the context menus system to optionally enable a context menu when the title bar is right-clicked. The inventory menu described above, now uses this feature.

 

Even if no-one wants the inventory menu, this title bar menu feature might be useful for other windows. It is disabled by default and not in-your-face when enabled. I'd really like to add it to the context menu tool set; its a very small change.

 

I personally like being able to resize the inventory window; others might too. It does nothing if not used and is a very small change. The print context option is simple too but can be left out if people object.

 

Any opinions?

Share this post


Link to post
Share on other sites

I'm a fan of context menus :P and basically anything that makes sense should or could be in there as far as I am concerned.

 

Side note: was going to say if it wouldn't make sense to enable the context menu on the empty spaces of a windows as well, but probably not. Would be nice to have the context menu option (if you want to go all the way :D) to copy the server messages in the inventory/manufacture/spells window.

 

Keep up the good work :)

Share this post


Link to post
Share on other sites

Well I must say, I really like this menu+options (especially the resize) for the inventory window! :D

 

It would indeed be nice to have these menus (button) integrated into the title bars, like you mentioned in your first post.

Btw (and this thought crossed my mind quite a while ago), a few options could be added to many window menus:

[]
Opaque Background (ctrl+d)

-----------------------------

Hide Windows (alt+d)

[]
Never Hide

-----------------------------

Windows On Top (alt+w)

[]
Always On Top

[]
Never On Top

:)

Share this post


Link to post
Share on other sites
OK, no interest. :blush:

lol, I don't think its a case of no interest, more a case of no-one around. ;-)

Share this post


Link to post
Share on other sites

I certainly missed this - but would love it - the inv window does eat up a lot of the screen when running to/from shops

Share this post


Link to post
Share on other sites

Please make the 'compacted inventory' option for bigger resolutions! I really like the small inventory available for lower resolutions, and on 1024x768 inv window is covering almost a half of my screen.

Thumbs up for the idea!

Edited by Lotheneil

Share this post


Link to post
Share on other sites

Thanks everyone for the comments. Although the changes are minor, we're probably too near the next release now to get this in. I'll take the extra suggestions on board and see if I can get these changes approved after the release.

Share this post


Link to post
Share on other sites

The changes are OK, except for the print inventory thing. It would just increase the bandwidth, and I don't think there is a real need for it, since you can view your inventory anyway.

Share this post


Link to post
Share on other sites
The changes are OK, except for the print inventory thing. It would just increase the bandwidth, and I don't think there is a real need for it, since you can view your inventory anyway.
OK, thanks for that. I understand about the print option. I'll take that bit out and add the general window menu bit suggested by Mar©.

Share this post


Link to post
Share on other sites

Actually I was very interested by this patch and see a lot of potential for it, just never got around to posting in it :D

As for print options and bandwidth issues, what about things like the counters window? I would really like to see a context menu there, print off how many times I've kill PKAnt_Queen or how many millions of bl for an easy copy/paste to PM or channel. Same with pretty much any of the stats windows. And since this is something that is stored in the /.elc/ directory, could it be done in a way that uses no bandwidth?

Share this post


Link to post
Share on other sites

I've committed a patch to add a generic context menu to all windows with title bars. Right-click the title bar to open. This provides most of the suggested functions. I've also extended this menu for the items window to include options to change the items window size and the "Open On Drop" option. The new options are saved in the el.cfg file. May be we can extend these menus in the future and also decorate the title bars as suggested.

 

It can't, since the client needs to ask the server for the items names.
If I understand what SinS is asking correctly, all the required counters information is known client side. In fact, I've previously written a simple python script to list the counters file contents.

Share this post


Link to post
Share on other sites
[snip]

If I understand what SinS is asking correctly, all the required counters information is known client side. In fact, I've previously written a simple python script to list the counters file contents.

Maybe SinS can clarify what she wants.

I think bluap has it ;) But to clarify, say for example you are on the Counters tab of the statistics window and have the alchemy button open. Then a print to console command would put everything listed on that page, including session made and total made into your console. That way you could easily copy from your console and paste to chat, to show off how many EFE you've made this session, or how many HE's you've made since you started the game. Or for kills button, how many times you've killed PKAnt_22 :)

 

As well for the session tab of the statistics window, I think it would also be useful. You could copy and paste your experience for a given time and your session time into your notepad, to keep track of what gives the best experience at your levels. Or just to plain show off how much experience you made on Sun_Tzu day :closedeyes:

 

The formatting of the console messages could be just a simple tab or space separated log.

Health Essence					1024				  5380
Matter Essence					   0				  5803
Fire Essence						 0				  3032
Iron Bar							 0				   303
etc...

But that's how I view it as working, and is of course open to interpretation or improvement :)

Share this post


Link to post
Share on other sites

just a small glitch with the small inventory window.

 

Those messages like "you are hungry ...." which are shown in the inventory and the manufacture window use the wrong window size in the manu window. It's word wrapped like in the much smaller inventory window.

Edited by ago

Share this post


Link to post
Share on other sites
just a small glitch with the small inventory window.

Those messages like "you are hungry ...." which are shown in the inventory and the manufacture window use the wrong window size in the manu window. It's word wrapped like in the much smaller inventory window.

Darn, didn't notice that. I fix it later. Thanks for spotting this. ;)

Share this post


Link to post
Share on other sites
Wonderful patch :P

 

Can we have a switchable size for the mix window too?

Rather than reducing the size of items, which are already in the "small" version, I would suggest getting rid of rows of empty slots (dynamically, based on how many mixable items one has in inventory). This would reduce the height of the window and save considerable screen real estate for the common case of mass-production (when one has only needed ingredients in inv to maximize EMU and minimize storage transfers), and still allow good visibility and access to all slots for the rarer case when one has more than 12 reagents in inv. Also, this would require no change to the design of other elements in the window.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×