I started working on this skin to put on all of the computers where I work but have hit a wall because of my limited coding skills. So far, I have been able to use bits and pieces of other peoples codes.
I would really like the Time/Date/Weather to always stay visible (see top picture) but to have the option of hiding and unhiding (see bottom picture) the notes for privacy by clicking the arrow.
Using some of the code from Black Apps by AskBlaster, I've been able to unhide the bottom note section after refreshing the skin but I don't know how to code it to hide them because it's not one graphic file - it's six txt files and 7 background codes.
Anyone interested in helping me figure it out?
It is currently April 27th, 2024, 7:58 am
Need help with code for hiding/showing part of skin
-
- Posts: 329
- Joined: July 7th, 2009, 11:10 pm
- Location: Canada
-
- Moderator
- Posts: 1931
- Joined: January 29th, 2010, 1:43 am
- Location: Willmar, MN
Re: Need help with code for hiding/showing part of skin
May I see your code?
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
-
- Posts: 329
- Joined: July 7th, 2009, 11:10 pm
- Location: Canada
Re: Need help with code for hiding/showing part of skin
The code under ToDo works to show the notes but the code under PopUp doesntsmurfier wrote:May I see your code?
-
- Moderator
- Posts: 1931
- Joined: January 29th, 2010, 1:43 am
- Location: Willmar, MN
Re: Need help with code for hiding/showing part of skin
I can't see anything obvious, especially since without the images I cannot test. I recommend trying a single button that just uses !ToggleMeterGroup hide. Just don't include that button in on the hide group.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
-
- Posts: 329
- Joined: July 7th, 2009, 11:10 pm
- Location: Canada
Re: Need help with code for hiding/showing part of skin
Thanks so much, that worked exactly the way I wanted it to!...smurfier wrote:I recommend trying a single button that just uses !ToggleMeterGroup hide. Just don't include that button in on the hide group.
[ShowHide]
Meter=IMAGE
X=12
Y=12
W=35
Y=35
ImageName=Note.png
LeftMouseUpAction=!Execute [!ToggleMeterGroup hide]
-
- Posts: 329
- Joined: July 7th, 2009, 11:10 pm
- Location: Canada
Re: Need help with code for hiding/showing part of skin
Found another problem and have spent hours trying to figure out how to correct it with no luck.
I can now hide or show all the notes, but the headings for each note stay visible (see top pic) when I toggle the arrow. It only does this if I edit the note and it only goes away if I refresh the skin.
I've gone through the tutorials, but nothing I've tried works.
I can now hide or show all the notes, but the headings for each note stay visible (see top pic) when I toggle the arrow. It only does this if I edit the note and it only goes away if I refresh the skin.
I've gone through the tutorials, but nothing I've tried works.
You do not have the required permissions to view the files attached to this post.
-
- Moderator
- Posts: 1931
- Joined: January 29th, 2010, 1:43 am
- Location: Willmar, MN
Re: Need help with code for hiding/showing part of skin
The reason for that is the MouseActions that you have on the titles. You're toggling them with the main button, so when one is hidden, and the other is not and you toggle them...
Also, I see no difference between these two meters besides the mouse actions which makes me wonder why you aren't using just one meter:
BTW: You have an extra Hidden=1 on your TitleActive meters.
When you post skin code, please use the code tags. They come with a nifty "select all" button.
Also, I see no difference between these two meters besides the mouse actions which makes me wonder why you aren't using just one meter:
Code: Select all
[TitleNotes1]
Meter=STRING
X=77
Y=68
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Constituency Office:
LeftMouseDownAction=!Execute [!ShowMeter TitleActiveNotes1][!HideMeter TitleNotes1][!Redraw]
group=hide
hidden=1
[TitleActiveNotes1]
Meter=STRING
X=77
Y=68
FontColor=#Color2#
FontSize=#Height2#
FontFace=#FontName#
StringAlign=LEFT
AntiAlias=1
Text=Constituency Office:
LeftMouseUpAction=!Execute ["#CURRENTPATH#Constituency Office.txt"][!ShowMeter TitleNotes1][!HideMeter TitleActiveNotes1][!Redraw]
group=hide
hidden=1
When you post skin code, please use the code tags. They come with a nifty "select all" button.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
-
- Posts: 329
- Joined: July 7th, 2009, 11:10 pm
- Location: Canada
Re: Need help with code for hiding/showing part of skin
Thanks John, taking out all the TitleActiveNotes fixed the problem.