Technical-13 / HabnaPlugins

TitanBar for LOTRO
14 stars 5 forks source link

TitanBar covering only half of the screen #47

Closed whatwhaaat closed 5 years ago

whatwhaaat commented 6 years ago

I play LOTRO on a 5K iMac (5120 x 2880) in full screen mode (not windowed). The TitanBar covers only half of the screen, which makes it almost impossible to use (see screenshot attached).

titanbar
Technical-13 commented 6 years ago

I've never had the ability to play at that resolution. I'll look into it.

whatwhaaat commented 6 years ago

I don‘t think that the game actually runs in 5K, but there is no option to set the resolution for full screen mode, only for windowed mode. If I can help with some testing, just let me know.

Dromo commented 6 years ago

Main.lua screenWidth, screenHeight = Turbine.UI.Display.GetSize(); frmMain.lua TB["win"]:SetSize( screenWidth, TBHeight ); not sure there is something to do other than fix manually

Technical-13 commented 6 years ago

@whatwhaaat can you post a screenshot of your screen settings? It'll help me figure out if I can get it to adapt.

whatwhaaat commented 6 years ago

@4andreas I'm not that fluent in LUA. So far, by setting screenWidth = 5120; screenHeight = 2880; the bar now covers the full screen, but the icons (e.g. the time on the very right end of the bar) still only stretch until the centre of the screen. Probably I have to change some code in frm.Main.lua, too.

Maybe this issue also affects other plugins (like for example Palantir), but there it is not that obvious.

@Technical-13 I've attached a screenshot of the screen settings. It's in German, sorry for that.

screen shot 2018-02-09 at 19 01 02

"Bildschirmmodus" means screen mode, which is set to "Vollbild" (full screen). "Auflösung für Fenstermodus" means resolution for windowed mode. "Seitenverhältnis" means aspect ratio.

Technical-13 commented 6 years ago

Is it possible to set resolution higher than what you have it at?

whatwhaaat commented 6 years ago

As written above, it is not possible to set the full screen resolution. Only the windowed resolution can be changed. But no, it does not go higher than 2560x1440.

By changing SetPosition in if TBTop then TB["win"]:SetPosition( 0, 0 ); from frmMain.lua, I guess I found out that the full screen resolution is also "capped" at 2560. If I change SetPosition( 0, 0 ); to SetPosition( 2560, 0 );, the bar completely disappears on the right side of the screen.

Now I only need to know how to centre and stretch the bar given that the width in full screen mode is 2560px.

Dromo commented 6 years ago

which screenWidth you changes? there is one in main.lua on line 44 and one in frmMain.lua on line 328

Technical-13 commented 6 years ago

Try changing Turbine.UI.Display.GetSize() to Turbine.UI.Control.GetSize()

whatwhaaat commented 6 years ago

@Technical-13 This throws an error "Invalid member function call".

whatwhaaat commented 6 years ago

By manually setting screenWidth, screenHeight in main.lua (line 44), the bar now covers the full screen (greyish overlay), but the effective UI ends at half of the screen width (see screenshot).

titanbar_ii
whatwhaaat commented 6 years ago

Update: By setting screenWidth, screenHeight = 2560, 1440; the TitanBar seems to work. The only problem now seems to be the default "spawning location" of the different icons (e.g. time default location is somewhere near the centre of the screen instead of the very right).

Dromo commented 6 years ago

i think what happend here, was first time you loaded titanbar it loaded on half screen, the controls got loaded on their positions, saved the positions in file, so when you later overwrite the width, they show on their old saved positions. if you hit reset all settings button the time should be default on the right side.

YassinSamuels commented 5 years ago

I also have this problem. But not only with Titan panel, with more addons that have drag-ables. Playing on a Macbook pro mid 2018 15" Mac settings set to > More Space shows as 1920x1200

Technical-13 commented 5 years ago

I think the bottom line with this at this point is that the current game client's LUA API does not support wider screen resolutions. Maybe this will change if the x64 client becomes a thing, but until then there isn't much we can really do to resolve this.