From c5edc10fbd57d17e774a07b659996bdffe16242c Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 3 May 2015 11:22:01 +0200 Subject: possibility to move viewelements when starting view --- libtemplate/templatefunction.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'libtemplate/templatefunction.c') diff --git a/libtemplate/templatefunction.c b/libtemplate/templatefunction.c index e186621..9855066 100644 --- a/libtemplate/templatefunction.c +++ b/libtemplate/templatefunction.c @@ -73,6 +73,12 @@ void cTemplateFunction::SetParameters(vector > 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; -- cgit v1.2.3