Test a DX clock for me
Wednesday, May 21, 2008 by theAVMAN | Discussion: DesktopX
Reply #2 Wednesday, May 21, 2008 7:09 AM
Reply #3 Wednesday, May 21, 2008 7:12 AM
Reply #4 Wednesday, May 21, 2008 7:15 AM
The thumbs up button under the reply... click it.
Reply #5 Wednesday, May 21, 2008 7:22 AM
Thank you!
Reply #7 Wednesday, May 21, 2008 1:39 PM
- 'Change object name to apply to new object
- ulHue = DesktopX.Object("3Dmetal_Clock_Face").hue
- ulHue = DesktopX.Object("3Dmetal_Clock_Hours").hue
- ulHue = DesktopX.Object("3Dmetal_Clock_Minutes").hue
- ulHue = DesktopX.Object("3Dmetal_Clock_Seconds").hue
- ulHue = ulHue + 10
Whu set the same VAR to multiple items, the only one that matters in this case is the LAST one. Applying it at the end of that function makes sense, but the beginning sets make no sense.
I would redo it:
Sub Object_OnLButtonDown(x, y)
Dim ulHue
ulHue = DesktopX.Object("3Dmetal_Clock_Face").hue
ulHue = ulHue + 10
'if hue is set to Black "1000" then set it back to Unshifted "0"
If ulHue > 1001 Then ulHue = 0
'if hue is past 255, set it to black.
If ulHue > 255 And ulHue < 999 Then ulHue = 1000
'apply the hue change to the object(s)
DesktopX.Object("3Dmetal_Clock_Face").hue = ulHue
DesktopX.Object("3Dmetal_Clock_Hours").hue = ulHue
DesktopX.Object("3Dmetal_Clock_Minutes").hue = ulHue
DesktopX.Object("3Dmetal_Clock_Seconds").hue = ulHue
End Sub
This seems to work, the main key with this is to make sure the master items are RED.
the Hue works best with a RED main image. Other than the above, it looks good.
Reply #8 Wednesday, May 21, 2008 1:40 PM
um.. where's my EDIT button? Im speaking Zubazzish
"Why set the same VAR" - edited
Reply #9 Wednesday, May 21, 2008 1:50 PM
It reduces the calls to set the object hue's down to a single function call.
It also saves the hue in storage so that it will be there when it comes back up the next time its run.
- Sub Object_OnLButtonDown(x, y)
- Dim ulHue
- ulHue = DesktopX.Object("3Dmetal_Clock_Face").hue
- ulHue = ulHue + 10
- 'if hue is set to Black "1000" then set it back to Unshifted "0"
- If ulHue > 1001 Then ulHue = 0
- If ulHue > 255 And ulHue < 999 Then ulHue = 1000
- Call SetHue(ulHue)
- End Sub
- '*************************************************************
- 'Resets the hue to 0 if right clicked
- Sub Object_OnRButtonDown(x, y)
- Call SetHue(1000)
- End Sub
- 'Resets the hue to 0 if right clicked
- Sub Object_OnScriptEnter
- If Object.LocalStorage("Hue") = "" Then
- ulHue = 1000
- Else
- ulHue = Object.LocalStorage("Hue")
- End If
- Call SetHue(ulHue)
- End Sub
- Function SetHue(huesetting)
- DesktopX.Object("3Dmetal_Clock_Face").hue = huesetting
- DesktopX.Object("3Dmetal_Clock_Hours").hue =huesetting
- DesktopX.Object("3Dmetal_Clock_Minutes").hue = huesetting
- DesktopX.Object("3Dmetal_Clock_Seconds").hue = huesetting
- Object.LocalStorage("Hue") = huesetting
- desktopx.Object("test").text = huesetting
- End Function
Reply #10 Wednesday, May 21, 2008 1:57 PM
Thank you very much !I will keep this in mind for this application,I assume this will work in other instances also.
Thanks again
Harley
Reply #11 Wednesday, May 21, 2008 2:11 PM
I think i need to add this to the snippets!
Reply #12 Thursday, May 22, 2008 10:15 PM
Hi Harley .. It looks great ... Run first time ...
I am not sure if this is correct for you but if I mouse over the colour changer... keep it still and just click away I can get loads of other colours too ... Is it supposed to do that ? ...
Nice clock for sure ... works well !!
Regards
Mike
Reply #13 Thursday, May 22, 2008 11:45 PM
Reply #15 Wednesday, July 9, 2008 10:58 AM
Animation plays, close button destroys the object. Shines are in place.
Reply #16 Wednesday, July 9, 2008 11:07 AM
Don't like the date display 7/9/8
Would use 09/07/08 if could of worked out how to change it.
Reply #17 Wednesday, July 9, 2008 11:21 AM
Turbo clock: Works fine (I do have a digital clock) except that the close button next to the date took some time to actually do something. To explain; I wanted to close the clock but the close button didn't react at all (no mouse-over too). I wrote this in my feedback to you, but after writing I thought I would try once more and suddenly the button had a red mouse-over and worked. I repeated this and I got a lag again but shorter this time.
Suggestion; to include a switch for 'English'-time and 'Military'-time (the latter being commonly used in continental Europe)
Reply #18 Thursday, July 10, 2008 10:01 AM
Don't like the date display 7/9/8
Would use 09/07/08 if could of worked out how to change it.
Thank you and it is changed
aufisch
3D Metal that was an old link sorry!
newWWW Link
Suggestion; to include a switch for 'English'-time and 'Military'-time (the latter being commonly used in continental Europe)
Thank you
1 I moved the close button to the top layer and all lag is gone!
2 I am not quite sure how to add the switch but I will try
Thanks again
Harley
Reply #20 Thursday, July 10, 2008 10:37 AM
Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!








Reply #1 Wednesday, May 21, 2008 7:04 AM