Skip to content

LinearBarVertical #487

Answered by dnaldoog
spiffo-smith asked this question in Q&A
Sep 18, 2022 · 4 comments · 10 replies
Discussion options

You must be logged in to vote

I got this code from @Ted-juh, so I don't want to take credit for it, but seeing as I was experimenting with his code I thought I would share it.

You can create a vertical bar using this code at startup: Here I have 7 regular uiSlider and 1 uiFixedSlider with names level1 ... level8

The trick is to set value background colour to transparent 00FFFFFF or set the alpha to something like 22FFFF00 but it overlays the
Thumb colour colour (see LEVEL 7) , so if it's set to an opaque value e.g. FFFFFFFF you won't see the vertical bar.

init = function(--[[ CtrlrInstance --]] type)
    for i = 1, 8 do
        local sType = panel:getComponent("level" .. i):getProperty("uiType")
        if sType == "u…

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
2 replies
@spiffo-smith
Comment options

@Ted-juh
Comment options

Comment options

You must be logged in to vote
4 replies
@spiffo-smith
Comment options

@Ted-juh
Comment options

@spiffo-smith
Comment options

@spiffo-smith
Comment options

Comment options

You must be logged in to vote
2 replies
@spiffo-smith
Comment options

@Ted-juh
Comment options

Comment options

You must be logged in to vote
2 replies
@spiffo-smith
Comment options

@dnaldoog
Comment options

Answer selected by spiffo-smith
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants