All pastes #90097 Raw Edit

Miscellany

public text v1 · immutable
#90097 ·published 2006-07-17 09:44 UTC
rendered paste body
	local slashcommands = {
		type= 'group',
		args = {
			player = {
				name = "player", 
				type = 'group',
				desc = "Player settings.",			
				args = {
					StatusTextStyle = {
						name = "StatusTextStyle", 
						type = 'group',
						desc = "Sets the statusbar text style.",
						pass = true,
						get = function()
							return self.db.profile.player.StatusTextStyle
						end,
						set = function(key)
							self.db.profile.player.StatusTextStyle = key
						end,
						func = function(key)
							-- do nothing
						end,						
						args = {
							Absolute = {
								name = "Absolute", 
								type = 'execute',
								desc = "Absolute",								
							},
							Difference = {
								name = "difference", 					
								type = 'execute',
								desc = "Difference",
							}		
						}					
					}				
				}
			}
		}
	}