Zum Inhalt springen

Codesnippet: Grafische Rootline

Erstellt am 17. November 2005 · 1 Antwort · letzte Antwort am 12. Mai 2007

Tags: Frage

Freshmeat ·

Da ich schon mehrfach im Forum Lösungen für meine Probleme gefunden hab und möchte ich hier ein kleines Snippet für eine grafische Rootline reinstellen.

Bild: gifasdata.ch/…/rootline_01.gif

# ROOTLINE #---#
    ROOTLINE {

      10 = HMENU
      10 {

        special = rootline
        special.range = 2|-1

        1 = GMENU
        1.NO {
          XY = 20+[30.w],30
          backColor = #FFFFFF
          transparentColor = #FFFFFF

          # TEXT AUF BILD RENDERN
          30 = TEXT
          30 {
            text.field = title
            fontColor = #000000
            fontFile = fileadmin/fonts/FUTURAH.TTF
            fontSize = 17
            spacing = 0
            offset = 1,20
            niceText = 1
            antiAlias = 0
          } // ENDE 30

          # DOPPELPFEIL-RECHTS AUF BILD RENDERN
          40 = TEXT
          40 {
            text = »|*| » |*| |*|
            fontColor = #000000
            fontFile = fileadmin/fonts/FUTURAH.TTF
            fontSize = 17
            spacing = 0
            offset = [30.w]+8,20
            niceText = 1
            antiAlias = 0
          } // ENDE 40
        } // ENDE 1.NO

        1.RO = 1
        1.RO < .1.NO
        1.RO {
          # TEXT AUF BILD RENDERN
          30 = TEXT
          30 {
            fontColor = #3F4B1D
            } // ENDE 30
          } // ENDE 1.RO

      } // ENDE 10
    } // ENDE ROOTLINE
gkahr ·

Das hat mir sehr geholfen. Hier eine leicht abgewandelte Variante, bei der nur zwei Ebenen angezogen werden und die erste Ebene eine andere Farbe hat als die nachfolgenden.

rootline = HMENU
rootline {
   special = rootline
   special.range = 1|3
 
   1 = GMENU
   1.NO {
         XY = 20+[30.w],30
         backColor = #FFFFFF
          
         30 = TEXT
         30 {
            text.field = title
            fontColor = #B5B5B5 |*| #B5B5B5 |*| #42A7CC
            fontFile = fileadmin/templates/ren/VERDANA.TTF
            fontSize = 17
            spacing = 0
            offset = 1,20
            niceText = 1
            antiAlias = 1
         } 
          			
         40 = TEXT
         40 {
            text =  /|*|/|*| |*|
            fontColor = #B5B5B5 
            fontFile = fileadmin/templates/ren/VERDANA.TTF
            fontSize = 17
            spacing = 0
            offset = [30.w]+8,20
            niceText = 1
            antiAlias = 1
         } 
      } 
}