All pastes #2047280 Raw Edit

cfg.lua

public text v1 · immutable
#2047280 ·published 2011-04-16 22:35 UTC
rendered paste body
  local addon, ns = ...
  local cfg = CreateFrame("Frame")

  -----------------------------
  -- MEDIA
  -----------------------------
  local MediaPath = "Interface\\Addons\\m_ActionBars\\media\\"
  cfg.textures_normal = MediaPath.."icon"
  cfg.textures_pushed = MediaPath.."icon"
  cfg.button_font = "Fonts\\FRIZQT__.TTF"
  
  -----------------------------
  -- CONFIG
  -----------------------------
  --ActionBars config
  cfg.enable_action_bars = true			-- enable action bars modifications
  cfg.enable_totembar = false			-- enable totembar modifications
	cfg.totembar_scale = 1				-- TotemBar scale
	cfg.totembar_enable_timers = true	-- Enable totember timers
	cfg.totembar_alpha = 1				-- Totembar's opacity
  cfg.size = 35							-- setting up default buttons size
  cfg.spacing = 2						-- spacing between buttons
  cfg.hide_side_bars = false				-- hiding LeftBar and RightBar making them available via /extra or /eb command
  cfg.hide_exit_vehicle_button = false	-- exit vehicle button
	cfg.EVB_user_placed = true			-- if set to false exit vehicle button will be always placed at ActionButton8 position
  cfg.hide_micromenu = true 			-- hiding MicroMenu making it available via /extra or /eb command
	cfg.micromenu_scale = 0.85			-- Micromenu scale
	cfg.micromenu_onmouseover = false	-- Show micromenu bar on mouse over

  cfg.frame_positions = { 				-- Bars positioning
      [1]  =  { a= "BOTTOM",		x=	0,		y= 0	},  -- MainBar 
      [2]  =  { a= "BOTTOM",		x=	0,		y= 1	},  -- BottomLeftBar
      [3]  =  { a= "BOTTOM",		x=	111,	y= 1	},  -- BottomRightBar
      [4]  =  { a= "BOTTOM",		x=	222,	y= 1	},  -- LeftBar
      [5]  =  { a= "BOTTOM",		x=	0,		y= 0	},  -- RightBar
      [6]  =  { a= "BOTTOM",		x=	0,		y= 0	},  -- ShapeShiftBar
      [7]  =  { a= "BOTTOM",		x=	0,		y= 0	},  -- PetBar
      [8]  =  { a= "BOTTOM",		x=	0,		y= 0	},  -- PetBar for Death Knights (due to runebar, MonoUI specific)
      [9]  =  { a= "BOTTOM",		x=	0,		y= 0	},  -- TotemBar
	  [11] =  { a= "BOTTOM",		x=	0,		y= 0	},  -- MicroMenu
	  [12] =  { a= "BOTTOM",		x=	0,		y= 0	},  -- RaidIconBar
	  [13] =  { a= "BOTTOM",		x=	0,		y= 0	},  -- MarkerFlareBar
	  [14] =  { a= "BOTTOM",		x=	0,		y= 0	},	-- Vehicle Exit Button custom position if cfg.VEB_user_placed set to 'true'
  }
  cfg.config_mainbar = {		
	--[[orientation:]] "H",			--[[rows(H)/columns(V):]] 1,	--[[buttons:]] 12,	
	--[[button size:]] cfg.size,	--[[spacing between buttons:]] cfg.spacing,
	--[[disable bar:]] true,		--[[show on mouseover:]] false,	--[[show when in combat:]] false,
	--[[bar alpha:]] 1,				--[[fade out alpha:]] 0
	}
  cfg.config_bottomleftbar = {	
	--[[orientation:]] "V",			--[[rows(H)/columns(V):]] 3,	--[[buttons:]] 12,					
	--[[button size:]] cfg.size,	--[[spacing between buttons:]] cfg.spacing,
	--[[disable bar:]] false,		--[[show on mouseover:]] false,	--[[show when in combat:]] false,
	--[[bar alpha:]] 1,				--[[fade out alpha:]] 0
  	}
  cfg.config_bottomrightbar = {	
	--[[orientation:]] "V",			--[[rows(H)/columns(V):]] 3,	--[[buttons:]] 12,					
	--[[button size:]] cfg.size,	--[[spacing between buttons:]] cfg.spacing,
	--[[disable bar:]] false,		--[[show on mouseover:]] false,	--[[show when in combat:]] false,
	--[[bar alpha:]] 1,				--[[fade out alpha:]] 0
  	}
  cfg.config_leftbar = {		
	--[[orientation:]] "V",			--[[rows(H)/columns(V):]] 3,	--[[buttons:]] 12,
	--[[button size:]] cfg.size, 	--[[spacing between buttons:]] cfg.spacing,
	--[[disable bar:]] false,		--[[show on mouseover:]] false,	--[[show when in combat:]] false,
	--[[bar alpha:]] 1,				--[[fade out alpha:]] 0 
 	}
  cfg.config_rightbar = {		
	--[[orientation:]] "H",			--[[rows(H)/columns(V):]] 1,	--[[buttons:]] 12,
	--[[button size:]] cfg.size,	--[[spacing between buttons:]] cfg.spacing,
	--[[disable bar:]] true,		--[[show on mouseover:]] false,	--[[show when in combat:]] false,
	--[[bar alpha:]] 1,				--[[fade out alpha:]] 0  
	}
  cfg.config_shapeshiftbar = {	
	--[[orientation:]] "H",			--[[rows(H)/columns(V):]] 1,	--[[buttons:]] 5,	
	--[[button size:]] 30, 			--[[spacing between buttons:]] cfg.spacing,	
	--[[disable bar:]] true,		--[[show on mouseover:]] false,	--[[show when in combat:]] false,
	--[[bar alpha:]] 1,				--[[fade out alpha:]] 0  
	}
  cfg.config_petbar = {			
	--[[orientation:]] "H",			--[[rows(H)/columns(V):]] 1,	--[[buttons:]] NUM_PET_ACTION_SLOTS,	
	--[[button size:]] cfg.size,	--[[spacing between buttons:]] cfg.spacing,	
	--[[disable bar:]] true,		--[[show on mouseover:]] true,	--[[show when in combat:]] false,
	--[[bar alpha:]] 1,				--[[fade out alpha:]] 0  
	}
  cfg.config_raidiconbar = {	
	--[[orientation:]] "H",			--[[button size:]] cfg.size, 	--[[spacing between buttons:]] cfg.spacing,	
	--[[disable bar:]] true,		--[[show on mouseover:]] true,	--[[show when in combat:]] false,
	--[[bar alpha:]] 1,				--[[fade out alpha:]] 0  
	}
  cfg.config_markerflarebar = {	
	--[[orientation:]] "V",			--[[button size:]] cfg.size,	--[[spacing between buttons:]] cfg.spacing,	
	--[[disable bar:]] true,		--[[show on mouseover:]] true,	--[[show only when in group:]] true,
	--[[bar alpha:]] 1,				--[[fade out alpha:]] 0  
	}
  cfg.config_totembar = {	
	--[[enable timers:]] true,		--[[button size:]] cfg.size,	--[[spacing between buttons:]] cfg.spacing,	
	--[[disable bar:]] true,		--[[bar alpha:]] 1	
	}
  --ButtonsStyler config
  cfg.hide_hotkey = false		-- remove key binding text from the bars
  cfg.hide_macro_name = true	-- remove macro name text from the bars
  cfg.count_font_size = 12		-- remove count text from the bars
  cfg.hotkey_font_size = 11		-- font size for the key bindings text
  cfg.name_font_size = 8		-- font size for the macro name text
  cfg.colors = {
       normal = {r =  0,	g =  0, 	b =  0	},
       pushed = {r =  1,	g =  1, 	b =  1	},
    highlight = {r =  .9,	g =  .8,	b =  .6	},
      checked = {r =  .9,	g =  .8,	b =  .6	},
   outofrange = {r =  .8,	g =  .3, 	b =  .2	},
    outofmana = {r =  .3,	g = .3, 	b =  .7	},
       usable = {r =  1,	g =  1, 	b =  1	},
     unusable = {r = .4,	g = .4, 	b = .4	}
  }
  
  -- HANDOVER
  ns.cfg = cfg