If you wish to help support this site please disable your adblock program.


Click here to become a Premium Member : No ads site-wide : Forum privileges : Upgraded services : Giveaway & moreSupport the Site! Support Us!
Tukui » Lua Script Help » Making panels visible / invisible
  1. Rival Darkieth
    offline
    Member
    Posts: 340

    I've created a few simple panels which i'd like to attach and have them only visible when my target has a target - If you get what I mean.

    What do I use to do this?
    Thanks in advance :3

    Posted 11 months ago - #1

    Permalink



  2. If you wish to help support this site please disable your adblock program.


    Gladiator Sinaris
    online
    VIP
    Posts: 1,332

    You have to anchor them onto the target frame.

    Posted 11 months ago - #2

    Permalink

  3. Rival Darkieth
    offline
    Member
    Posts: 340

    I'm doing something wrong then.

    local ChatLineV = CreateFrame( "Frame", "ChatLineV", Target )
    ChatLineV:CreatePanel( "Default", 1, 20, "BOTTOM", Target, "TOP", 0, 1 )
    Posted 11 months ago - #3

    Permalink

  4. Gladiator Sinaris
    online
    VIP
    Posts: 1,332

    Change Target to: TukuiTarget

    Posted 11 months ago - #4

    Permalink

  5. Hero Jasje
    offline
    Moderator
    Posts: 2,617

    I suspect Sinaris code seeing all these spaces ( - _ - )

    Every man is the architect of his own fortune.
    Posted 11 months ago - #5

    Permalink

  6. Rival Darkieth
    offline
    Member
    Posts: 340

    Sinaris said:
    Change Target to: TukuiTarget

    local ChatLineV = CreateFrame( "Frame", "ChatLineV", TukuiTarget )
    ChatLineV:CreatePanel( "Default", 1, 20, "BOTTOM", TukuiTarget, "TOP", 0, 1 )

    This moves them 180px to the right. They are still visible even without having a target.

    Jasje said:
    I suspect Sinaris code seeing all these spaces ( - _ - )

    It is indeed a part of his code :)<3

    Additional question: What's the easiest way to identify a frame?

    Posted 11 months ago - #6

    Permalink

  7. Gladiator Sinaris
    online
    VIP
    Posts: 1,332

    Type /fstack into the chat and throw the mouse over the frame :P

    Posted 11 months ago - #7

    Permalink

  8. Rival Darkieth
    offline
    Member
    Posts: 340

    Sinaris said:
    Type /fstack into the chat and throw the mouse over the frame :P

    Ah, lovely!

    Any solution to the code?

    Posted 11 months ago - #8

    Permalink

  9. Gladiator Sinaris
    online
    VIP
    Posts: 1,332

    Add the code into the target section from the layout code.

    Posted 11 months ago - #9

    Permalink

  10. Rival Darkieth
    offline
    Member
    Posts: 340

    Thanks! That works.

    However. Now an identical panel have appeared.

    Posted 11 months ago - #10

    Permalink

  11. Hero Jasje
    offline
    Moderator
    Posts: 2,617

    Then you got a dubble frame hidden somewhere. Mouseover that frame with /frame or /fstack and see what comes out

    Every man is the architect of his own fortune.
    Posted 11 months ago - #11

    Permalink

  12. Rival Darkieth
    offline
    Member
    Posts: 340

    Posted 11 months ago - #12

    Permalink

  13. Hero Jasje
    offline
    Moderator
    Posts: 2,617

    Well ChatLineH comes out, delete that part in your panels and your set(that is if ChatLineV is your main panel)

    Every man is the architect of his own fortune.
    Posted 11 months ago - #13

    Permalink

  14. Rival Darkieth
    offline
    Member
    Posts: 340

    Well. There are two panels. The horizontal line is ChatLineH and the vertical line is ChatLineV.

    Removing either will also remove the same part from the target frame.

    Sent my files to Sinaris on his request in order for him to take a look at them, perhaps he can find what's causing it.

    Posted 11 months ago - #14

    Permalink

  15. Rival Darkieth
    offline
    Member
    Posts: 340

    Removing the entire code section removes both panels. So there's something in here that's causing it :|

    local ChatLineV = CreateFrame( "Frame", "ChatLineV", TukuiTarget )
    ChatLineV:CreatePanel( "Default", 1, 20, "CENTER", TukuiTarget, "CENTER", -90, -25 )
    
    local ChatLineH = CreateFrame( "Frame", "ChatLineH", TukuiTarget )
    ChatLineH:CreatePanel( "Default", 80, 1, "CENTER", ChatLineV, "CENTER", 40, -10 )
    Posted 11 months ago - #15

    Permalink

  16. Hero Pat
    online
    VIP
    Posts: 2,654

    Where are you putting the code?

    Posted 11 months ago - #16

    Permalink

  17. Rival Darkieth
    offline
    Member
    Posts: 340

    In the layout file.

    Posted 11 months ago - #17

    Permalink

  18. Gladiator Sinaris
    online
    VIP
    Posts: 1,332

    I am at home in a few minutes. I will Take a Look at this then.

    Posted 11 months ago - #18

    Permalink

  19. Rival Darkieth
    offline
    Member
    Posts: 340

    Sinaris said:
    I am at home in a few minutes. I will Take a Look at this then.

    That's very kind of you Sinaris.

    Posted 11 months ago - #19

    Permalink

  20. Gladiator Sinaris
    online
    VIP
    Posts: 1,332

    In which layout do you have this? Tukui oder Cohesion?

    Posted 11 months ago - #20

    Permalink

  21. Gladiator Sinaris
    online
    VIP
    Posts: 1,332

    send you and pm with the solution :P

    Posted 11 months ago - #21

    Permalink

  22. Rival Darkieth
    offline
    Member
    Posts: 340

    Solved. Thanks Sinaris.

    Posted 11 months ago - #22

    Permalink

  23. Gladiator Sinaris
    online
    VIP
    Posts: 1,332

    glad to hear that its working now :)

    Posted 11 months ago - #23

    Permalink

RSS feed for this topic

Reply

You must log in to post.