Skip to content

Commit

Permalink
bugfix: Fixes camera consoles, real this time
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladisvell committed Dec 26, 2024
1 parent 10d1073 commit 7ce03d0
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 64 deletions.
10 changes: 10 additions & 0 deletions tgui/packages/tgui/components/ByondUi.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ const createByondUiElement = (elementId) => {
// Return a control structure
return {
render: (params) => {
/**
* Note: We unmount and render because there is currently unfixable bug with
* how cameras are rendered on first occurence. That came with TGUI 4 and
* I have no idea how to fix this correctly.
*/
logger.log(`unmounting '${id}'`);
byondUiStack[index] = null;
Byond.winset(id, {
parent: '',
});
logger.log(`rendering '${id}'`);
byondUiStack[index] = id;
Byond.winset(id, params);
Expand Down
2 changes: 1 addition & 1 deletion tgui/public/tgui-panel.bundle.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

126 changes: 63 additions & 63 deletions tgui/public/tgui.bundle.js

Large diffs are not rendered by default.

0 comments on commit 7ce03d0

Please sign in to comment.