Romania
Joined: Apr 24, 2014
Post Count: 627
Status:
Offline
Re: Generate roof plugin
Looks OK! Thanks for the effort! Thanks also for the hints with the insets. I'll try it tomorrow on my own variant and for the most common LaFs. Probably I will publish a new version. Thanks again!
---------------------------------------- A computer program does what you tell it to do, not what you want it to do. Murphy's Law When all else fails, read the instructions. Murphy's Law If you don't like "AS IS", DIY. Dorin's law
Romania
Joined: Apr 24, 2014
Post Count: 627
Status:
Offline
Re: Generate roof plugin
As I promises I've test it with your settings. That's what the majority of users (common desktops or laptops) will see: Considering that: 1. Our tastes differ when it comes to colors; 2. It's difficult (for me) to make the plugin highly customizable for all kind of particular users. 3. I'm interested more in the functionality of the plugin than how it look under many different circumstances. I suggest you to make and share your plugin variant (let's say 4.6.DMA or 4.6.DARK or whatever) dedicated for peoples like you with huge monitor(s) and a dark theme installed. You've started already and it is a good start. Unfortunately, you'll have to maintain it. You could post it in the same place with mine to be more easy to find.
---------------------------------------- A computer program does what you tell it to do, not what you want it to do. Murphy's Law When all else fails, read the instructions. Murphy's Law If you don't like "AS IS", DIY. Dorin's law
GERMANY | POLAND
Joined: Jun 8, 2024
Post Count: 25
Status:
Offline
Re: Generate roof plugin
Hi Dorin, tank you for testing. I've seen it that way too. I'm still learning. The settings of insets are ok for scaling 2, but not for scaling 1. I have seen elsewhere in the code of SH3D and in the plugin "Generate Stairs" how to make the insets dynamic. I'm not doing a separate version, either it's running as it should or I'm not releasing anything. I'll get back to you when I've tested it for both scales.
in the bash file for SH3D. You need to test only on default, the Nimbus is optional. The axes is there:
roofPreview = new ModelPreviewComponent(true, true, true, true );
at 174 on GenrateRoofPluginView v.4.6
To have a more versatile UI for a plugin we need: 1. to have the necesary informations BEFORE the start of plugin or the UI. Something like this:
for (UIManager.LookAndFeelInfo laf : UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(laf.getName())) { UIManager.setLookAndFeel(laf.getClassName()); //UIManager.getLookAndFeelDefaults().put("Panel.background", Color.white); //UIManager.getLookAndFeelDefaults().put("Button.contentMargins", new InsetsUIResource(0,0,0,0)); } }
And probably more. 2. To pack the plugin with all sizes(16, 32, 64) of icons 3. To put cases everywhere it need to use it.
---------------------------------------- A computer program does what you tell it to do, not what you want it to do. Murphy's Law When all else fails, read the instructions. Murphy's Law If you don't like "AS IS", DIY. Dorin's law
Romania
Joined: Apr 24, 2014
Post Count: 627
Status:
Offline
Re: Generate roof plugin
I'm not doing a separate version, either it's running as it should
First you have to analyze if it worth. In my case there is 5 + ~4 people which really appreciate it. In your case (dark theme) I've countered 3~4. Personally I do it for my own pleasure. I have already a roof over head and I don't intend to make another(not in this life).
The axes came from SH3D. For me I've adopted another approach: I know you don't like colors but... I don't find another solution
---------------------------------------- A computer program does what you tell it to do, not what you want it to do. Murphy's Law When all else fails, read the instructions. Murphy's Law If you don't like "AS IS", DIY. Dorin's law
Romania
Joined: Apr 24, 2014
Post Count: 627
Status:
Offline
Re: Generate roof plugin
There are (IMHO) two different things: 1. The roof projection which is the base room surface. 2. The roof surface which means (at least to me) the sum of all the faces of the roof surface. This could be really useful. Probably a label with the total area AND a label with the sum of the selected roof faces. I'll see. I need to learn how to calculate the area of the 3D polygon first. Still a "Happy New Year!"
---------------------------------------- A computer program does what you tell it to do, not what you want it to do. Murphy's Law When all else fails, read the instructions. Murphy's Law If you don't like "AS IS", DIY. Dorin's law