hi everyone, im writing a level editor in blitz using BCF 2.04 and im experiencing some issues where parts of gadgets will dissapear and I was wondering if there was any quick way to solve these issues. Also if there were a way i could fix it by just editing my source or the bcf source that would be much better since if modified bcf a bit and would have to do it all again if i downloaded the update. well here is the source of the section of code where the gadgets get all wierd (in this case its the UnitListBox and the TileUnitTeamComboBox that are giving me trouble)
Function CreateUnitWindow()
If BCF_Window(TileToolWindow)
BCF_MsgBox("Warning","You Can Not Open The Unit Editor With The Tile Editor Open",0)
Return
Else If BCF_Window(UnitWindow) = False
UnitWindow = BCF_CreateWindow(GraphicsWidth()/2-200,GraphicsHeight()/2-130,420,255,1,1,"Unit Tool Bar", True, True)
UnitSelectedTileLabel = BCF_CreateLabelText(UnitWindow,10,20,"Selected Tile = ",1,1)
BCF_CreateLabelText(UnitWindow,10,50,"Possible Units",1,1)
TileUnitListBox = BCF_CreateListBox(UnitWindow,250,80,150,120)
BCF_SelectedComboBoxValue(TileUnitTeamComboBox,team\Name$)
LastTileUnitTeamComboBoxValue$ = team\Name$
UnitListBox = BCF_CreateListBox(UnitWindow,10,80,150,120)
TileUnitTeamComboBox = BCF_CreateComboxBox(UnitWindow,200,20,200,50)
For team.Team = Each Team
BCF_AddComboBoxItem(TileUnitTeamComboBox, team\Name$)
Next
team = First Team
For u.Unit = Each Unit
If u\teamID = team\ID Then BCF_AddListBoxItem(UnitListBox,u\Name$ + " : H" + Handle(u))
Next
UnitSelectedLabel = BCF_CreateLabelText(UnitWindow,10,210,"Selected Unit = NONE",1,1)
BCF_CreateLabelText(UnitWindow,260,50,"Units In Current Tile",1,1)
UnitAddButton = BCF_CreateButton(UnitWindow,180,100,60,20," >> ")
UnitSubtractButton = BCF_CreateButton(UnitWindow,180,80+80,60,20," << ")
UnitPropertiesButton = BCF_CreateButton(UnitWindow,310,205,90,20,"Properties")
EndIf
End Function
thanks alot!!
ps is bcf 2.0 free or will i have to buy 3.0 anyway when i want to release my game/level editor?
|