Project

General

Profile

Actions

Bug #1990

closed

Double-Variablen könne nicht zum Rechnen verwendet werden.

Added by Copperhead about 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Start date:
11/13/2014
Due date:
% Done:

0%

Estimated time:

Description

z.B. "{areaheight}*{variable}"

Actions #1

Updated by louis about 10 years ago

  • Status changed from New to Assigned
  • Assignee set to louis

Hm, ist das so? :-) Muss ich mir mal anschauen.

Actions #2

Updated by louis about 10 years ago

  • Status changed from Assigned to Feedback

Hi,

ich hab das jetzt mal getestet, bei mir geht das? Ich habe in der globals.xml eine Variable pi definiert:

    <variables>
        <var type="int" name="border">5</var>
        <var type="int" name="fadeTime">0</var>
        <var type="string" name="stringglobal">hützligrütz</var>
        <var type="double" name="pi">3.14</var>
    </variables>

und dann ein Rechteck gemalt:

<drawrectangle debug="true" x="0" y="0" width="{pi}*{areawidth}/10" height="100%" color="{clrTransBlueLight}" />

und bekomme das als debug Ausgabe:

Nov 15 15:27:42 maschine vdr: [10574] skindesigner: Debugging Function DrawRectangle, Container: x = 0, y = 0, Size: 384x216
Nov 15 15:27:42 maschine vdr: [10574] skindesigner: --- Native Parameters:
Nov 15 15:27:42 maschine vdr: [10574] skindesigner: --- Native Parameters:
Nov 15 15:27:42 maschine vdr: [10574] skindesigner: "X" = "0" 
Nov 15 15:27:42 maschine vdr: [10574] skindesigner: "Y" = "0" 
Nov 15 15:27:42 maschine vdr: [10574] skindesigner: "Width" = "{pi}*{areawidth}/10" 
Nov 15 15:27:42 maschine vdr: [10574] skindesigner: "Height" = "100%" 
Nov 15 15:27:42 maschine vdr: [10574] skindesigner: "Color" = "{clrTransBlueLight}" 
Nov 15 15:27:42 maschine vdr: [10574] skindesigner: --- Integer Parameters:
Nov 15 15:27:42 maschine vdr: [10574] skindesigner: X = 0
Nov 15 15:27:42 maschine vdr: [10574] skindesigner: Y = 0
Nov 15 15:27:42 maschine vdr: [10574] skindesigner: Width = 121
Nov 15 15:27:42 maschine vdr: [10574] skindesigner: Height = 216
Nov 15 15:27:42 maschine vdr: [10574] skindesigner: --- Color Parameters:
Nov 15 15:27:42 maschine vdr: [10574] skindesigner: Color = c01e8bd7

width wurde korrekt berechnet...

Was machst du anders?

Ciao Louis

Actions #3

Updated by louis almost 10 years ago

  • Status changed from Feedback to Closed

No Feedback...closed :-)

Actions

Also available in: Atom PDF