summaryrefslogtreecommitdiff
path: root/plugins/MyDetails/Docs/Skins/Pidgin/MyDetails.msk
blob: 89295899f87d7c156a9e5717539c02abdd4f6568 (plain)
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
function configure()
{
	// Default fonts
	
	status_msg.font.face = "Tahoma"
	status_msg.font.size = 8
	status_msg.font.color = RGB(0,0,0)
}

function draw()
{
	if (status_msg.text == "")
		status_msg.text = status_name.text

	// ToolTips
	status_icon.toolTip = protocol.text + " : " + status_name.text
	if (info.protocol.locked)
		status_icon.toolTip += " (locked)"
	if (email.text > 0)
		status_icon.toolTip += " [" + email.text + " emails]"
	
	status_msg.toolTip = status_msg.text	
	
	// Borders
	window.borders = 10
	
	// Visible
	status_msg.visible = true
	avatar.visible = true
	status_icon.visible = true
	
	status_name.visible = false
	protocol.visible = false
	nickname.visible = false
	prev_proto.visible = next_proto.visible = false
	listening_icon.visible = listening.visible = false
	email_icon.visible = email.visible = false
		
	// Space to draw the frame around
	var BORDER_SPACE = 2
	status_icon.borders = BORDER_SPACE
	status_msg.borders = BORDER_SPACE
	status_name.borders = BORDER_SPACE
	
	// Positions
	var HEIGHT = 45
	
	avatar.right = window.right
	avatar.top = 0
	avatar.width = HEIGHT
	avatar.height = HEIGHT
	
	status_icon.left = 0
	status_icon.top = (HEIGHT - status_icon.height) / 2

	status_msg.left = status_icon.right + 5
	status_msg.top = (HEIGHT - status_msg.height) / 2
	status_msg.right = avatar.left - 5
}