Wow, integrating some old code for window and control management to produce an interactive, 'dynamically generated' interface went better than expected... It still has some art and text from the old program but hey, the fundamentals are there right?
Screenshot.jpg
for those whom are curious, that window is made from a script file (this exact one as it where ):
Code:
#START#
NX_ComplianceFlag=NX10x,NX166-S,NX166-X,NX166-W
Visible=True
Position.X=200
Position.Y=300
Id=StarInfoWindow
Width=425
Height=150
BackgroundImage=data/NX166OUI/windowbackground.png
Controls=12
Control[1].Id=WindowName
Control[1].X=2
Control[1].Y=2
Control[1].Type=103
Control[1].Value=Star Information:
Control[1].ControlColour.R=255
Control[1].ControlColour.G=255
Control[1].ControlColour.B=0
Control[1].ControlColour.A=255
Control[2].Id=Star_Name
Control[2].X=200
Control[2].Y=20
Control[2].Type=103
Control[2].Value=XYZ
Control[2].ControlColour.R=255
Control[2].ControlColour.G=255
Control[2].ControlColour.B=0
Control[2].ControlColour.A=255
Control[3].Id=Star_Info_Name
Control[3].X=2
Control[3].Y=20
Control[3].Type=103
Control[3].Value=Star Name:
Control[3].ControlColour.R=255
Control[3].ControlColour.G=255
Control[3].ControlColour.B=0
Control[3].ControlColour.A=255
Control[4].Id=Star_Info_Resources
Control[4].X=2
Control[4].Y=34
Control[4].Type=103
Control[4].Value=Resources:
Control[4].ControlColour.R=255
Control[4].ControlColour.G=255
Control[4].ControlColour.B=0
Control[4].ControlColour.A=255
Control[5].Id=Star_Resources
Control[5].X=200
Control[5].Y=34
Control[5].Type=103
Control[5].Value=XYZ
Control[5].ControlColour.R=255
Control[5].ControlColour.G=255
Control[5].ControlColour.B=0
Control[5].ControlColour.A=255
Control[6].Id=Star_Info_Industry
Control[6].X=2
Control[6].Y=46
Control[6].Type=103
Control[6].Value=Industry :
Control[6].ControlColour.R=255
Control[6].ControlColour.G=255
Control[6].ControlColour.B=0
Control[6].ControlColour.A=255
Control[7].Id=Star_Industry
Control[7].X=200
Control[7].Y=46
Control[7].Type=103
Control[7].Value=XYZ
Control[7].ControlColour.R=255
Control[7].ControlColour.G=255
Control[7].ControlColour.B=0
Control[7].ControlColour.A=255
Control[8].Id=Star_Info_Economy
Control[8].X=2
Control[8].Y=58
Control[8].Type=103
Control[8].Value=Economy :
Control[8].ControlColour.R=255
Control[8].ControlColour.G=255
Control[8].ControlColour.B=0
Control[8].ControlColour.A=255
Control[9].Id=Star_Economy
Control[9].X=200
Control[9].Y=58
Control[9].Type=103
Control[9].Value=XYZ
Control[9].ControlColour.R=255
Control[9].ControlColour.G=255
Control[9].ControlColour.B=0
Control[9].ControlColour.A=255
Control[10].Id=Star_Info_Science
Control[10].X=2
Control[10].Y=70
Control[10].Type=103
Control[10].Value=Science :
Control[10].ControlColour.R=255
Control[10].ControlColour.G=255
Control[10].ControlColour.B=0
Control[10].ControlColour.A=255
Control[11].Id=Star_Science
Control[11].X=200
Control[11].Y=70
Control[11].Type=103
Control[11].Value=XYZ
Control[11].ControlColour.R=255
Control[11].ControlColour.G=255
Control[11].ControlColour.B=0
Control[11].ControlColour.A=255
Control[12].Id=Star_Upgrade
Control[12].X=2
Control[12].Y=100
Control[12].Width=360
Control[12].Height=18
Control[12].Type=101
Control[12].Value=Star Upgrade Options
Control[12].Action=NewWindow$data/StarUpgradeWindow.pcff1
Control[12].ControlColour.R=255
Control[12].ControlColour.G=255
Control[12].ControlColour.B=255
Control[12].ControlColour.A=255
#END#
Edit: Forgot to mention, dragging windows is ugly, and its clitchy but for such a short job, I'll call it progress
Bookmarks