It is currently October 9th, 2024, 3:12 pm

LuaCalendar

Clocks and timer skins
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

LuaCalendar

Post by smurfier »

There have been many bug fixes, code optimizations, and a few more features. Full change log included with skin.

Image
A simple calendar powered by Lua with many customizable options.

Options and Features include:
  • Start the week on Monday.
  • Use localized month names.
  • Show holidays and events.
  • Move through the months.
  • And many more!
DA Site Download
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 . . .
charlir1
Posts: 9
Joined: January 15th, 2012, 5:01 am

Re: LuaCalendar

Post by charlir1 »

thanks so much for this.. However i am having issues with it .. I get this msg "StringAlign=#M.Lbl.AIn# is not valid in [MonthLabel]" and it doesnt show month on top and the arrows to change months are just above the 2nd week.. Ive tried playing with it but no luck and help you can suggest ? or a direction to look

Thanks
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: LuaCalendar

Post by smurfier »

In MonthLabel change StringAlign to StringAlign=CENTER.

I will hopefully be updating again in a few days.
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 . . .
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: LuaCalendar

Post by smurfier »

Updated to use Style Sheets and included one for Enigma.
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 . . .
User avatar
Valentine
Posts: 70
Joined: June 30th, 2011, 11:01 am
Location: Daegu, South Korea

Re: LuaCalendar

Post by Valentine »

I have some problem.

When i open LuaCalendar, Language is changed in other skin.

Please show my Youtube. Why LuaCalendar skin have affect the other skin?

My Rainmeter is 2.3 v1172 and my computer is Windows XP and Luacalendar is v3.1.1

[youtube]http://www.youtube.com/watch?v=1kxfMLgiCKs[/youtube]
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: LuaCalendar

Post by smurfier »

That would be the localization settings. Go into settings.inc and find the line that says LMnths=1. Change that to 0, save, restart Rainmeter. Everything should be fine.
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 . . .
User avatar
Valentine
Posts: 70
Joined: June 30th, 2011, 11:01 am
Location: Daegu, South Korea

Re: LuaCalendar

Post by Valentine »

Wow!! That's great! :D
Thank you.
tkolman
Posts: 23
Joined: November 11th, 2009, 1:03 pm

Re: LuaCalendar

Post by tkolman »

Best Calendar I have found, but I have one small problem. I have converted the colors (style.inc) to light background and dark text. This was easy, but the highlighted day label of the current day (today "F") remains white on a grey background and I cannot see with my wallpaper.
Any help would be greatly appreciated?
Great Work!
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

LuaCalendar

Post by smurfier »

Could you please post your style sheet for me to look at?
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 . . .
tkolman
Posts: 23
Joined: November 11th, 2009, 1:03 pm

Re: LuaCalendar

Post by tkolman »

smurfier wrote:Could you please post your style sheet for me to look at?

Code: Select all

[Rainmeter]
BackgroundMode=2
SolidColor=0,0,0,1
MouseOverAction=!Execute [!ShowMeterGroup Controls][!Redraw]
MouseLeaveAction=!Execute [!HideMeterGroup Controls][!Redraw]

;===== Meter Styles=====
;All of these meter styles are required.

;Day Label Styles
[LblTxtSty]
H=#C.h#
W=#C.w#
X=#Space.X#R
Y=r
FontFace=Trebuchet MS
FontColor=0,0,0,255
FontSize=8
stringAlign=center
AntiAlias=1

[LblTxtStart]
X=(#Bumper.x#+#C.w#/2)
Y=(#Bumper.top#+#C.h#+#Space.y#+2)

[LblCurrSty]
FontColor=#W.Lbl.hlg#

;Main Calendar Styles
[TextStyle]
H=#C.h#
W=#C.w#
X=#Space.X#R
Y=r
FontColor=0,0,0,255
FontFace=Trebuchet MS
FontSize=10
stringAlign=center
AntiAlias=1

[FirstDay]
Y=(#Space.y#/2)R
X=(#Bumper.x#+#C.w#/2)

[NewWk]
Y=#Space.y#R
X=(#Bumper.x#+#C.w#/2)

[CurrentDay]
StringStyle=Bold
FontSize=12

[LastWeek]
FontColor=0,0,0,0

[PreviousMonth]
FontColor=0,0,0,160

[NextMonth]
FontColor=0,0,0,160

[HolidayStyle]
FontColor=0,200,0,240
StringStyle=Bold

[WeekendStyle]

;========== METERS ==========
;These are not required.
[mLabel]
Meter=String
Text=#MonthLabel#
W=(#C.w#*7+#Space.x#*6)
X=((#C.w#*7+#Space.x#*6)/2+#Bumper.x#)
Y=#Bumper.top#
H=#C.h#
FontColor=0,0,0,200
FontFace=Trebuchet MS
FontSize=10
stringAlign=Center
AntiAlias=1
DynamicVariables=1

;Day Label BG
[LblBgSty]
X=#Space.X#R
Y=r
H=#C.h#
W=#C.W#
SolidColor=20,20,20,75

[lSunBG]
Meter=image
MeterStyle=LblBgSty
X=#Bumper.x#
Y=(#Bumper.top#+#C.h#+#Space.y#)

[lMonBG]
Meter=image
MeterStyle=LblBgSty

[lTuesBG]
Meter=image
MeterStyle=LblBgSty

[lWedBG]
Meter=image
MeterStyle=LblBgSty

[lThurBG]
Meter=image
MeterStyle=LblBgSty

[lFriBG]
Meter=image
MeterStyle=LblBgSty

[lSatBG]
Meter=image
MeterStyle=LblBgSty

;Control Bar
[ControlForward]
Meter=String
MeterStyle=TextStyle
FontFace=Webdings
StringAlign=Left
Text="4"
Y=#Bumper.top#
X=((#C.w#*6+#Space.x#*6)+#Bumper.x#)
LeftMouseUpAction=!Execute [!CommandMeasure "Lua" "Forward()"][!Update]
Group=Controls
Hidden=1

[ControlBack]
Meter=String
MeterStyle=TextStyle|ControlForward
Text="3"
X=#Bumper.x#
LeftMouseUpAction=!Execute [!CommandMeasure "Lua" "Back()"][!Update]

[ControlHome]
Meter=String
MeterStyle=TextStyle|ControlForward
Text="="
X=R
LeftMouseUpAction=!Execute [!CommandMeasure "Lua" "Home()"][!Update]

;Date Indicator
[TodayHL]
Meter=image
X=(#Bumper.x#+(#C.w#+#Space.x#)*#Week#+3)
Y=(#Bumper.top#+(#C.h#+#Space.y#)*(#ThisWeek#+1)+#C.h#-2)
H=2
W=(#C.w#-6)
SolidColor=#Clr.Hrl#
Hidden=#NotCurrentMonth#
DynamicVariables=1