2019-07-07 07:47:48 UNSELECTED

Unknown type code

Copy Copied! Full
TET_COL[math.ceil(TET_Y + 2 + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X - 1)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X - 1)] = TET_COL_OLIGIN end elseif TET_COL_OLIGIN == 4 then if (TEX_ANG == 1) or (TEX_ANG == 3) then if TET_X - 1 < 0.5 then TET_X = TET_X + 1 end if TET_X + 1 > 9.5 then TET_X = TET_X - 1 end if TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X + 1)] > 0 or TET_COL_NOW[math.ceil(TET_Y) * 10 + math.ceil(TET_X - 1)] > 0 then hosei = 1 FLG = true if LEFT_FLG_FLG then TET_X = TET_X - 1 FLG = false end if RIGHT_FLG_FLG then TET_X = TET_X + 1 FLG = false end end TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X + 1)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X - 1)] = TET_COL_OLIGIN else if TET_X - 1 < 0.5 then TET_X = TET_X + 1 end if TET_X > 9.5 then TET_X = TET_X - 1 end if TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X - 1)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 2) * 10 + math.ceil(TET_X - 1)] > 0 then hosei = 1 FLG = true if LEFT_FLG_FLG then TET_X = TET_X - 1 FLG = false end if RIGHT_FLG_FLG then TET_X = TET_X + 1 FLG = false end end TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X - 1)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 2 + hosei) * 10 + math.ceil(TET_X - 1)] = TET_COL_OLIGIN end elseif TET_COL_OLIGIN == 5 then if TEX_ANG == 1 then if TET_X - 1 < 0.5 then TET_X = TET_X + 1 end if TET_X + 1 > 9.5 then TET_X = TET_X - 1 end if TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y) * 10 + math.ceil(TET_X - 1)] > 0 or TET_COL_NOW[math.ceil(TET_Y) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y) * 10 + math.ceil(TET_X + 1)] > 0 then hosei = 1 FLG = true if LEFT_FLG_FLG then TET_X = TET_X - 1 FLG = false end if RIGHT_FLG_FLG then TET_X = TET_X + 1 FLG = false end end TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X - 1)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X + 1)] = TET_COL_OLIGIN elseif TEX_ANG == 2 then if TET_X < 0.5 then TET_X = TET_X + 1 end if TET_X + 1 > 9.5 then TET_X = TET_X - 1 end if TET_COL_NOW[math.ceil(TET_Y + 2) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X + 1)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y) * 10 + math.ceil(TET_X)] > 0 then hosei = 1 FLG = true if LEFT_FLG_FLG then TET_X = TET_X - 1 FLG = false end if RIGHT_FLG_FLG then TET_X = TET_X + 1 FLG = false end end TET_COL[math.ceil(TET_Y + 2 + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X + 1)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN elseif TEX_ANG == 3 then if TET_X - 1 < 0.5 then TET_X = TET_X + 1 end if TET_X + 1 > 9.5 then TET_X = TET_X - 1 end if TET_COL_NOW[math.ceil(TET_Y) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X - 1)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X + 1)] > 0 then hosei = 1 FLG = true if LEFT_FLG_FLG then TET_X = TET_X - 1 FLG = false end if RIGHT_FLG_FLG then TET_X = TET_X + 1 FLG = false end end TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X - 1)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X + 1)] = TET_COL_OLIGIN else if TET_X - 1 < 0.5 then TET_X = TET_X + 1 end if TET_X > 9.5 then TET_X = TET_X - 1 end if TET_COL_NOW[math.ceil(TET_Y + 2) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X - 1)] > 0 or TET_COL_NOW[math.ceil(TET_Y) * 10 + math.ceil(TET_X)] > 0 then hosei = 1 FLG = true if LEFT_FLG_FLG then TET_X = TET_X - 1 FLG = false end if RIGHT_FLG_FLG then TET_X = TET_X + 1 FLG = false end end TET_COL[math.ceil(TET_Y + 2 + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X - 1)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN end elseif TET_COL_OLIGIN == 6 then if TEX_ANG == 1 then if TET_X - 1 < 0.5 then TET_X = TET_X + 1 end if TET_X + 1 > 9.5 then TET_X = TET_X - 1 end if TET_COL_NOW[math.ceil(TET_Y) * 10 + math.ceil(TET_X + 1)] > 0 or TET_COL_NOW[math.ceil(TET_Y) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y) * 10 + math.ceil(TET_X - 1)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X + 1)] > 0 then hosei = 1 FLG = true if LEFT_FLG_FLG then TET_X = TET_X - 1 FLG = false end if RIGHT_FLG_FLG then TET_X = TET_X + 1 FLG = false end end TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X + 1)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X - 1)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X + 1)] = TET_COL_OLIGIN elseif TEX_ANG == 2 then if TET_X < 0.5 then TET_X = TET_X + 1 end if TET_X + 1 > 9.5 then TET_X = TET_X - 1 end if TET_COL_NOW[math.ceil(TET_Y) * 10 + math.ceil(TET_X + 1)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 2) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y) * 10 + math.ceil(TET_X)] > 0 then hosei = 1 FLG = true if LEFT_FLG_FLG then TET_X = TET_X - 1 FLG = false end if RIGHT_FLG_FLG then TET_X = TET_X + 1 FLG = false end end TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X + 1)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 2 + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN elseif TEX_ANG == 3 then if TET_X - 1 < 0.5 then TET_X = TET_X + 1 end if TET_X + 1 > 9.5 then TET_X = TET_X - 1 end if TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X - 1)] > 0 or TET_COL_NOW[math.ceil(TET_Y) * 10 + math.ceil(TET_X - 1)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X + 1)] > 0 then hosei = 1 FLG = true if LEFT_FLG_FLG then TET_X = TET_X - 1 FLG = false end if RIGHT_FLG_FLG then TET_X = TET_X + 1 FLG = false end end TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X - 1)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X - 1)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X + 1)] = TET_COL_OLIGIN else if TET_X - 1 < 0.5 then TET_X = TET_X + 1 end if TET_X > 9.5 then TET_X = TET_X - 1 end if TET_COL_NOW[math.ceil(TET_Y + 2) * 10 + math.ceil(TET_X - 1)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 2) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y) * 10 + math.ceil(TET_X)] > 0 then hosei = 1 FLG = true if LEFT_FLG_FLG then TET_X = TET_X - 1 FLG = false end if RIGHT_FLG_FLG then TET_X = TET_X + 1 FLG = false end end TET_COL[math.ceil(TET_Y + 2 + hosei) * 10 + math.ceil(TET_X - 1)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 2 + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN end elseif TET_COL_OLIGIN == 7 then if TEX_ANG == 1 then if TET_X - 1 < 0.5 then TET_X = TET_X + 1 end if TET_X + 1 > 9.5 then TET_X = TET_X - 1 end if TET_COL_NOW[math.ceil(TET_Y) * 10 + math.ceil(TET_X + 1)] > 0 or TET_COL_NOW[math.ceil(TET_Y) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y) * 10 + math.ceil(TET_X - 1)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X - 1)] > 0 then hosei = 1 FLG = true if LEFT_FLG_FLG then TET_X = TET_X - 1 FLG = false end if RIGHT_FLG_FLG then TET_X = TET_X + 1 FLG = false end end TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X + 1)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X - 1)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X - 1)] = TET_COL_OLIGIN elseif TEX_ANG == 2 then if TET_X < 0.5 then TET_X = TET_X + 1 end if TET_X + 1 > 9.5 then TET_X = TET_X - 1 end if TET_COL_NOW[math.ceil(TET_Y + 2) * 10 + math.ceil(TET_X + 1)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 2) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y) * 10 + math.ceil(TET_X)] > 0 then hosei = 1 FLG = true if LEFT_FLG_FLG then TET_X = TET_X - 1 FLG = false end if RIGHT_FLG_FLG then TET_X = TET_X + 1 FLG = false end end TET_COL[math.ceil(TET_Y + 2 + hosei) * 10 + math.ceil(TET_X + 1)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 2 + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN elseif TEX_ANG == 3 then if TET_X - 1 < 0.5 then TET_X = TET_X + 1 end if TET_X + 1 > 9.5 then TET_X = TET_X - 1 end if TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X - 1)] > 0 or TET_COL_NOW[math.ceil(TET_Y) * 10 + math.ceil(TET_X + 1)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X + 1)] > 0 then hosei = 1 FLG = true if LEFT_FLG_FLG then TET_X = TET_X - 1 FLG = false end if RIGHT_FLG_FLG then TET_X = TET_X + 1 FLG = false end end TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X - 1)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X + 1)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X + 1)] = TET_COL_OLIGIN else if TET_X - 1 < 0.5 then TET_X = TET_X + 1 end if TET_X > 9.5 then TET_X = TET_X - 1 end if TET_COL_NOW[math.ceil(TET_Y) * 10 + math.ceil(TET_X - 1)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 2) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y + 1) * 10 + math.ceil(TET_X)] > 0 or TET_COL_NOW[math.ceil(TET_Y) * 10 + math.ceil(TET_X)] > 0 then hosei = 1 FLG = true if LEFT_FLG_FLG then TET_X = TET_X - 1 FLG = false end if RIGHT_FLG_FLG then TET_X = TET_X + 1 FLG = false end end TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X - 1)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 2 + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + 1 + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN TET_COL[math.ceil(TET_Y + hosei) * 10 + math.ceil(TET_X)] = TET_COL_OLIGIN end end end --固定のを表示 function Now_Show() --現在あるマス表示 for i = 1, 200 do --重なっていなければ local col_num = HOZI_COL[i] local col = 0 if col_num == 1 then col = Color.__new(1, 0, 0) elseif col_num == 2 then col = Color.__new(0, 1, 0) elseif col_num == 3 then col = Color.__new(0, 0, 1) elseif col_num == 4 then col = Color.__new(1, 1, 0) elseif col_num == 5 then col = Color.__new(1, 0, 1) elseif col_num == 6 then col = Color.__new(0, 1, 1) elseif col_num == 7 then col = Color.__new(0, 0, 0) else col = Color.__new(1, 1, 1) end --ASET._ALL_SetMaterialColorFromName(tostring(i), col) ASET.SetMaterialColorFromIndex(i + 3, col) end end
RECOMMEND
//指定したIDのGoogle Calendarから一週間分のイベント情報を取得してGoogle slidesの表に入力、それを画像としてGoogle Drive上の指定したIDの画像ファイルに出力するVRC Panorama用スクリプトです。 // //・使い方 //1. 下の指定するファイルについてを参考にファイルを作成し、updateImageFileIdにVRC Panorama参照用画像ファイルID、calendarIdにGoogleCalendarID、presentationIdスクリプトで編集されるスライドのIDを指定してください。 //2. 関数を選択からupdateCalendar()を選択、実行すると、表示→ログの一つ目に参照用画像ファイルのURLが出力されるので、unity上のVRC Panoramaのpanoramasのurlに指定してください。 // またVRC Panorama参照用画像ファイルに、スクリプトで編集されるスライドのサムネイルが出力されるので確認してください //3. 編集→現在のプロジェクトのトリガーより、updateCalendar()を自動起動するタイミングを設定してください。 // //・指定するファイルについて //スクリプトで編集されるスライド(presentationIdに指定するスライド)にはGoogle Drive上にスライド内の1ページ目に7×2の表を作成し、すべてのセルに値を入れてあるものを指定してください。 //指定するスライド例(https://qiita-image-store.s3.amazonaws.com/0/176380/c0a6ed8a-4cca-bbc6-eee2-981b01d78346.png) //VRC Panorama参照用画像ファイルは適当な画像をGoodle Driveにアップロードし、他の人から観覧できるようにしたものを指定してください。 //メイン関数 function updateCalendar(){ var updateImageFileId = "";//VRC Panorama参照用画像ファイルID var calendarId = '';//GoogleCalendarID var presentationId = "";//スクリプ
Unknown type code