lian / msfs2020-go

connect to microsoft flight simulator 2020 using golang
MIT License
388 stars 57 forks source link

I'm a total Go newb. How do I shrink the HUD font size. I can recompile with Go, but can't find where font size is defined. #67

Open mbhesket opened 3 years ago

mbhesket commented 3 years ago

I'm a total Go newb. How do I shrink the HUD font size. I can recompile with Go, but can't find where font size is defined.

ip999 commented 3 years ago

html\index.html, line 49

mbhesket commented 3 years ago

html\index.html, line 49 from "font-size: 1.5em;" to "font-size: 0.5em;" was the first thing I tried but it has no effect.

mbhesket commented 3 years ago

Not sure if I'm supposed to reply to this auto generated email. I'm new to all this. I used to be a SQL Server developer but that's the extent of my programming experience.

html\index.html, line 49 from "font-size: 1.5em;" to "font-size: 0.5em;" was the first thing I tried but it has no effect.

Mitch

On Mon, Dec 21, 2020 at 12:57 AM ip999 notifications@github.com wrote:

html\index.html, line 49

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lian/msfs2020-go/issues/67#issuecomment-748800615, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASHAVB5HGKGHGJUFVTL2Z3DSV3WUPANCNFSM4VDUSIKQ .

Georodin commented 3 years ago

@ip999 @mbhesket actually its not that simple I tried for hours getting this to work and it is not using the index.html but a hardcoded hex byte array version of the index.html within the bindata.go var _indexHtml = []byte(...) finally I got it to work, you can find my forked release here with the range slider to adjust the font size build in https://github.com/Georodin/msfs2020-go/releases/tag/v0.0.71

ip999 commented 3 years ago

Hi, It's been a while since I looked at this project to be honest, but pretty sure it was possible to just override the packed html with a local copy.

From the readme..

_change visualisation

if you want to change how the webpage looks then copy and change index.html to the same folder as vfrmap.exe and relaunch the program._