1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
ZO_ENDLESS_DUNGEON_BUFF_GRID_ENTRY_DIMENSIONS_KEYBOARD_X = 74
ZO_ENDLESS_DUNGEON_BUFF_GRID_ENTRY_DIMENSIONS_KEYBOARD_Y = 74
ZO_ENDLESS_DUNGEON_BUFF_GRID_ENTRY_ICON_DIMENSIONS_KEYBOARD_X = 64
ZO_ENDLESS_DUNGEON_BUFF_GRID_ENTRY_ICON_DIMENSIONS_KEYBOARD_Y = 64
ZO_ENDLESS_DUNGEON_BUFF_GRID_ENTRY_PADDING_KEYBOARD_X = 0
ZO_ENDLESS_DUNGEON_BUFF_GRID_ENTRY_PADDING_KEYBOARD_Y = 0
ZO_ENDLESS_DUNGEON_BUFF_GRID_ENTRY_ROW_HEIGHT_KEYBOARD = ZO_ENDLESS_DUNGEON_BUFF_GRID_ENTRY_DIMENSIONS_KEYBOARD_Y + ZO_ENDLESS_DUNGEON_BUFF_GRID_ENTRY_PADDING_KEYBOARD_Y
ZO_ENDLESS_DUNGEON_BUFF_GRID_ENTRY_WIDTH_KEYBOARD = ZO_ENDLESS_DUNGEON_BUFF_GRID_ENTRY_DIMENSIONS_KEYBOARD_X + ZO_ENDLESS_DUNGEON_BUFF_GRID_ENTRY_PADDING_KEYBOARD_X
ZO_ENDLESS_DUNGEON_BUFF_GRID_HEADER_ROW_HEIGHT_KEYBOARD = 32
ZO_ENDLESS_DUNGEON_BUFF_GRID_SECTION_PADDING_KEYBOARD_Y = 20
ZO_ENDLESS_DUNGEON_BUFF_TRACKER_GRID_LIST_MAX_WIDTH_KEYBOARD = 390
ENDLESS_DUNGEON_BUFF_TRACKER_SCENE_KEYBOARD = scene
end
end
ZO_EndlessDungeonBuffTracker_Shared . InitializeGridList ( self , "ZO_EndDunBuffTrackerGridEntry_Keyboard" , "ZO_EndDunBuffTrackerGridHeader_Keyboard" )
local NO_AUTO_FILL_ROWS = nil
local RESIZE_TO_FIT_COLUMN_MAX = 5
local RESIZE_TO_FIT_ROW_MAX = 6
self . gridList = ZO_GridScrollList_Keyboard : New ( self . gridListControl , NO_AUTO_FILL_ROWS , RESIZE_TO_FIT_COLUMN_MAX , RESIZE_TO_FIT_ROW_MAX )
local NO_HIDE_CALLBACK = nil
local NO_RESET_CALLBACK = nil
local CONSIDER_HEADER_WIDTH = true
gridList : AddEntryTemplate ( "ZO_EndDunBuffTrackerGridEntry_Keyboard" , ZO_ENDLESS_DUNGEON_BUFF_GRID_ENTRY_DIMENSIONS_KEYBOARD_X , ZO_ENDLESS_DUNGEON_BUFF_GRID_ENTRY_DIMENSIONS_KEYBOARD_Y , ZO_GetCallbackForwardingFunction ( self , self . SetupGridEntry ) , NO_HIDE_CALLBACK , ZO_GetCallbackForwardingFunction ( self , self . ResetGridEntry ) , ZO_ENDLESS_DUNGEON_BUFF_GRID_ENTRY_PADDING_KEYBOARD_X , ZO_ENDLESS_DUNGEON_BUFF_GRID_ENTRY_PADDING_KEYBOARD_Y )
gridList : AddHeaderTemplate ( "ZO_EndDunBuffTrackerGridHeader_Keyboard" , ZO_ENDLESS_DUNGEON_BUFF_GRID_HEADER_ROW_HEIGHT_KEYBOARD , ZO_EndlessDungeonBuffTracker_Shared . SetupGridHeader , NO_HIDE_CALLBACK , NO_RESET_CALLBACK , CONSIDER_HEADER_WIDTH )
end
end
local OFFSET_MARGIN_X = 15
local offsetX = - ( controlLeft - parentLeft + OFFSET_MARGIN_X )
end
end
return "endlessDungeonBuffTrackerKeyboard"
end
function ZO_EndlessDungeonBuffTracker_Keyboard : UpdateGridListDimensions ( numVerseEntries , numVisionEntries )
ZO_EndlessDungeonBuffTracker_Shared . UpdateGridListDimensions ( self , numVerseEntries , numVisionEntries , ZO_ENDLESS_DUNGEON_BUFF_TRACKER_GRID_LIST_MAX_WIDTH_KEYBOARD , ZoFontWinH3 , ZO_ENDLESS_DUNGEON_BUFF_GRID_ENTRY_WIDTH_KEYBOARD , ZO_ENDLESS_DUNGEON_BUFF_GRID_ENTRY_ROW_HEIGHT_KEYBOARD , ZO_ENDLESS_DUNGEON_BUFF_GRID_HEADER_ROW_HEIGHT_KEYBOARD , ZO_ENDLESS_DUNGEON_BUFF_GRID_SECTION_PADDING_KEYBOARD_Y )
end
end |