Theme change on-the-fly (variables based on date and time of the day, weather, etc.)?
#33
I believe a boolean to allow conditionals based on system time could be very useful, and add some interesting new options to skinners. I have no knowledge of how much work would be required to add this to the skinning engine, but I believe the execution for the skinner would be very simple, as stated in the title of the thread.

An example would be <visible>System.HasTime(07:30,19:15)</visible>.

In this particular example, if the time were between 7:30 and 19:15, the condition would come back as TRUE.

Another possibility would be System.HasTime(07:30:00,19:15:00), or System.HasTime(hh:mmConfuseds,hh:mmConfuseds), which would allow the skinner to specify seconds as well.

This could be useful if the skinner would like a particular action to be performed on every hour for example, or even for previously requested dynamic skins that change appearances based on the time of day. During the day a skin could have one appearance, and then at night it could bring on a more somber appearance, with darker tones and night related imagery.



EDIT: Talking to Jezz_X, it was suggested that perhaps System.IsTime would be more appropriate. In this case, if you used only one variable, it would be exact, such as System.IsTime(12:45) and you could trigger an exact event. If you used two variables, as in my original examples, it would be for something continuous anywhere between those two times.
Reply


Messages In This Thread
[No subject] - by Jezz_X - 2007-07-15, 21:01
[No subject] - by Nuka1195 - 2007-07-15, 21:07
[No subject] - by MikeBeecham - 2007-07-15, 23:17
[No subject] - by Freddo - 2007-07-15, 23:23
[No subject] - by aka013 - 2007-07-18, 21:46
[No subject] - by MikeBeecham - 2007-07-19, 11:05
[No subject] - by Gamester17 - 2007-07-19, 13:35
[No subject] - by MikeBeecham - 2007-07-19, 13:53
[No subject] - by Gamester17 - 2007-07-19, 14:20
[No subject] - by Asteron - 2007-07-19, 19:28
Color change based on time - by dinkelheimer - 2007-07-23, 16:32
[No subject] - by Asteron - 2007-07-23, 16:53
[No subject] - by d4rk - 2007-07-26, 17:29
[No subject] - by BenO169 - 2007-07-28, 13:32
[No subject] - by MacGyver - 2007-07-30, 18:19
[No subject] - by ralob - 2007-07-30, 22:23
[No subject] - by BritneysPAIRS - 2007-07-31, 00:03
[No subject] - by Gamester17 - 2007-09-19, 13:28
[No subject] - by spiff - 2007-09-19, 13:30
[No subject] - by Gamester17 - 2007-09-19, 14:51
[No subject] - by radio - 2007-09-19, 15:20
[No subject] - by spiff - 2007-09-19, 15:23
[No subject] - by tvdb-scott - 2007-09-19, 16:52
[No subject] - by radio - 2007-09-19, 19:08
[No subject] - by spiff - 2007-09-19, 19:16
[No subject] - by MacGyver - 2007-09-19, 22:10
[No subject] - by radio - 2007-09-19, 23:22
[No subject] - by spiff - 2007-09-19, 23:29
[No subject] - by radio - 2007-09-19, 23:39
[No subject] - by jmarshall - 2007-09-20, 00:14
System.HasTime(starttime,endtime) - by timdog82001 - 2007-12-19, 08:32
[No subject] - by timdog82001 - 2007-12-23, 10:51
[No subject] - by agathorn - 2008-04-10, 01:14
[No subject] - by Rand Al Thor - 2008-04-10, 01:49
Thanks agathorn, great work! - by Gamester17 - 2008-04-10, 23:30
[No subject] - by agathorn - 2008-04-10, 23:45
[No subject] - by Gamester17 - 2008-04-11, 00:18
[No subject] - by jmarshall - 2008-04-11, 00:21
[No subject] - by Gamester17 - 2008-04-11, 00:26
[No subject] - by Gamester17 - 2008-04-12, 14:53
[No subject] - by Gamester17 - 2009-01-02, 19:00
[No subject] - by Jezz_X - 2009-01-02, 20:33
[No subject] - by Gamester17 - 2009-01-02, 21:07
[No subject] - by timdog82001 - 2009-01-02, 22:17
[No subject] - by spiff - 2009-01-03, 00:17
[No subject] - by timdog82001 - 2009-01-03, 02:09
Logout Mark Read Team Forum Stats Members Help
Theme change on-the-fly (variables based on date and time of the day, weather, etc.)?0