mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 15:58:31 +00:00
possibility to move viewelements when starting view
This commit is contained in:
@@ -73,6 +73,12 @@ void cTemplateFunction::SetParameters(vector<pair<string, string> > params) {
|
||||
p.first = ptDetached;
|
||||
} else if (!name.compare("fadetime")) {
|
||||
p.first = ptFadeTime;
|
||||
} else if (!name.compare("shifttime")) {
|
||||
p.first = ptShiftTime;
|
||||
} else if (!name.compare("startx")) {
|
||||
p.first = ptStartX;
|
||||
} else if (!name.compare("starty")) {
|
||||
p.first = ptStartY;
|
||||
} else if (!name.compare("imagetype")) {
|
||||
p.first = ptImageType;
|
||||
} else if (!name.compare("path")) {
|
||||
@@ -230,7 +236,10 @@ bool cTemplateFunction::CalculateParameters(void) {
|
||||
case ptHeight:
|
||||
case ptMenuItemWidth:
|
||||
case ptFadeTime:
|
||||
case ptShiftTime:
|
||||
case ptDelay:
|
||||
case ptStartX:
|
||||
case ptStartY:
|
||||
case ptFontSize:
|
||||
case ptLayer:
|
||||
case ptTransparency:
|
||||
@@ -780,6 +789,7 @@ bool cTemplateFunction::SetNumericParameter(eParamType type, string value) {
|
||||
param.SetGlobals(globals);
|
||||
switch (type) {
|
||||
case ptX:
|
||||
case ptStartX:
|
||||
case ptWidth:
|
||||
case ptMenuItemWidth:
|
||||
case ptScaleTvX:
|
||||
@@ -787,6 +797,7 @@ bool cTemplateFunction::SetNumericParameter(eParamType type, string value) {
|
||||
param.SetHorizontal();
|
||||
break;
|
||||
case ptY:
|
||||
case ptStartY:
|
||||
case ptHeight:
|
||||
case ptScaleTvY:
|
||||
case ptScaleTvHeight:
|
||||
@@ -1591,6 +1602,15 @@ string cTemplateFunction::GetParamName(eParamType pt) {
|
||||
case ptFadeTime:
|
||||
name = "Fade Time";
|
||||
break;
|
||||
case ptShiftTime:
|
||||
name = "Shift Time";
|
||||
break;
|
||||
case ptStartX:
|
||||
name = "Startpos X";
|
||||
break;
|
||||
case ptStartY:
|
||||
name = "Startpos Y";
|
||||
break;
|
||||
case ptDelay:
|
||||
name = "Delay";
|
||||
break;
|
||||
|
@@ -51,6 +51,9 @@ enum eParamType {
|
||||
ptMenuItemWidth,
|
||||
ptDetached,
|
||||
ptFadeTime,
|
||||
ptShiftTime,
|
||||
ptStartX,
|
||||
ptStartY,
|
||||
ptDelay,
|
||||
ptImageType,
|
||||
ptPath,
|
||||
|
@@ -667,6 +667,9 @@ void cTemplateView::SetFunctionDefinitions(void) {
|
||||
attributes.insert("detached");
|
||||
attributes.insert("delay");
|
||||
attributes.insert("fadetime");
|
||||
attributes.insert("shifttime");
|
||||
attributes.insert("startx");
|
||||
attributes.insert("starty");
|
||||
attributes.insert("name");
|
||||
attributes.insert("condition");
|
||||
attributes.insert("mode");
|
||||
|
Reference in New Issue
Block a user