+ Reply to Thread
Results 1 to 4 of 4

Thread: EnKai bugs

  1. #1
    RIFT Guide Writer Redcruxs's Avatar
    Join Date
    Jan 2011
    Posts
    3,935

    Default EnKai bugs

    Found a few bugs while working with the EnKai UI-library involving the grid setup



    it seems that
    grid:SetBodyHighlightColor
    grid:SetLabelHighlightColor
    grid:SetBodySelectedColor
    grid:SetLabelSelectedColor

    Don't do anything

    I discovered this when i was trying to find a workaround for the issue of scrolling while a row is selected, the color of the row never changes back to its original color unless you specifically set it when you create the cell. the problem is that it overrides the text color when you highlight the row and the color i want the text to be is the same color as the label highlight color (white on white). So to fix that, i changed the label highlight color but it still was white.

    anyone else use this library or have any tips?

    as a workaround I inverted the colors of the table so the highlight wouldn't matter

  2. #2
    Champion
    Join Date
    Jun 2011
    Posts
    561

    Default

    There was a bug in SetBodyHighlightColor and SetLabelHighlightColor which will be fixed in V1.2.8. I'll upload the new version to curse today.

    Couldn't however find any bug in SetBodySelectedColor and SetLabelSelectedColor. These work for me as far as I can tell.

    What might be the case is that you have to tell the grid widget that selecting is to be active using grid:SetSelectable(true).

    Another thing is that if you use the color option for the cell values this label color will not be overridden by either SetLabelHighlightColor or SetLabelSelectedColor.

    Here's a piece of code from nkRebuff where I tested the functions:

    Code:
    grid = EnKai.uiCreateFrame("nkGrid", name .. 'grid', tabPane)
    		
    grid:SetHeaderHeight(25)
    grid:SetPoint("TOPLEFT", gridBG, "TOPLEFT", 8, 8)
    grid:SetHeaderLabeLColor(0.925, 0.894, 0.741, 1)
    grid:SetBorderColor(0, 0, 0, 1)
    grid:SetBodyColor(0.133, 0.133, 0.133, 1)
    grid:SetBodyHighlightColor(1, 0, 0, 1)
    grid:SetLabelHighlightColor(1, 1, 1, 1)
    grid:SetBodySelectedColor(0,1,0,1)
    grid:SetLabelSelectedColor(1,1,1,1)
    grid:SetTransparentHeader()
    grid:SetSelectable(true)
    grid:SetLayer(2)
    		
    local cols = {	{ align = 'center', texture = true, textureType = 'nkRebuff', textureHeight = 14, textureWidth = 14, width = 20,  }, 
    			{ align = 'center', texture = true, textureType = 'Rift', width = 30}, 
    			{ align = 'left', width = 300 } }	
    		
    grid:SetVisible(false)	
    grid:Layout (cols, gridRows)
    Hope this helps. If you need more info just let me know.

    I still haven't found the time to write the documentation as I'm recovering from an operation and the time I'm able to sit in front of a PC is somewhat limited.

    Cheers
    N.

  3. #3
    RIFT Guide Writer Redcruxs's Avatar
    Join Date
    Jan 2011
    Posts
    3,935

    Default

    Quote Originally Posted by Naifu View Post
    There was a bug in SetBodyHighlightColor and SetLabelHighlightColor which will be fixed in V1.2.8. I'll upload the new version to curse today.

    Couldn't however find any bug in SetBodySelectedColor and SetLabelSelectedColor. These work for me as far as I can tell.

    What might be the case is that you have to tell the grid widget that selecting is to be active using grid:SetSelectable(true).

    Another thing is that if you use the color option for the cell values this label color will not be overridden by either SetLabelHighlightColor or SetLabelSelectedColor.

    Here's a piece of code from nkRebuff where I tested the functions:

    Code:
    grid = EnKai.uiCreateFrame("nkGrid", name .. 'grid', tabPane)
    		
    grid:SetHeaderHeight(25)
    grid:SetPoint("TOPLEFT", gridBG, "TOPLEFT", 8, 8)
    grid:SetHeaderLabeLColor(0.925, 0.894, 0.741, 1)
    grid:SetBorderColor(0, 0, 0, 1)
    grid:SetBodyColor(0.133, 0.133, 0.133, 1)
    grid:SetBodyHighlightColor(1, 0, 0, 1)
    grid:SetLabelHighlightColor(1, 1, 1, 1)
    grid:SetBodySelectedColor(0,1,0,1)
    grid:SetLabelSelectedColor(1,1,1,1)
    grid:SetTransparentHeader()
    grid:SetSelectable(true)
    grid:SetLayer(2)
    		
    local cols = {	{ align = 'center', texture = true, textureType = 'nkRebuff', textureHeight = 14, textureWidth = 14, width = 20,  }, 
    			{ align = 'center', texture = true, textureType = 'Rift', width = 30}, 
    			{ align = 'left', width = 300 } }	
    		
    grid:SetVisible(false)	
    grid:Layout (cols, gridRows)
    Hope this helps. If you need more info just let me know.

    I still haven't found the time to write the documentation as I'm recovering from an operation and the time I'm able to sit in front of a PC is somewhat limited.

    Cheers
    N.
    Thanks, I'll give it a try, GL with recovery

  4. #4
    Champion
    Join Date
    Jun 2011
    Posts
    561

    Default

    I uploaded EnKai Version 1.2.9. You'll find a readme.odt in there. That file contains the library documentation in it's current state. It's about halfway done. I focussed mainly on the grid widget so maybe that will be helpfull for you.

    Cheers
    N.

+ 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