WindowRectOp( win, 2,3,height*2,-3,height*-1,ColourNameToRGB("brown"))
WindowRectOp( win, 1,3,height*2,-3,height*-1, ColourNameToRGB("black"))
width = WindowTextWidth(win, "F", "Up")
WindowText(win, "F", "Up", 5, height+((height-leading)*i),0,0,exits["up"].c, false)
left = 5
top = height+((height-leading)*i)
right = left + width
bottom = top + height
if exits["up"].show == true then
WindowAddHotspot(win, "up", left, top, right, bottom,
"compass_mouseover", "compass_cancelmouseover", "compass_mousedown", "compass_cancelmousedown", "compass_mouseup",
"Move Up", 1, 0)
end
width = WindowTextWidth(win, "F", "North")
WindowText(win, "F", "North", (144-width)/2, height+((height-leading)*i),0,0,exits["north"].c, false)
left = (144-width)/2
top = height+((height-leading)*i)
right = left + width
bottom = top + height
if exits["north"].show == true then
WindowAddHotspot(win, "north", left, top, right, bottom,
"compass_mouseover", "compass_cancelmouseover", "compass_mousedown", "compass_cancelmousedown", "compass_mouseup",
"Move North", 1, 0)
end
i = i+1
width1 = WindowTextWidth(win, "F", "NW")
width2 = WindowTextWidth(win, "f", " | ")
width3 = WindowTextWidth(win, "F", "NE")
width = (144 - (width1 + width2 + width3))/2
WindowText(win, "F", "NW", width, height+((height-leading)*i),0,0,exits["northwest"].c, false)
left = width
top = height+((height-leading)*i)
right = left + width1
bottom = top + height
if exits["northwest"].show == true then
WindowAddHotspot(win, "northwest", left, top, right, bottom,
"compass_mouseover", "compass_cancelmouseover", "compass_mousedown", "compass_cancelmousedown", "compass_mouseup",
"Move Northwest", 1, 0)
end
WindowText(win, "f", " | ", width+width1, height+((height-leading)*i),0,0,0,false)
WindowText(win, "F", "NE", width+width1+width2, height+((height-leading)*i),0,0,exits["northeast"].c, false)
left = width+width1+width2
top = height+((height-leading)*i)
right = left + width3
bottom = top + height
if exits["northeast"].show == true then
WindowAddHotspot(win, "northeast", left, top, right, bottom,
"compass_mouseover", "compass_cancelmouseover", "compass_mousedown", "compass_cancelmousedown", "compass_mouseup",
"Move Northeast", 1, 0)
end
i = i+1
width = WindowTextWidth(win, "f", "\ | /")
WindowText(win, "f", "\ | /", (144-width)/2, height+((height-leading)*i),0,0,0, false)
i = i+1
width1 = WindowTextWidth(win, "F", "West")
width2 = WindowTextWidth(win, "f", "<--+-->")
width3 = WindowTextWidth(win, "F", "East")
width = (144 - (width1 + width2 + width3))/2
WindowText(win, "F", "West", width, height+((height-leading)*i),0,0,exits["west"].c, false)
left = width
top = height+((height-leading)*i)
right = left + width1
bottom = top + height
if exits["west"].show == true then
WindowAddHotspot(win, "west", left, top, right, bottom,
"compass_mouseover", "compass_cancelmouseover", "compass_mousedown", "compass_cancelmousedown", "compass_mouseup",
"Move West", 1, 0)
end
WindowText(win, "f", "<--+-->", width+width1, height+((height-leading)*i),0,0,0,false)
WindowText(win, "F", "East", width+width1+width2, height+((height-leading)*i),0,0,exits["east"].c, false)
left = width+width1+width2
top = height+((height-leading)*i)
right = left + width3
bottom = top + height
if exits["east"].show == true then
WindowAddHotspot(win, "east", left, top, right, bottom,
"compass_mouseover", "compass_cancelmouseover", "compass_mousedown", "compass_cancelmousedown", "compass_mouseup",
"Move East", 1, 0)
end
i = i+1
Continued... |