NeotokyoRebuild / neo

NEOTOKYO Rebuild - Source SDK 2013 mod of NEOTOKYO
Other
11 stars 9 forks source link

[BUG] MOTD/TextWindow GUI look broken #382

Open nullsystem opened 2 weeks ago

nullsystem commented 2 weeks ago

Build Info

20240619_d90900f (master-d90900fa9c0e22799de3749509b0bce228fd579c)

Description

After doing hud_reloadscheme, the MOTD/TextWindow looks to not be centered and looks broken. This is actually loading the "actual" hud not the initial hud. While this is presumably taken straight from OG:NT's TextWindow.res file, it does not fit/look right for NT;RE and need to change to at least be closer to HL2's default MOTD/TextWindow styling.

To Reproduce

Initial MOTD:

  1. Open game -> hud_reloadscheme -> Create Server -> Start
  2. See the MOTD, although contents don't work at the moment without https://github.com/NeotokyoRebuild/neo/pull/368 and some MOTD related changes

Using showinfo:

  1. Open game -> Create Server -> Start -> hud_reloadscheme
  2. Just spawn in
  3. Go to console and put in: showinfo MOTD "This is title" "Example text" and should see title and description as usual

Expected behavior

The GUI styled in the center, OK button + MOTD description centered within the background area. Does not look "broken".

Actual behavior

The GUI styled anchored to the top-left corner and the OK button mis-aligned out of the background area. Looks "broken".

Operating System

Version/Distro

Arch Linux

Machine's CPU

No response

Machine's GPU

No response

GPU's driver

No response

Build's compiler

No response

Additional context and Screenshots

Screenshot of the startup MOTD/TextWindow as is on the master branch: 2024-06-19T213017_screen

Screenshot of TextWindow on GH-367_ChangeToEditablePanel branch, but this changes back to the broken hud after hud_reloadscheme: 2024-06-19T214925_screen