Dynamische Linienstaerke in Returncodezeile

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #177716 quote
    Rainer (RFW)
    Participant
    Senior

    Liebe PRTler,
    erneute kurze unqualifizierte Frage.
    Wie kann die Liniendicke in der Returnzeile dynamisch verändert werden. Es scheint aber so auf einfache Weise nicht möglich
    Ansonsten kann ich das ja stets einfach im Code beeinflussen, mir geht es jedoch konkret um die Returncodezeile. Denn logischer Weise ist leider der Return Befehl inerhalb  If/Then…. nicht möglich
    Danke vorab und ein schönes Wochenende.
    Liebe Grüße
    Rainer

    // wünschenwerte Lösung
    LD  = 4
    Return VLine Coloured(VR,VG,VB)Style(Line,LD) AS "VLine", TLine Coloured(51,153,255)Style(Line,LD) AS "TLine"
    
    // Leider logischer Weise nicht möglich 
    If (DisplayMod = 1)  Then
    Return VLine Coloured(VR,VG,VB)Style(Line,1) AS "VLine", TLine Coloured(51,153,255)Style(Line,1) AS "TLine"
    Else
    Return VLine Coloured(VR,VG,VB)Style(Line,4) AS "VLine", TLine Coloured(51,153,255)Style(Line,4) AS "TLine"
    EndIf
    #177719 quote
    robertogozzi
    Moderator
    Master

    Sie können nicht. STYLE unterstützt nur numerische Konstanten, keine Variablen. So wie du es gemacht hast, ist die einzige Lösung.

    Rainer (RFW) thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Dynamische Linienstaerke in Returncodezeile


ProBuilder Support

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
4 years, 4 months ago.

Topic Details
Forum: ProBuilder Support
Language: German
Started: 09/16/2021
Status: Active
Attachments: No files
Logo Logo
Loading...