Welcome, Guest
Please Login or Register.    Lost Password?

Future days number of the event list.
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Future days number of the event list.
#14589
Future days number of the event list. 3 Years, 6 Months ago  
Please provide a option to set the future days numbers seperately for the events in different calendars. Because the events may have different importance and the preparations also cost different time.
atb
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#14602
Re: Future days number of the event list. 3 Years, 6 Months ago  
I think your mean is like: event_list_1 display 6 days, event_list_2 display 13 days ...etc, is right?

You can do this:
Add variable in skin.xml
Code:

<variable name="future_nums" default="6" window="Event List" description="Defines the future days numbers." />


Modify this line in evenlist.xml
Code:

<window id="Event List" w="250" default="1" oncreate="EventList_Initialize('#SKIN#', '#ID#')" >


Add a function in lua-file
Code:

function EventList_Initialize(skin, window)
  oldFutureNums = Rainlendar_GetVariable(skin, window, "future_nums")
  newFutureNums = Rainlendar_GetOption("OverriddenSettings/"..skin.."/"..window,"EventListShowFutureEvents")
  if oldFutureNums ~= newFutureNums then
    Rainlendar_SetOption("OverriddenSettings/"..skin.."/"..window,"EventListShowFutureEvents",oldFutureNums)
    Rainlendar_Refresh()
  end
end



But, refresh is very slow.
anoob
Platinum Boarder
Posts: 500
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: TaiChung, Taiwan, R.O.C. Birthday: 02/12
The administrator has disabled public write access.
I couldn't speak English! This skin released to Customize.org(Do you want it? Click Picture) Please contact me if interested: jhg5702@gmail.com
 
#14603
Re: Future days number of the event list. 3 Years, 6 Months ago  
I wonder if it would be confusing if you don't always see all the events on a day. Anyway, I'll think about this.
Rainy
Moderator
Posts: 5946
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#14634
Re: Future days number of the event list. 3 Years, 6 Months ago  
Hi, anoob, I am haytcb, nice to see your reply here!
Actually, my intention is to display the events from different .ics files with different future days. Usually only one eventlist window is activated, but many .ics files could used to save events, so it is more suitalbe to do something to the .ics files.
Although we could realize it with a lua script similar to the LunarCal script, but I think that the intrinsic support for it is much more better.
atb
Fresh Boarder
Posts: 13
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#14637
Re: Future days number of the event list. 3 Years, 6 Months ago  
Hi, haytcb, I know is you, nice to see you too!
Although I am not understand why you want do it,
but I agree that the intrinsic support is more better.
anoob
Platinum Boarder
Posts: 500
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: TaiChung, Taiwan, R.O.C. Birthday: 02/12
The administrator has disabled public write access.
I couldn't speak English! This skin released to Customize.org(Do you want it? Click Picture) Please contact me if interested: jhg5702@gmail.com
 
Go to topPage: 1
get the latest posts directly to your desktop