Hello, I hope somebody is able to point out where I am going wrong.
I have a skin that the text will in some cases exceed the bottom of the background image. I was trying to use Container=TextMask to stop it from doing this, but then all text just disappeared. Looking at examples of this masking text, I am failing to see how mine isn't working. I am also not heart set on this method, so if there is a better way to do this. As you can see from the attached images, the spacing will change pending on file name length (2 lines ea file is no problem and I would just cap it at that, but some files I may need to see the end characters (ie.v2, v3, etc))
Slotter In wrote: โMay 22nd, 2021, 11:57 pm
Hello, I hope somebody is able to point out where I am going wrong.
I have a skin that the text will in some cases exceed the bottom of the background image. I was trying to use Container=TextMask to stop it from doing this, but then all text just disappeared. Looking at examples of this masking text, I am failing to see how mine isn't working. I am also not heart set on this method, so if there is a better way to do this. As you can see from the attached images, the spacing will change pending on file name length (2 lines ea file is no problem and I would just cap it at that, but some files I may need to see the end characters (ie.v2, v3, etc))
I was able to confirm the image used does highlight the area that text is allowed. The whole skin is hidden until I mouse over, and the skin works perfectly until I add Container=TextMask. I tested it with a smaller image, which if working should only hide part of the text but all disappeared again.
I was able to confirm the image used does highlight the area that text is allowed. The whole skin is hidden until I mouse over, and the skin works perfectly until I add Container=TextMask. I tested it with a smaller image, which if working should only hide part of the text but all disappeared again.
I hope you haven't but you literally did not put in #background width# and #background height# did you?
For further help please post the whole skin here. It's hard to tell where you went wrong.
Please ignore if it looks a little messy. I Frankensteined some other skins I had to make this, and was to lazy to clean it up since it worked.
Edit: I am not opposed to just stretching the background as needed either...but something tells me that would be a lot harder to integrate. Which is why I been trying to do this instead.
Slotter In wrote: โMay 23rd, 2021, 4:15 am
lol no, i did change the H and W
Please ignore if it looks a little messy. I Frankensteined some other skins I had to make this, and was to lazy to clean it up since it worked.
Edit: I am not opposed to just stretching the background as needed either...but something tells me that would be a lot harder to integrate. Which is why I been trying to do this instead.
There is a reason I asked for the skin and not the code. This is way too long to look at and decipher in an unfamiliar interface. Anyway let's see what can we do.
Edit: I can not get a clue about what is going on. Please either make a zip file or a rmskin file of the skin and attach it to the above post.
Oh! I am sorry, I misread/understood what you were asking for.
I have never made a rmskin before, I hope this is right
Edit: Oh no! I was so focused on not having the text show past the background that I haven't realized the larger problem! If I hide the text, I won't be able to open the file! WoW...I can't believe I really had such a massive oversight! I guess I have 2 options...easy, and just cap how many lines a file's name can be...or hard, and have the background stretch with the extended text. Guess I will just add H= to cap the number of lines per file name for now, and work on the other over time.
I have seen bar skins like CPU usage doing this. They have an image for the bar full and it adjusts it as the usage changes. Maybe I can adapt that, but the pain would be to have it do so in accordance with the file name length changes.
You do not have the required permissions to view the files attached to this post.
Slotter In wrote: โMay 23rd, 2021, 9:16 am
Oh! I am sorry, I misread/understood what you were asking for.
I have never made a rmskin before, I hope this is right
Edit: Oh no! I was so focused on not having the text show past the background that I haven't realized the larger problem! If I hide the text, I won't be able to open the file! WoW...I can't believe I really had such a massive oversight! I guess I have 2 options...easy, and just cap how many lines a file's name can be...or hard, and have the background stretch with the extended text. Guess I will just add H= to cap the number of lines per file name for now, and work on the other over time.
I have seen bar skins like CPU usage doing this. They have an image for the bar full and it adjusts it as the usage changes. Maybe I can adapt that, but the pain would be to have it do so in accordance with the file name length changes.
You can just scroll you know. But let me check first.
Slotter In wrote: โMay 23rd, 2021, 9:16 am
Oh! I am sorry, I misread/understood what you were asking for.
I have never made a rmskin before, I hope this is right
Edit: Oh no! I was so focused on not having the text show past the background that I haven't realized the larger problem! If I hide the text, I won't be able to open the file! WoW...I can't believe I really had such a massive oversight! I guess I have 2 options...easy, and just cap how many lines a file's name can be...or hard, and have the background stretch with the extended text. Guess I will just add H= to cap the number of lines per file name for now, and work on the other over time.
I have seen bar skins like CPU usage doing this. They have an image for the bar full and it adjusts it as the usage changes. Maybe I can adapt that, but the pain would be to have it do so in accordance with the file name length changes.
Thank you for your patience and here we go: [Click to animate]
2021-05-24 00-16-02_Trim.gif
Skin:
FileFolder_1.3.rmskin
Where you went wrong:
You only contained the text inside the image. When meters are in a container they are relative to each other. Or simply the meters inside a container are only relative to meters that are inside that container and in the order they are inserted. They don't give a shit about meters outside of that container. So when you used relative positioning in file names you expected them to be relative to the icons, but that didn't happen cause icons were outside the container.
Hope I made myself clear.
And I optimized your code a bit. I hope you can easily follow.
And I used a shape meter for background instead of image for dynamic height.
You do not have the required permissions to view the files attached to this post.
WoW! I never expected you would put so much work into cleaning it up! Thank you so much! It looks amazing and even the small details like the back arrow