UI Scaling

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

UI Scaling

Postby speed2 » 16 Feb 2020, 15:32

1) Join the 4k master race - Checked
https://puu.sh/Fbe8E/72a2b7c6ab.jpg
Spoiler: show
Image


2) Complain about UI scaling - Checked
https://puu.sh/Fbe2y/e4fb36a44e.jpg
Spoiler: show
Image


3) Proof of concept - UI scaling to 1.5 - Checked
https://puu.sh/Fbe1l/4c9a2db1a4.jpg
Spoiler: show
Image


4) Scale lobby UI - Checked
https://puu.sh/Fc2Bm/7f32dded31.jpg
Spoiler: show
Image



5) Scale game UI - Checked
https://puu.sh/Fc22z/fc890234f4.jpg
Spoiler: show
Image


6) Video preview - Checked
https://www.youtube.com/watch?v=GElP0xQtYgo


7) ???

8) PROFIT !!!

Code:
https://github.com/FAForever/fa/pull/2994
Very much WIP, only a preview for those who can't wait
Spoiler: show
and those who can git
Last edited by speed2 on 21 Feb 2020, 20:59, edited 4 times in total.
User avatar
speed2
Contributor
 
Posts: 3189
Joined: 05 Jan 2013, 15:11
Has liked: 636 times
Been liked: 1119 times
FAF User Name: speed2

Re: UI Scaling

Postby PhilipJFry » 16 Feb 2020, 19:23

how did you do it?
cats>dogs
post logs
User avatar
PhilipJFry
Supreme Commander
 
Posts: 2635
Joined: 23 Mar 2016, 21:16
Location: Austria
Has liked: 232 times
Been liked: 348 times
FAF User Name: PhilipJFry

Re: UI Scaling

Postby speed2 » 16 Feb 2020, 22:00

PhilipJFry wrote:how did you do it?

Set up global scale multiplier and started rewriting the UI to support it. The main menu had just couple of easy elements so I picked it to show that scaling is possible.
User avatar
speed2
Contributor
 
Posts: 3189
Joined: 05 Jan 2013, 15:11
Has liked: 636 times
Been liked: 1119 times
FAF User Name: speed2

Re: UI Scaling

Postby Viba » 16 Feb 2020, 22:30

How often are you in the main menu when using faf? :lol:

Kidding, nice proof of concept to bring the game to the age of 2k20.
Viba
Councillor - Moderation
 
Posts: 746
Joined: 22 Jan 2015, 21:42
Has liked: 144 times
Been liked: 224 times
FAF User Name: !smurfcheck Viba

Re: UI Scaling

Postby speed2 » 17 Feb 2020, 00:54

Last edited by speed2 on 17 Feb 2020, 23:08, edited 1 time in total.
User avatar
speed2
Contributor
 
Posts: 3189
Joined: 05 Jan 2013, 15:11
Has liked: 636 times
Been liked: 1119 times
FAF User Name: speed2

Re: UI Scaling

Postby Little Miss Murder » 17 Feb 2020, 07:21

Nice work. The spawn positions and mex markers are all over the place though. Can it be fixed?
Little Miss Murder
Avatar-of-War
 
Posts: 229
Joined: 30 Mar 2019, 12:20
Has liked: 132 times
Been liked: 29 times
FAF User Name: Little Miss Murder

Re: UI Scaling

Postby Sir Prize » 17 Feb 2020, 07:45

Just looks like the spawn and resource markers have have been rewritten to work with the multiplier and the image for the map hasn't yet, can't imagine that will be too hard.

Can't wait to see how you go with the ingame UI speedy <3
User avatar
Sir Prize
Evaluator
 
Posts: 573
Joined: 24 May 2014, 10:29
Has liked: 77 times
Been liked: 91 times
FAF User Name: Sir-Prize

Re: UI Scaling

Postby speed2 » 17 Feb 2020, 08:39

speed2 wrote:Lobby almost done

Little Miss Murder wrote:Nice work. The spawn positions and mex markers are all over the place though. Can it be fixed?

speed2 wrote:Lobby almost done

speed2 wrote:Lobby almost done

Image

As expected some of the UI elements could use a better code, so after some refactor it will be possible to scale them without unexpected results.
User avatar
speed2
Contributor
 
Posts: 3189
Joined: 05 Jan 2013, 15:11
Has liked: 636 times
Been liked: 1119 times
FAF User Name: speed2

Re: UI Scaling

Postby Morax » 17 Feb 2020, 17:32

Finally, don't have to tell people why I barely pay attention to lobby chat because I can actually read it now.
Maps and Modifications Councilor

M&M Discord Channel

Come join us and help create content with the artists of FAF.
User avatar
Morax
Councillor - Maps and Mods
 
Posts: 2865
Joined: 25 Jul 2014, 18:00
Has liked: 1167 times
Been liked: 662 times
FAF User Name: Morax

Re: UI Scaling

Postby speed2 » 17 Feb 2020, 20:52

User avatar
speed2
Contributor
 
Posts: 3189
Joined: 05 Jan 2013, 15:11
Has liked: 636 times
Been liked: 1119 times
FAF User Name: speed2

Next

Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest