+ Reply to Thread
Results 1 to 6 of 6

Thread: What data does Canvas need?

  1. #1
    Ascendant Credo's Avatar
    Join Date
    Jan 2011
    Posts
    4,172

    Default What data does Canvas need?

    I keep passing this stupid thing tables and it keeps telling me it's not the right kind of table or something. The online documentation is fairly useless to me.
    Even free cost too much now

  2. #2
    RIFT Community Ambassador the_real_seebs's Avatar
    Join Date
    Jan 2011
    Posts
    16,859

    Default

    The key thing that got me: The usage message dumped in chat is truncated. The most common thing for me was omitting the thickness member of a stroke table.
    You can play WoW in any MMO. You don't have to play WoW in RIFT. Oh, and no, RIFT is not a WoW clone. Not having fun any more? Learn to play, noob! I don't speak for Riftui, but I moderate stuff there. Just came back? Welcome back! Here's what's changed. (Updated for 2.5!)

  3. #3
    Ascendant Credo's Avatar
    Join Date
    Jan 2011
    Posts
    4,172

    Default

    So it should be something like:
    table = {
    r = 1,
    g = 1,
    b = 1,
    a = 1,
    cap = "non"
    and so on
    }
    ?
    Even free cost too much now

  4. #4
    RIFT Guide Writer Noshei's Avatar
    Join Date
    Feb 2011
    Posts
    1,886

    Default

    Code:
    local stroke = {r=1,g=0,b=0,a=1,thickness=5}
    local Path = {{xProportional = 0.5, yProportional = 0}, 
    		{xProportional = 1, yProportional = 0.5, xControlProportional = (61/64), yControlProportional = (3/64)},
    		{xProportional = 0.5, yProportional = 1, xControlProportional = (61/64), yControlProportional = (61/64)},
    		{xProportional = 0, yProportional = 0.5, xControlProportional = (3/64), yControlProportional = (61/64)},
    		{xProportional = 0.5, yProportional = 0, xControlProportional = (3/64), yControlProportional = (3/64)}}
    
    Circle:SetShape(Path, nil, stroke)
    ^that makes a circle, with a transparent center.

  5. #5
    Ascendant Credo's Avatar
    Join Date
    Jan 2011
    Posts
    4,172

    Default

    Thanks Noshei! It was just formatting that I was missing!
    Even free cost too much now

  6. #6
    Ascendant Credo's Avatar
    Join Date
    Jan 2011
    Posts
    4,172

    Default

    Note to any others that come across this. fill parameter colors does not like position set to 0
    Even free cost too much now

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts