local addon, ns = ...

--[[ 대화 글꼴 크기 변경 관련 ]]--
CHAT_FONT_HEIGHTS = {10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24}

ns.Config = {
	tweaks = {
		fadeframe 		= false,	--Enable/Disable fading of frame when u mouseover
									--The memory leak was actually caused by tainting issues I didnt see. DOH!
									--So enabling fadeframe will still cause a slight memory increase, but not as drastic as before.
		channelflash 	= false, 	--Flash tabs when you receive custom channel messages
		filterbar		= false,	--False hides the black bar with filters on the combat log.  True keeps original functionality
		im_alpha		= false,	 --Enable/disable fading the editbox for non focues frames when IM chatstyle is enabled
		--[[ 추가 시작 ]]--
		mouseover		= false,	-- 마우스 오버 아이템 표시
		altkey			= true,	-- 알트+클릭으로 파티 초대
		controlkey		= true,	-- 쉬프트+컨트롤+클릭으로 친구 추가
		chatcolor		= true,	-- 대화 입력 상자 색상
		--[[ 추가 끝 ]]--
	},
	blacklist = { --Disables all formatting on certain chat frames.
		[ChatFrame2]	= true,		--Combat Log
	},
	font = { 						--False/invalid values inherit ChatFontNormal values
		enabled			= false,		--Enables/disables custom chatframe font settings.  Enabling will most likely break any font replacing addons affecting chatframes
		name 			= false,
		size 			= 16,
		outline 		= 'none', 	--'thin', 'thick', or 'none'.
		shadow = {
			enabled		= false,		--Enable/Disable custom shadowing
			color		= {0, 0, 0, 1},	--r, g, b, alpha (set alpha to 0 to hide the shadow)
			offset		= {1, -1},		--x, y
		},
	},
	editbox = {
		enabled 		= false,		--Enable/Disable module
		docking = {
			location 	= 'top',	--'top', 'bottom'.  Defaults to 'bottom' if an invalid value
			position = {
				--These positions only apply if the editbox is docked at the top
				--The values are in relation to the chat tabs
				--Accepted values: 'above', 'center', 'below'
				classic = 'center',	--Defaults to 'center' if false/invalid
				im		= 'above', 	--This is the position if IM style chat is enabled. Defaults to 'above' if false/invalid
			},
			offset		= 0,		--Positive values move it up, Negative values move it down.  Defaults to 0
		},
		textures = {
			--Setting these values to false will hide the textures
			--Setting these values to true will use original textures
			--You may also set a color to it using the format {r, g, b}
			normal		= {0, 0, 0}, 	--Enable/Disable normal editbox background texture
			focus		= false, 		--Enable/disable focus texture (the colored border)
			alpha		= 0.7,       	--False uses default alpha
		},
		font = { 					--False/invalid values inherit ChatFontNormal values
			enabled		= false,	--Enable/disable custom editbox font settings.  Enabling will most likely break any font replacing addons affecting editboxes
			name		= false,
			size 		= false,
			outline 	= 'none',	--'thin', 'thick', or 'none'.
			shadow = {
				enabled		= false,		--Enables/disables custom shadowing
				color		= {0, 0, 0, 1},	--r, g, b, alpha (set alpha to 0 to hide the shadow)
				offset		= {1, -1},		--x, y
			},
		},
	},
	tabs = {
		enabled 		= true, 	--Enable/disable tabs module
		font = { 					--False/Invalid values inherit GameFontNormalSmall values
			enabled		= true,		--Enable/disable custom tab font settings.  Enabling will most likely break any font replacing addons affecting tabs
			name		= false,
			size 		= 12,
			outline 	= 'thin',	--'thin', 'thick', or 'none'. This is the outline used for below
			shadow = {
				enabled		= false,		--Enable/disable custom shadowing
				color		= {0, 0, 0, 1},	--r, g, b, alpha (set alpha to 0 to hide the shadow)
				offset		= {1, -1},		--x, y
			},
		},
		flash = {
			--There's actually 2 textures for flash
			--One is that blue flash that takes up most of the tab
			--The 2nd is that orange glow at the bottom
			texture 	= false,	--Enable/Disable flash texture
			glow 		= false, 	--Enable/disable glow
			text 		= true,  	--Whether to use the flash color below
		},
		color = {
			--The color logic is:
			--(current|default)->Hover->Flash->Normal
			--Format: {r, g, b, alpha, outlined}
			--RGB values are between 0 and 1
			default = { --Non selected frame
				normal 	= {1, 1, 1, 0.1, true},
				hover 	= {1, 1, 1, 1, true},
				flash 	= {1, 0, 0, 0.5, false}, --Won't be used if config.tabs.flash.text is set to false
			},
			current = { --Selected frame
				normal 	= {0, 0.8, 1, 1, true},
				hover 	= {0, 0.8, 1, 1, true},
				flash 	= {1, 0, 0, 0.5, false}, --Really this should never be used, as tabs dont flash if u have them selected.
			},
		},
	},
	url = {
		enabled 		= true,
		color 			= {1, 1, 85/255}, --Setting to false will not color them
	},
	copychat = {
		enabled 		= true,
		showbutton 		= false, 		--Automatically shown if timestamps are hidden and copychat is enabled
	},
	timestamps = {
		enabled 		= true,			--Enable/Disable timestamp module.  Disabling doesnt hide the blizzard timestamps.
		custom			= false, 		--Allows a custom timestamp format.  Setting the timestamps in interface options will override this.
										--Set to false to use option set in Interface options.
		seperator		= '| ',			--Seperator between timestamp and text (ie. 12:00:00| text)
		color			= {1, 1, 1}, 	--Setting to false will not color them
	},
	battlenet = { --more config options soon to come.
		enabled 		= true,			--Enable/Disable module, this only disables options set below.
		color   		= {0, 1, 0},	--Battlenet names, setting this to false will not color them
	},
	formats = {
		seperator		= false, 	--Replaces the colon between the channel+player and message.  Any string will work
									--ie. If the replacement string was '>'
									--[G] Player: message => [G] Player> message
									--When false it reverts to ':'
		brackets = {
			name 		= true,	--Enable/disable name brackets
			channel 	= true,		--Enable/disable channel brackets
			url 		= true,		--Enable/disable url brackets
		},
	},
	stickyChannels = {
		['say'] 				= true,
		['yell'] 				= true,
		['party'] 				= true,
		['guild'] 				= true,
		['officer'] 			= true,
		['raid'] 				= true,
		['raid_warning'] 		= true,
		['battleground'] 		= true,
		['whisper'] 			= true,
		['bn_whisper'] 			= true,
		['bn_conversation'] 	= true,
		['channel'] 			= true,
	},
	replaces = {
		--Setting any of these to false will revert them to their original form
		['say'] 			= '일',	-- S
		['yell'] 			= '외',	-- Y
		['party'] 			= '파',	-- P
		['party_leader'] 		= '파티장',	-- PL
		['party_guide'] 		= '길잡이',	-- DG
		['guild'] 			= '길',	-- G
		['officer'] 			= '오',	-- O
		['raid'] 			= '공',	-- R
		['raid_leader'] 		= '공장',	-- RL
		['raid_warning'] 		= '경보',	-- RW
		['battleground'] 		= '전',	-- BG
		['battleground_leader']	= '지휘관',	-- BL
		['whisper'] 			= '귓 받음', --Incoming tells  -- W From
		['whisper_inform'] 	= '귓 보냄', 	--Outgoing tells   -- W To
		['channel'] 			= '#', 		--# is replaced by the channel number
		['bn_whisper'] 		= '실명 귓 받음',	-- BW From
		['bn_whisper_inform'] 	= '실명 귓 보냄',		-- BW To
		['bn_conversation'] 	= 'BN:#',
		--For Battnet conversations:
		--# = The channel number
		--? = The conversation number
		--Example: [11. Conversation][Name]: Text
		--With brackets on channel and no brackets on name
		--format: 'BN:#' = [BN:11] Name: Text
		--format: 'BN-?' = [BN-1] Name: Text
	},
	colorByClass = {
		['say'] 				= true,
		['emote'] 				= true,
		['yell'] 				= true,
		['guild'] 				= true,
		['guild_officer'] 		= true,
		['guild_achievement'] 	= true,
		['achievement'] 		= true,
		['whisper'] 			= true,
		['party'] 				= true,
		['party_leader'] 		= true,
		['raid'] 				= true,
		['raid_leader'] 		= true,
		['raid_warning'] 		= true,
		['battleground'] 		= true,
		['battleground_leader'] = true,
		['channel'] 			= true,
	},
}