From 61074c6b242876a05ed926e960e062ea20d0412d Mon Sep 17 00:00:00 2001 From: harry Date: Fri, 25 Apr 2025 16:16:44 +0100 Subject: [PATCH] scales the statusbar correctly according to monitor scale (#90796) ## About The Pull Request the statusbar wasn't resizing like the rest of the ui now does ## Why It's Good For The Game it does that now, which is neat 4k 200% scale before: ![d9Keu55RLONuy4rw@2x](https://github.com/user-attachments/assets/15640fd0-f1aa-441e-b34f-ecae43d7d016) after: ![sfYXv5hzIqjqTCTH@2x](https://github.com/user-attachments/assets/f6e5e8b9-2de4-4db4-b185-c7b15f1b9fba) 1920x1200 100% scale before: ![SHMbuQ5PQqyF5qHA@2x](https://github.com/user-attachments/assets/dad012ab-3bca-4307-b9b0-80ea862135a8) after: ![BYMNAvY00lec0qir@2x](https://github.com/user-attachments/assets/0bfb8ff6-e2b4-4c34-8c22-e74ab5d65953) ## Changelog :cl: qol: the statusbar at the bottom left now properly scales with your display /:cl: --------- Co-authored-by: harryob <55142896+harryob@users.noreply.github.com> --- interface/skin.dmf | 8 ++++---- tgui/packages/tgui-panel/settings/scaling.ts | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/interface/skin.dmf b/interface/skin.dmf index d7d2ba0d858..20bd6d4a496 100644 --- a/interface/skin.dmf +++ b/interface/skin.dmf @@ -127,10 +127,10 @@ window "mapwindow" style = ".center { text-align: center; } .maptext { font-family: 'Grand9K Pixel'; font-size: 6pt; -dm-text-outline: 1px black; color: white; line-height: 1.0; } .command_headset { font-weight: bold; } .context { font-family: 'Pixellari'; font-size: 12pt; -dm-text-outline: 1px black; } .subcontext { font-family: 'TinyUnicode'; font-size: 12pt; line-height: 0.75; } .small { font-family: 'Spess Font'; font-size: 6pt; line-height: 1.4; } .big { font-family: 'Pixellari'; font-size: 12pt; } .reallybig { font-size: 12pt; } .extremelybig { font-size: 12pt; } .greentext { color: #00FF00; font-size: 6pt; } .redtext { color: #FF0000; font-size: 6pt; } .clown { color: #FF69BF; font-weight: bold; } .his_grace { color: #15D512; } .hypnophrase { color: #0d0d0d; font-weight: bold; } .yell { font-weight: bold; } .italics { font-family: 'Spess Font'; font-size: 6pt; line-height: 1.4; }" elem "status_bar" type = LABEL - pos = 0,464 - size = 280x16 - anchor1 = 0,100 - anchor2 = -1,-1 + pos = 0,470 + size = 128x10 + anchor1 = 0,99 + anchor2 = 20,100 text-color = #ffffff background-color = #222222 border = line diff --git a/tgui/packages/tgui-panel/settings/scaling.ts b/tgui/packages/tgui-panel/settings/scaling.ts index 3c6b93cdba9..bd1b5250012 100644 --- a/tgui/packages/tgui-panel/settings/scaling.ts +++ b/tgui/packages/tgui-panel/settings/scaling.ts @@ -11,6 +11,7 @@ const ELEMENTS_TO_ADJUST = [ 'inputbuttons.saybutton', 'inputbuttons.mebutton', 'inputbuttons.oocbutton', + 'mapwindow.status_bar', ]; const DEFAULT_BUTTON_FONT_SIZE = 4;