shadow effect and %n prop

Home Forums General Using Ctrlr shadow effect and %n prop

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13144
    zeoka
    Participant
      • Topics: 73
      • Replies: 466
      • Total: 539
      • ★★★

      Hi
      I have set the property on labels : that’s very nice
      My problem is want to apply to content mods (i think i can’t )so i can replace by labels. My question is :
      can i use the %n property to send dynamically to label ?
      i can do a table {} but i will have double data in the xml file (content mod + table)
      or possible to add shadow effect by LUA ?

      Attachments:
      You must be logged in to view attached files.
      #13146
      atom
      Keymaster
        • Topics: 159
        • Replies: 2945
        • Total: 3104
        • ★★★★★

        Can you please put your questions in numbered points, because i don’t get anu of this. The one thing i got is that shadow effect, yes you can just change the components property, if you can see the property on the property panel you can change it in lua. The property for the shadow is “componentEffect”, the value would be “Shadow”. You can also set other properties too:

        c = panel:getComponent("myComponent")
        c:setProperty ("componentEffect", "Shadow", false)
        c:setProperty ("componentEffectRadius", 2.5, false)
        c:setProperty ("componentEffectColour", "0xff323232", false)
        
        #13149
        zeoka
        Participant
          • Topics: 73
          • Replies: 466
          • Total: 539
          • ★★★

          Thank you Atom
          -Is it possible to aplly to a component child ? ex : uiGroupText ?
          -The “%n property” is : A string format(just..changed modulators)t..
          My question could be “how to use it ? it is done for a label ?”
          But you answer to my basic question. i don’t need to replace by labels
          Just by curiosity….

          Again many thanks

          #13172
          zeoka
          Participant
            • Topics: 73
            • Replies: 466
            • Total: 539
            • ★★★

            The problem is the shadow properties will be applied globally to component and i would to apply only to mod value texts. i will try what it gives

            What the property “A string format(just..changed modulators)t..” ?
            I just can’t read what’s this 🙂
            Could you explain a little this property ? For what using ?

            I ask to you that : to replace my mod value texts by labels and then put my mods and labels in their groups.
            On the picture there is 2 layers : 1 for design and 1 for mods
            I could use groups for what they are done at the beginning ! not only for design

            I hope i’m clear , i’m not precise in english

          Viewing 4 posts - 1 through 4 (of 4 total)
          • The forum ‘Using Ctrlr’ is closed to new topics and replies.
          There is currently 0 users and 50 guests online
          No users are currently active
          Forum Statistics
          Threads: 2,495, Posts: 17,374, Members: 77,605
          Most users ever online was 12 on January 22, 2019 3:47 pm
          Ctrlr