aerostitch / testnavit

0 stars 0 forks source link

Expose current layout as variable to enable_expression #267

Open aerostitch opened 9 years ago

aerostitch commented 9 years ago

Issue migrated from trac ticket # 1293

component: osd/core | priority: trivial | keywords: layout name, daylayout, nightlayout

2015-04-09 10:05:05: dcpingflood@yahoo.com.br created the issue


Hi all,

I want to suggest to expose the current layout name and some way to check if current is night or day layout in variables accessible in enable_expression.

This way we could have OSD for day and night.

I think is enough to expose the following variables:

layout.name : string holding current layout name layout.nightlayout : boolean (or int 0|1) holding status if current layout is night (true/1) or day (false/0).

This way if we want to show an OSD item only if the current layout is the night layout, then we could do something like this:

Best regards