Yes, thank you for noticing that. I changed it and it still doesn't work. I can click all day in the box and nothing happens.
Below is the function that is a screen before the above one. This one works.
+ Code SnippetFunction PlyrAccount()
`SetScreen()
FileExplore.SetWindowStyle(0x10000000) // || 0x01000000 || 0x80000000) // (WS_VISIBLE | WS_CLIPSIBLINGS | WS_POPUP)
//LoadImage(1, "GoalBall.png")
//CreateSprite(1, 1)
//SetSpriteSize(1, 1200, 431)
//SetSpritePosition(1, 0, 370)
// load images
//LoadImage(2, "ManagerRed.png") // Manager up
//LoadImage(3, "ManagerRedDark.png") // Manager down
//LoadImage(4,"CoachRed.png") // coach up
//LoadImage(5,"CoachRedDark.png") // coach down
//LoadImage(6,"LoadSavedGameRed.png") // load saved game up
//LoadImage(7,"LoadSavedGameRedDark.png") // load saved game down
` screen title
CreateText(0,"Select Game Type")
SetTextSize(0,25)
SetTextFont(0,1)
SetTextColor(0,250,12,0,255)
TextW=GetTextTotalWidth(0)
SetTextPosition(0,600- TextW/2,20)
//---------------------------------text above manager button -----------
` every business text
CreateText(1,"Every business")
SetTextSize(1, 12)
SetTextFont(1, 1) // set font to use
SetTextColor(1,255, 255, 255, 255) // set text color
SetTextPosition(1,221,257)
` function controlled text
CreateText(2,"function controlled")
SetTextSize(2, 12)
SetTextFont(2,1) // set font to use
SetTextColor(2, 255,255, 255, 255) // set text color
SetTextPosition(2,190,282)
` by player text
CreateText(3,"by player")
SetTextSize(3, 12)
SetTextFont(3,1) // set font to use
SetTextColor(3, 255,255, 255, 255) // set text color
SetTextPosition(3,247,307)
CreateText(4, "Manager")
SetTextSize(4, 16)
SetTextFont(4, 1)
SetTextColor(4, 255, 0, 0, 255)
SetTextPosition(4, 245, 345)
`----------------------------------text above coach button
CreateText(5,"Every business")
SetTextSize(5, 12)
SetTextFont(5, 1) // set font to use
SetTextColor(5,255, 255, 255, 255) // set text color
SetTextPosition(5,824,257)
CreateText(6,"function controlled")
SetTextSize(6, 12)
SetTextFont(6,1) // set font to use
SetTextColor(6, 255,255, 255, 255) // set text color
SetTextPosition(6,796,282)
CreateText(7,"by computer")
SetTextSize(7, 12)
SetTextFont(7,1) // set font to use
SetTextColor(7, 255,255, 255, 255) // set text color
SetTextPosition(7,842,307)
CreateText(8, "Coach")
SetTextSize(8, 16)
SetTextFont(8, 1)
SetTextColor(8, 255, 0, 0, 255)
SetTextPosition(8, 860, 345)
`---------------------------------------------------------------------
`----------------------------------------text above Load saved game button
` load saved game text
CreateText(9,"Load saved game")
SetTextSize(9,12)
SetTextFont(9,1)
SetTextColor(9, 255,255, 255, 255)
TextW=GetTextTotalWidth(9)
SetTextPosition(9,600-TextW/2,437)
CreateText(10,"Load saved game")
SetTextSize(10,16)
SetTextFont(10,1)
SetTextColor(10, 255,0, 0, 255)
SetTextPosition(10,505,467)
// PlyrAcct main loop
do
MouseX = GetPointerX()
MouseY = GetPointerY()
print( GameType.length)
DrawBox(1,1,1198,798,MakeColor(220,220,0),MakeColor(220,220,0),MakeColor(220,220,0),MakeColor(220,220,0),0) // screen outer frame
//DrawBox(395,45,800,550,MakeColor(220,220,0),MakeColor(220,220,0),MakeColor(220,220,0),MakeColor(220,220,0),0) // title frame
DrawBox(172,341,402,364,MakeColor(220,220,0),MakeColor(220,220,0),MakeColor(220,220,0),MakeColor(220,220,0),0) // Manager box
DrawBox(775,341,1005,364,MakeColor(220,220,0),MakeColor(220,220,0),MakeColor(220,220,0),MakeColor(220,220,0),0) // Coach box
DrawBox(485,463,715,486,MakeColor(220,220,0),MakeColor(220,220,0),MakeColor(220,220,0),MakeColor(220,220,0),0) // Load saved game box
// manager text 10
if GetPointerState() = 1
if MouseX > 171 and MouseX <403 and MouseY > 340 and MouseY < 365
SetTextColor(4, 250, 250, 250, 255)
Sync()
Sleep(150)
DeleteTextObjects()
Exit
endif
endif
if GetPointerState() = 1
if MouseX > 775 and MouseX < 1005 and MouseY > 340 and MouseY < 365
SetTextColor(8, 250, 250, 250, 255)
Sync()
Sleep(150)
DeleteTextObjects()
Exit
endif
endif
if GetPointerState() = 1
if MouseX > 485 and MouseX < 715 and MouseY > 463 and MouseY < 486
SetTextColor(10, 250, 250, 250, 255)
Sync()
Sleep(150)
DeleteTextObjects()
Exit
endif
endif
Sync()
loop
PlayerNumberSelection()
EndFunction
function DeleteTextObjects()
for i = 0 to 10
DeleteText(i)
next i
endfunction