Skip to content

Support options in browse#2620

Open
PowerfulBacon wants to merge 4 commits into
OpenDreamProject:masterfrom
PowerfulBacon:browse-options
Open

Support options in browse#2620
PowerfulBacon wants to merge 4 commits into
OpenDreamProject:masterfrom
PowerfulBacon:browse-options

Conversation

@PowerfulBacon

@PowerfulBacon PowerfulBacon commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Implements support for options being passed through to browse.

The scope of this change is currently quite limited and won't have any practical effect because there is little support for most of the window descriptors, but this will be necessary for TGUI to work properly (as options are passed through in browse instead of through winset).

I tested this by modifying the options of TGUI to pass through the title of 'hello world', as title is a supported parameter:

image image

This does not work with the same code on master:

image

Prior to this change, the only supported option was size.

Support for explicitly declared file in browse has also been added.

@boring-cyborg boring-cyborg Bot added Client Involves the OpenDream client Runtime Involves the OpenDream server/runtime labels Jun 7, 2026
@github-actions github-actions Bot added the size/L label Jun 7, 2026
Comment thread OpenDreamClient/Interface/BrowsePopup.cs Fixed
Comment thread OpenDreamClient/Interface/DreamInterfaceManager.cs Fixed
Comment thread OpenDreamClient/Interface/DreamInterfaceManager.cs Fixed
Comment thread OpenDreamClient/Interface/DreamInterfaceManager.cs Fixed
Comment thread OpenDreamClient/Interface/DreamInterfaceManager.cs Fixed
Comment thread OpenDreamClient/Interface/DreamInterfaceManager.cs Fixed
Comment thread OpenDreamClient/Interface/DreamInterfaceManager.cs Fixed
Comment thread OpenDreamClient/Interface/DreamInterfaceManager.cs Fixed
Comment thread OpenDreamClient/Interface/DreamInterfaceManager.cs Fixed
Comment thread OpenDreamClient/Interface/DreamInterfaceManager.cs Fixed
Comment thread OpenDreamClient/Interface/DreamInterfaceManager.cs Fixed
Comment thread OpenDreamClient/Interface/DreamInterfaceManager.cs Fixed

string htmlFileName;
if (options?.TryGetValue("file", out var fileName) ?? false) {
htmlFileName = fileName;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to remove the extension from the filename, as we add .html ourselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Client Involves the OpenDream client Runtime Involves the OpenDream server/runtime size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants