Jump to content

Rearrangements of some game options


Recommended Posts

I'm making this post to discuss potential changes to the subdivisions of the game options. The 'Game Session' category is currently full, but upcoming developments will raise the need of adding new entries to it -  which the GUI page doesn't have any more space for at the moment. The simplest solution would be to split up the category.

 

The relevant options are currently arranged like this:

  Reveal hidden contents

 

My best idea is to divide it into 'Gameplay', 'Display', and 'Chat & Notifications' and also move some stuff out of 'General'. Like this:

  Reveal hidden contents

 


Any opinions on this matter?

  • Like 4
Link to comment
Share on other sites

  On 09/10/2024 at 10:30 AM, Vantha said:

Yeah, there's not much to discuss here, I know this is somewhat of a dry topic.

Anyway, I went forward with my suggestion above. Here is the PR: https://gitea.wildfiregames.com/0ad/0ad/pulls/7099

Expand  

It would be easy to see what the current interface looks like.

I don't remember what it looks like now, but it must be full of options.

Link to comment
Share on other sites

  On 09/10/2024 at 12:55 PM, Vantha said:

 

Sorry, what do you mean?

Expand  

It's easier to show a screenshot of what the current interface looks like

Screenshot_20241009-074610.thumb.jpg.6f1d3c7f69a8c2f6403bcffc263e6ac7.jpg

This doesn't help much.

It's easier to present the issues with screenshots.

 

And secondly, in the absence of other options, no one is going to propose anything.

Edited by Lion.Kanzen
Link to comment
Share on other sites

Well, some of my (future) patches include new options that would (in the current system) belong into the 'Game Session' category. FIrst of all, this would be the flare chat notifications -> see #7041. And even disregarding those patches, the need to add new options into that category would arise eventually.

 

This is what the options dialog with the 'Game Session' category selected currently looks like:

  Reveal hidden contents

There is no free space for more options at the bottom, adding them regardless results in an overflow like this:

  Reveal hidden contents

 

The dialog has a fixed pixel size, no matter the screen resolution. Just making it larger is not an option since fixed-size GUI object mustn't be scaled past the minimum supported screen resolution. That is why I suggested to split just split up the category.

  • Like 1
Link to comment
Share on other sites

  On 10/10/2024 at 11:23 AM, trompetin17 said:

Ok im going to create a vertical scrollable container, that clip the content. I need this feature for my atlas in game.

Expand  

There might be a patch for this already, created eons ago, that could be useful. Or you may want to just start a new patch from scratch since whatever patch you find will probably need heavy rebasement. 

Link to comment
Share on other sites

I would like to share more progress :)

 

No Scroll need it

image.png

 

When need Vertical Scroll

image.png

Scrolling

image.png

 

what about the js code?

image.png

the ScrollPanel is going to support "resized" child events, "visiblity" child events, but if you need to update multiple objects you can "freeze", then update all visibility and size and finally un freeze

Missing features:

  • Horizontal Scroll
  • Tooltips is showing even if the parent isnt draw
  • Expose the ScrollPanel in the xml like Xml Tag instead of "object type"
  • Support RTL

If you would like to test and give me some feed back:

here is the code https://gitea.wildfiregames.com/trompetin17/0ad-atlas-in-game/src/branch/scrollpanel

If you would like how I implement here is the diff https://gitea.wildfiregames.com/0ad/0ad/compare/main...trompetin17/0ad-atlas-in-game:scrollpanel

thx in advance

 

  • Like 2
  • Thanks 2
Link to comment
Share on other sites

Nice to see some toolkit love :)

dropdowns are rendered behind other items

image.png

 

horizontal scrolling is missing, and we can see that there should be a way to specify the size of the scrolled panel, so items resizing themself based on parent don't end up like the following.

image.png

 

The only other thing I noticed is scrolling with mouse wheel when placing the courser anywhere in the scrollpanel isn't implemented yet.

 

  • Like 3
Link to comment
Share on other sites

WIP Progress

Horizontal and Vertical Scroll enable

Partially Draw Object

image.png

Dropwdown work in partially draw with tooltips

image.png

Both scrolls

image.png

scrollpanel also support "Min Width" / "Min Height" when you need more "internal space" without taking care about the current size of the scrollpanel (sera idea)

image.png

 

I will need more testing or more use case to validate if this is work correctly, Im still missing if im going to expose scrollpane like "scrollpanel" tag instead of "object type"

thx in advance

  • Like 3
  • Thanks 1
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...