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:

Spoiler

  "General": [
    "Player name (single-player)",
    "Player name (multiplayer)",
    "Background pause",
    "Enable welcome screen",
    "FPS overlay",
    "Real time overlay",
    "Game time overlay",
    "Ceasefire time overlay",
    "Chat timestamp",
    "Naming of entities."
  ],
  "Game Session": [
    "Wounded unit health",
    "Batch training size",
    "Scroll batch increment ratio",
    "Flare display duration",
    "Minimap icons",
    "Chat notification attack",
    "Chat notification tribute",
    "Chat notification barter",
    "Chat notification phase",
    "Attack range visualization",
    "Aura range visualization",
    "Heal range visualization",
    "Rank icon above status bar",
    "Experience status bar",
    "Detailed tooltips",
    "Sort resources and population tooltip",
    "Diplomacy colors: self",
    "Diplomacy colors: ally",
    "Diplomacy colors: neutral",
    "Diplomacy colors: enemy",
    "Snap to edges",
    "Control group membership",
    "Formation control",
    "Battalion-style formations"
  ]

 

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

Spoiler

  "General": [
    "Player name (single-player)",
    "Player name (multiplayer)",
    "Background pause",
    "Enable welcome screen"
  ],
  "Gameplay": [
    "Wounded unit health",
    "Batch training size",
    "Scroll batch increment ratio",
    "Snap to edges",
    "Control group membership",
    "Formation control",
    "Battalion-style formations"
  ],
"Display": [
    "Flare display duration",
    "Minimap icons",
    "Attack range visualization",
    "Aura range visualization",
    "Heal range visualization",
    "Rank icon above status bar",
    "Experience status bar",
    "Detailed tooltips",
    "Sort resources and population tooltip",
    "Diplomacy colors: self",
    "Diplomacy colors: ally",
    "Diplomacy colors: neutral",
    "Diplomacy colors: enemy",
    "FPS overlay",
    "Real time overlay",
    "Game time overlay",
    "Ceasefire time overlay",
    "Naming of entities"
]
"Chat & Notifications": [
    "Chat timestamp",
    "Chat notification attack",
    "Chat notification tribute",
    "Chat notification barter",
    "Chat notification phase"
]

 


Any opinions on this matter?

  • Like 4
Link to comment
Share on other sites

1 hour ago, 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

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

53 minutes ago, Vantha said:

 

Sorry, what do you mean?

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:

Spoiler

screenshot0007.thumb.png.5b65d438613294c1fb4a65b8f03bd115.png

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

Spoiler

screenshot0008.thumb.png.f1a6203a504753cd160ea4ac7063eda0.png

 

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

13 hours ago, wowgetoffyourcellphone said:

We reeeeeeally need scrollable elements like this. Needed it for a long time.

Yes, absolutely. That would be awesome.

 

Lists and ordered lists can also have scrollbars (and are interactive) but that's just not the same.

Link to comment
Share on other sites

1 hour ago, trompetin17 said:

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

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...