gosumemory icon indicating copy to clipboard operation
gosumemory copied to clipboard

[Feature] Move Module Width/Height

Open C0D3-M4513R opened this issue 4 years ago • 1 comments

So I noticed, that for every Module, there is a Width and Hight. Those combos are Static. One Module cannot have multiple Width's and Height's (afaik). So how about removing the following properties:

overlayURL = http://localhost:24050/Simplistic
overlayWidth = 650
overlayHeight = 150

and replacing them with the following:

overlayName = Simplistic

Everything before and after would still stay the same of course. One could still reconstruct the needed URL, because we have serverip as a property. The reconstruction should just look similar to this: "http://" + serverip + "/" + overlayName (Please use format Strings in actual code!).

One could then add a config.ini file to each module, where it's height and width are stored. Something along the lines of this:

Width = 650
Height = 150

C0D3-M4513R avatar Mar 22 '21 23:03 C0D3-M4513R

Not sure about the serverip thing as it supports golang formatting (stuff like :24050) static's index.html will see a lot of changes soon so the other parts of this proposal might come as a part of that change.

l3lackShark avatar Mar 23 '21 17:03 l3lackShark