Welcome, Guest
Please Login or Register.    Lost Password?

How to skin Rainlendar 2
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: How to skin Rainlendar 2
#1104
Re:Minor skinning question 7 Years, 11 Months ago  
One thing I did to make the today marker a little less obtrusive, was to edit the xml/calendar.xml file and change the <today> element to have layer="-10".

It should look like this when you are done:
Code:

<today>
  <appearance layer="-10" element="bitmap.today" align="CENTER" /> 
</today>



This places the today marker behind all of the other elements in the calendar (like the date number, the event bitmaps, etc.)

One thing to note though, is this fix only works the type of calendar that you change it on.

For instance, if you change the xml/calendar.xml file, then switch to the long calendar format, the edit will not be shown. To fix that one, you will need to change the xml/long calendar.xml file to fix it for that format. The same goes for the other calendar types that you might be using.
benjam
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1107
Re:Minor skinning question 7 Years, 11 Months ago  
Thanks for the alternative suggestion but I've changed the today marker bitmap now and I'm happy with the new version.

andygrunt
Expert Boarder
Posts: 93
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1609
Actions ? 7 Years, 10 Months ago  
Hello !

I would like to add a few buttons to my skin, to toggle windows, but I don't know the actions for the xml file.

I tried a few guesses from what I saw in various skins, but I could not find any xml version with toggle buttons...

And also, is it possible to assign several actions to one button? i.e. I would like to toggle both eventlist and todolist in one click.

Thanks a lot !
stan pulsar
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1635
Re:Actions ? 7 Years, 9 Months ago  
The actions are functions in the lua-scripts. If you take a look at the windows.lua file in the Rainlendar's scripts folder you can see the window related functions. You can for example toggle the todo list like this: action="Global_ToggleWindow(Todo List)"

It's possible to run only a single function so if you want to do complex you have to create a new function for it. E.g. something like this:

Code:

function Global_ToggleTodoAndEvents()
local todoVisible = Rainlendar_IsWindowVisible("Todo List")
local eventVisible = Rainlendar_IsWindowVisible("Event List")
if todoVisible or eventVisible then
                Rainlendar_HideWindow("Todo List")
                Rainlendar_HideWindow("Event List")
        else
                Rainlendar_ShowWindow("Todo List")
                Rainlendar_ShowWindow("Event List")
        end
end

<br><br>Post edited by: Rainy, at: 2007/01/07 13:10
Rainy
Moderator
Posts: 6000
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1645
Re:Actions ? 7 Years, 9 Months ago  
Thank you for the tip about where to find the functions.

And thank you for the new function, I wouldn't have come to it by myself.

Is there any way to put this function in a lua file in the skin\script folder, so that it won't be overwritten by an update ? (not a critical issue, if I ever update rainlendar I can copy/paste it back in a couple of secs.

And most of all thanks for this very lively forum.
stan pulsar
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1664
Re:Actions ? 7 Years, 9 Months ago  
You can just create new file for the function. Rainlendar reads all .lua files from the scripts folder. Or you can also put the lua file to the skin archive but in that case you need to define the script file with the &lt;script&gt; element.
Rainy
Moderator
Posts: 6000
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
get the latest posts directly to your desktop