Adventure Game Studio

AGS Development => Editor Development => Topic started by: Dave Gilbert on Tue 19/03/2024 21:03:28

Title: Feature request: room names on tabs!
Post by: Dave Gilbert on Tue 19/03/2024 21:03:28
Hi powers that be. I was wondering if it was possible to have the room name included on the room tabs the same way dialogs are? For example:

(http://www.wadjeteyegames.com/temp/roomtab.png)

As you can see, the dialog tab says "Dialog: dLocker" while the room tab just says "room26".

(http://www.wadjeteyegames.com/temp/roomname.png)

And as you can see here, the room has a name associated with it called "Jump room".

What I'm hoping for is that the tab could say "Room: Jump room" instead of "room26." I often have a lot of room tabs open and it's hard to tell which is the one I need. :)
Title: Re: Feature request: room names on tabs!
Post by: Crimson Wizard on Tue 19/03/2024 21:34:58
Note we already have a suggestion opened on github:
https://github.com/adventuregamestudio/ags/issues/1066
Title: Re: Feature request: room names on tabs!
Post by: Dave Gilbert on Tue 19/03/2024 22:51:36
Oh! Excellent.  :grin:
Title: Re: Feature request: room names on tabs!
Post by: eri0o on Wed 20/03/2024 18:47:51
Made a PR in here https://github.com/adventuregamestudio/ags/pull/2360

Build for testing: https://cirrus-ci.com/task/6383809940160512

(https://private-user-images.githubusercontent.com/2244442/314620702-81927fae-0763-442f-8447-e8075d01d303.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTA5NjA1MzcsIm5iZiI6MTcxMDk2MDIzNywicGF0aCI6Ii8yMjQ0NDQyLzMxNDYyMDcwMi04MTkyN2ZhZS0wNzYzLTQ0MmYtODQ0Ny1lODA3NWQwMWQzMDMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDMyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDAzMjBUMTg0MzU3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NDU4ZDFjOGRiNDI5ZWU0N2FiMjg1NTMzNTQzMDZjODJhNzI2MGE0M2VmMGQ5MGVkMmY5NTg4OWMyYjc5MzRhMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.f0H2MW8s45heu2D_qgRh8cabiU8zbCBAGjdHGI_LT-w)

I went for the "number: description" approach. The issue also instead used "(number) description". The "Room: description" would also be a possibility. I don't know which is better.
Title: Re: Feature request: room names on tabs!
Post by: Crimson Wizard on Wed 20/03/2024 20:03:41
I wish there were a way to distinguish Room tabs from other kind of tabs, and Room and Room Script tabs between each other.
Judging by the screenshots, right now there's no way to tell whether this is a room or its script.

I'd propose something that mentions "room" word in a tab.

For a quick idea (not final):
- Room N: Description - for a room tab
- RoomN.asc: Description - for a room script tab.

Later we may also add tab icons for a quicker identification (this is a second suggestion from the original ticket).
Title: Re: Feature request: room names on tabs!
Post by: Dave Gilbert on Wed 20/03/2024 20:05:58
But while you can have infinite room script tabs open at once, only one room tab can be opened at a time, right? So it's less of an issue.
Title: Re: Feature request: room names on tabs!
Post by: Crimson Wizard on Wed 20/03/2024 20:14:07
Quote from: Dave Gilbert on Wed 20/03/2024 20:05:58But while you can have infinite room script tabs open at once, only one room tab can be opened at a time, right? So it's less of an issue.

Less or not, but it's still an issue.

Besides, there have been a feature suggestion to be able to open multiple rooms in the Editor too (maybe that's already almost possible in AGS 4).
Title: Re: Feature request: room names on tabs!
Post by: eri0o on Wed 20/03/2024 23:31:21
Erh, turns out we already set ALL icons correctly but we just don't turn on actually showing them...

(https://i.imgur.com/KYU4dsC.png)

I simply added this.mainContainer.ShowDocumentIcon = true; in the frmMain but it should be possible to put a setting in preferences too.

Quote from: Crimson Wizard on Wed 20/03/2024 20:03:41- Room N: Description - for a room tab
- RoomN.asc: Description - for a room script tab.

I can do that too, but just wanted to show that icons are very easy to set in case they are sufficient. Anyway, here's a print of the looks (but with icons)

Spoiler
(https://i.imgur.com/DR80bl4.png)
[close]

And here without icons

Spoiler
(https://i.imgur.com/4lj2HqU.png)
[close]

And a gif with a Preferences option for the icons

(https://i.imgur.com/Cz1BYBr.gif)
Title: Re: Feature request: room names on tabs!
Post by: Crimson Wizard on Thu 21/03/2024 01:39:13
Well, that looks cool.
Title: Re: Feature request: room names on tabs!
Post by: eri0o on Thu 21/03/2024 02:12:22
I am thankful for whoever went through the trouble of setting the correct icons for everything and just forgot to turn it on.  (laugh)

I think the icons will look nicer in ags4 with it's different pane tabs.
Title: Re: Feature request: room names on tabs!
Post by: Dave Gilbert on Thu 21/03/2024 14:51:20
Oh neat! I'm probably going to stick with 3.6 for Old Skies, but it's nice to know this is waiting for me on my next project. :)
Title: Re: Feature request: room names on tabs!
Post by: eri0o on Thu 28/03/2024 10:15:12
This is in and should be in the 3.6.2 release - it should be a small release with some important refactors on the back. I think it's probably time to mark 3.6.1 as the new stable.