Enhanced Client - Main Menu is off center

looploop Posts: 401
1. Press escape to activate Main Menu
2. Observe the menu is slightly off center (too far to the right)


Comments

  • YoshiYoshi Posts: 3,322
    "how is this a bug? they can put where they want no?"
    Posts on this account have been pre filtered from personal comment or opinion in an effort to suppress conservative views in order to protect the reader.
  • Lord_FrodoLord_Frodo Posts: 2,425
    Maybe they did an offset so it does not cover you up.
  • Arnold7Arnold7 Posts: 1,426
    Believe the left side of the box lines up with the center of the page or very close to it.  
  • ForeverFunForeverFun Posts: 902
    edited May 2023
    Indeed, the left edge of the dialog box is centered in the middle of the player tile.
    loop, if you want the middle of the dialog box to center over the middle of the player, then you can modify the EC UI lua code.

    If somebody from broadsword is actively monitoring/managing this forum, this is a thread they could probably close "Won't fix / by design".

  • YoshiYoshi Posts: 3,322
    "can you write the change for him before someone close at least?"
    Posts on this account have been pre filtered from personal comment or opinion in an effort to suppress conservative views in order to protect the reader.
  • Arroth_ThaielArroth_Thaiel Posts: 1,061
    mainmenuwindow.lua

    line 47
    WindowAddAnchor("MainMenuWindow", "center", "ResizeWindow", "center", 100, 0)

    change to
    WindowAddAnchor("MainMenuWindow", "center", "ResizeWindow", "center", 0, 0)

    No idea why it's offset by 100 units as default.
    -Arroth
  • Arnold7Arnold7 Posts: 1,426
    Believe it’s left justified.  Not familiar with this software but when I used to insert things like that in documents you could left, center or right justify graphic boxes.
  • looploop Posts: 401
    Thanks, all. I'm very familiar with how to mod the EC, but it seems the design of the templates is such that everything is off center -- the titles of the window in the frame, even the elements of the login screen...

    In this case, the menu has some transparency so you can see yourself regardless of its position. It's interesting that the anchor is done programmatically in the onInitialize hook when it could have been done in the XML, and that the offset is essentially arbitrary.
Sign In or Register to comment.