Sorry guys. The remake on my laptop is nearly where I was at on my PC so I'll make a demo or something, just to see where I'm at.
Again, this is not a wip(though as soon as I get my computer I'll make one) for just my project, I was thinking more of a question and answer thing. So here's one:
I've been stuck on this for age's, how would you go about creating scripted events. I know CryEngine 2 Editor uses a macro based event editor but I don't know whats involved in macro's.
One Gui thing, does function look right(sorry for the odd question):
window = CreateWindow(0,0,screen width(),22,"Level Editor",0)
function CreateWindow(x,y,width,height,caption as string,style)
`Create Titlebar image(some of the images have to be hard coded unless I make them outside of DBP, not sure yet)
ink RGB( pstWnBarR + 31 , pstWnBarB + 32 , pstWnBarG + 32 ) , 0
line 0,0,width,0
ink RGB( pstWnBarR + 14 , pstWnBarB + 15 , pstWnBarG + 17 ) , 0
line 0,1,width,1
ink RGB( pstWnBarR , pstWnBarB , pstWnBarG ) , 0
box 0,2,width,height
get image new_Image("main.wndbar"),0,0,width,height
cls
array insert at bottom guiWindow(0)
itemslot = array count(guiWindow(0))
guiWindow(itemslot).position.x = x
guiWindow(itemslot).position.y = y
guiWindow(itemslot).size.width = width
guiWindow(itemslot).size.height = height
`title bar
guiWindow(itemslot).img = get_Image("main.wndbar")
`caption that appears in the title bar
guiWindow(itemslot).caption = caption
`style = 0 - WINDOW_FIXED - Window with titlebar and close button, but no min/max button and is not resizeable(Can't make a resizeable window so might remove this)
`style = 1 - WINDOW_SEMIFIXED - Window with titlebar and close button, with min/max button but not resizeable
guiWindow(itemslot).style = style
guiWindow(itemslot).handle = itemslot
returnhandle = guiWindow(itemslot).handle
endfunction returnhandle