Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function MassegeBox(MassegeBoxMode,MassegeBoxMessage_1,MassegeBoxMessage_2,MassegeBoxMessage_3)
- function MassegeBoxGui(select)
- term.setBackgroundColor(colors.pink)
- paintutils.drawImage(Menu_Message_Box,14,7)
- term.setCursorPos(16,8)
- term.setTextColor(colors.black)
- term.setBackgroundColor(colors.pink)
- print(MassegeBoxMessage_1)
- term.setCursorPos(16,9)
- print(MassegeBoxMessage_2)
- term.setCursorPos(16,10)
- print(MassegeBoxMessage_3)
- if MassegeBoxMode == "Yes/No" then
- if select == true then
- MassegeBoxOK=true
- term.setCursorPos(16,11)
- term.write(" [Yes] No ")
- MassegeBoxOK=true
- elseif select == false then
- MassegeBoxOK=false
- term.setCursorPos(16,11)
- term.write(" Yes [No] ")
- end
- MassegeBoxOK=select ----Это переменная в которой true - Yes а False - No
- end
- end
- MassegeBoxGui(true)
- bselect=true
- MassegeBoxOK=true
- if MassegeBoxMode == "Yes/No" then
- while true do
- event,key = os.pullEvent("key")
- if key == 205 then
- MassegeBoxGui(false)
- end
- if key == 203 then
- MassegeBoxGui(true)
- end
- if key == 28 then
- break
- end
- end
- elseif MassegeBoxMode == "OK" then
- term.setCursorPos(16,11)
- print(" [OK]")
- while true do
- event,key = os.pullEvent("key")
- if key == 28 then
- break
- end
- end
- -------
- end
- if MassegeBoxMode == "Clear" then
- ---Скрипт обновляющий экран
- end
- if MassegeBoxMode == "Show" then
- term.setTextColor(colors.white)
- else
- term.setTextColor(colors.white)
- ---Скрипт обновляющий экран
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement