dw=display_get_width()
dh=display_get_height()
if shape=0 {
if mouse_x>dw-74 and mouse_y>36 and mouse_x<dw-19 and mouse_y<55 {newxx=get_integer("X:",xx) xx=newxx
if xx=0 {xx+=1 instance_create(x,y,NoZero)} global.floors[geti,0]=xx}
if mouse_x>dw-74 and mouse_y>73 and mouse_x<dw-19 and mouse_y<92 {newyy=get_integer("Y:",yy) yy=newyy
if yy=0 {yy+=1 instance_create(x,y,NoZero)} global.floors[geti,1]=yy}
if mouse_x>dw-74 and mouse_y>108 and mouse_x<dw-19 and mouse_y<129 {newzz=get_integer("Z:",zz) zz=newzz
global.floors[geti,2]=zz}
if mouse_x>dw-74 and mouse_y>144 and mouse_x<dw-19 and mouse_y<163 { getex=get_integer("Model index-",tempgetex)
tempgetex=getex
if (geti mod 2)=0 global.floors[geti,2]=round(global.floors[geti,2])+getex/1000
if (geti mod 2)=1 global.floors[geti-1,2]=round(global.floors[geti-1,2])+getex/1000
}
if mouse_x>dw-74 and mouse_y>181 and mouse_x<dw-19 and mouse_y<200 {getuvX=get_string("Horizontal texture coordinate:",tempgetuvX)
uvX=real(getuvX) tempgetuvX=uvX
if (geti mod 2)=0 global.floors[geti,0]=round(global.floors[geti,0])+real(uvX)/1000
if (geti mod 2)=1 global.floors[geti-1,0]=round(global.floors[geti-1,0])+real(uvX)/1000
}
if mouse_x>dw-74 and mouse_y>216 and mouse_x<dw-19 and mouse_y<236 { getuvY=get_string("Vertical texture coordinate:",tempgetuvY)
uvY=real(getuvY) tempgetuvY=uvY
if (geti mod 2)=0 global.floors[geti,1]=round(global.floors[geti,1])+real(uvY)/1000
if (geti mod 2)=1 global.floors[geti-1,1]=round(global.floors[geti-1,1])+real(uvY)/1000}}
if shape=1 {
if mouse_x>dw-74 and mouse_y>36 and mouse_x<dw-19 and mouse_y<55 {newxx=get_integer("X:",xx) xx=newxx
if xx=0 {xx+=1 instance_create(x,y,NoZero)} global.wall[geti,0]=xx}
if mouse_x>dw-74 and mouse_y>73 and mouse_x<dw-19 and mouse_y<92 {newyy=get_integer("Y:",yy) yy=newyy
if yy=0 {yy+=1 instance_create(x,y,NoZero)} global.wall[geti,1]=yy}
if mouse_x>dw-74 and mouse_y>108 and mouse_x<dw-19 and mouse_y<129 {newzz=get_integer("Z:",zz) zz=newzz
global.wall[geti,2]=zz}
if mouse_x>dw-74 and mouse_y>144 and mouse_x<dw-19 and mouse_y<163 {tempgetex=getex getex=get_integer("Model index-",tempgetex)
if (geti mod 2)=0 global.wall[geti,2]=round(global.wall[geti,2])+getex/1000
if (geti mod 2)=1 global.wall[geti-1,2]=round(global.wall[geti-1,2])+getex/1000
}
if mouse_x>dw-74 and mouse_y>181 and mouse_x<dw-19 and mouse_y<200 {getuvX=get_string("Horizontal texture coordinate:",(global.wall[geti,0]-round(global.wall[geti,0])))
uvX=real(getuvX)
global.wall[geti,0]=round(global.wall[geti,0])+real(uvX)/1000}
if mouse_x>dw-74 and mouse_y>216 and mouse_x<dw-19 and mouse_y<236 {getuvY=get_string("Vertical texture coordinate:",(global.wall[geti,1]-round(global.wall[geti,1])))
uvY=real(getuvY)
global.wall[geti,1]=round(global.wall[geti,1])+real(uvY)/1000}}
if shape=2 {
if mouse_x>dw-74 and mouse_y>36 and mouse_x<dw-19 and mouse_y<55 {newxx=get_integer("X:",xx) xx=newxx
addxx=(global.triangle[geti,0]-round(global.triangle[geti,0]))*1000
if xx=0 {xx+=1 instance_create(x,y,NoZero)} global.triangle[geti,0]=round(xx)+addxx}
if mouse_x>dw-74 and mouse_y>73 and mouse_x<dw-19 and mouse_y<92 {newyy=get_integer("Y:",yy) yy=newyy
addyy=(global.triangle[geti,1]-round(global.triangle[geti,1]))*1000
if yy=0 {yy+=1 instance_create(x,y,NoZero)} global.triangle[geti,1]=round(yy)+addyy}
if mouse_x>dw-74 and mouse_y>108 and mouse_x<dw-19 and mouse_y<129 {newzz=get_integer("Z:",zz) zz=newzz
addzz=(global.triangle[geti,2]-round(global.triangle[geti,2]))
global.triangle[geti,2]=round(zz)+addzz}
if mouse_x>dw-74 and mouse_y>144 and mouse_x<dw-19 and mouse_y<163 {tempgetex=getex getex=get_integer("Model index-",tempgetex)
if (geti mod 3)=0 global.triangle[geti,2]=round(global.triangle[geti,2])+getex/1000
if (geti mod 3)=1 global.triangle[geti-1,2]=round(global.triangle[geti-1,2])+getex/1000
if (geti mod 3)=2 global.triangle[geti-2,2]=round(global.triangle[geti-2,2])+getex/1000}
if mouse_x>dw-74 and mouse_y>181 and mouse_x<dw-19 and mouse_y<200 {getuvX=get_string("Horizontal texture coordinate:",(global.triangle[geti,0]-round(global.triangle[geti,0])))
uvX=real(getuvX)
global.triangle[geti,0]=round(global.triangle[geti,0])+real(uvX)/1000}
if mouse_x>dw-74 and mouse_y>216 and mouse_x<dw-19 and mouse_y<236 {getuvY=get_string("Vertical texture coordinate:",(global.triangle[geti,1]-round(global.triangle[geti,1])))
uvY=real(getuvY)
global.triangle[geti,1]=round(global.triangle[geti,1])+real(uvY)/1000}} |