-
April 6th, 2021, 15:05 #1
- Join Date
- Apr 2009
- Posts
- 48
Override background with a color?
Hey all - I'm looking for a way to override the background of a theme with just a flat color. I had an extension that worked in classic, but it doesn't seem to work in Unity.
Is there an easy way to define the desktop frame to do this, or do I need to create a black PNG and repeat it?
Thanks!
-
April 6th, 2021, 16:00 #2
You'd need to override the colour that's in the current theme you are using - or write and extension to do so (since in most cases you won't be able to access the theme).
If there is something that you would like to see in Fantasy Grounds that isn't currently part of the software or if there is something you think would improve a ruleset then add your idea here https://www.fantasygrounds.com/featu...rerequests.php
-
April 6th, 2021, 16:02 #3
- Join Date
- Apr 2009
- Posts
- 48
Yes exactly, I'm just trying to figure out the exact syntax do do it since the extension I wrote for Classic didn't port. Anyone have a good link to helpful documentation?
-
April 6th, 2021, 16:19 #4
- Join Date
- Apr 2009
- Posts
- 48
Resolved. I cracked open the SWADE ruleset and could find no reference to background color, so I created an extension that slapped a small black png up on the screen.
-
April 6th, 2021, 23:54 #5
Hi Debinani - improve the performance a little and use a big square.
-
April 10th, 2021, 01:14 #6
What happens if you set the background image to zero size?
Classic & Unity Ultimate License Holder
-
April 10th, 2021, 03:27 #7
What do you mean to zero size?
If you set it to 1px * 1px it will have to draw it a couple of million times to fill the screen.
-
April 10th, 2021, 15:44 #8
0px, e.g. 0,0,0,0. 1x1 is not zero.
Classic & Unity Ultimate License Holder
-
April 10th, 2021, 18:03 #9
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,561
If the image isn't big enough, I have no idea what would happen. I believe you would either get errors, a crash, or some sort of pink/blue background, or maybe see through to other objects/cameras. It's not something we test for.
Regards,
JPG
-
April 11th, 2021, 03:42 #10
I actually know the answer. I was just curious to know if just getting a plain blue background was an expected result.
I kind of accidentally discovered this when I moved a theme with a 1920x1080 background to a 2560x1440 monitor and it left a blue background surrounding the image. So then I set the image to half size and it got smaller but left a bigger blue background. So for giggles I tried a zero size and it just gave me the blue background with no image.Last edited by swbuza; April 11th, 2021 at 03:49.
Classic & Unity Ultimate License Holder
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks