Vantha Posted October 7 Report Share Posted October 7 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 "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: Reveal hidden contents "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? 4 Quote Link to comment Share on other sites More sharing options...
Vantha Posted October 9 Author Report Share Posted October 9 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 1 Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted October 9 Report Share Posted October 9 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. Quote Link to comment Share on other sites More sharing options...
Vantha Posted October 9 Author Report Share Posted October 9 On 09/10/2024 at 11:56 AM, Lion.Kanzen said: 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. Expand Sorry, what do you mean? Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted October 9 Report Share Posted October 9 (edited) 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 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 October 9 by Lion.Kanzen Quote Link to comment Share on other sites More sharing options...
Vantha Posted October 9 Author Report Share Posted October 9 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. 1 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted October 9 Report Share Posted October 9 We reeeeeeally need scrollable elements like this. Needed it for a long time. 2 Quote Link to comment Share on other sites More sharing options...
trompetin17 Posted October 9 Report Share Posted October 9 Scrollable containers? 2 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted October 10 Report Share Posted October 10 On 09/10/2024 at 9:57 PM, trompetin17 said: Scrollable containers? Expand Yeah, basically we can currently only have scrollbars for things with plain text, but not with interactive objects, etc. 1 Quote Link to comment Share on other sites More sharing options...
Vantha Posted October 10 Author Report Share Posted October 10 On 09/10/2024 at 7:31 PM, wowgetoffyourcellphone said: We reeeeeeally need scrollable elements like this. Needed it for a long time. Expand Yes, absolutely. That would be awesome. Lists and ordered lists can also have scrollbars (and are interactive) but that's just not the same. Quote Link to comment Share on other sites More sharing options...
trompetin17 Posted October 10 Report Share Posted October 10 Ok im going to create a vertical scrollable container, that clip the content. I need this feature for my atlas in game. 2 3 Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted October 10 Report Share Posted October 10 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. Quote Link to comment Share on other sites More sharing options...
trompetin17 Posted October 11 Report Share Posted October 11 WIP 2 1 Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted October 11 Report Share Posted October 11 On 11/10/2024 at 3:39 PM, trompetin17 said: WIP Expand You have to separate it a little. Quote Link to comment Share on other sites More sharing options...
trompetin17 Posted October 11 Report Share Posted October 11 On 11/10/2024 at 4:09 PM, Lion.Kanzen said: You have to separate it a little. Expand Sure : Im still working on it but at least Im clipping and now need to validate all objects "move" when you scroll 1 Quote Link to comment Share on other sites More sharing options...
trompetin17 Posted October 13 Report Share Posted October 13 I would like to share more progress No Scroll need it When need Vertical Scroll Scrolling what about the js code? 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 2 2 Quote Link to comment Share on other sites More sharing options...
hyperion Posted October 13 Report Share Posted October 13 Nice to see some toolkit love dropdowns are rendered behind other items 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. The only other thing I noticed is scrolling with mouse wheel when placing the courser anywhere in the scrollpanel isn't implemented yet. 3 Quote Link to comment Share on other sites More sharing options...
trompetin17 Posted October 15 Report Share Posted October 15 Dropdown issue was fixed, now im working on Horizontal Scrolling, still WIP but working as fast as i can 2 2 Quote Link to comment Share on other sites More sharing options...
trompetin17 Posted October 16 Report Share Posted October 16 WIP Progress Horizontal and Vertical Scroll enable Partially Draw Object Dropwdown work in partially draw with tooltips Both scrolls 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) 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 3 1 Quote Link to comment Share on other sites More sharing options...
trompetin17 Posted October 17 Report Share Posted October 17 Ok all functionality was added now Im waitintg for reviews and some more testing from different people, so if you are able to test and give me feedback would be great https://gitea.wildfiregames.com/0ad/0ad/pulls/7118 2 2 Quote Link to comment Share on other sites More sharing options...
Vantha Posted October 18 Author Report Share Posted October 18 @trompetin17Very cool! I've been wanting this for a long time. It will be really useful for the encyclopedia page. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.