Whee! First Post ^^;;
Ok so, my head developer hands me the source, and I open it, start learning things... ok going well so far. First Assignment: Separate Male/ Female Sheets for custom characters. Alright, load up modHandledata to find this:
Quote:
If FileExists("GFX\Heads.bmp") Then
frmNewChar.iconn(0).Picture = LoadPicture(App.Path & "\GFX\Heads.bmp")
End If
If FileExists("GFX\Bodys.bmp") Then
frmNewChar.iconn(1).Picture = LoadPicture(App.Path & "\GFX\Bodys.bmp")
End If
If FileExists("GFX\Legs.bmp") Then
frmNewChar.iconn(2).Picture = LoadPicture(App.Path & "\GFX\Legs.bmp")
End If
k, so I see that he is using Option(Radio) buttons for this and accodingly I rewrite the code to:
Quote:
if frmNewChar.optMale.value = true then
If FileExists("GFX\MaleHeads.bmp") Then
frmNewChar.iconn(0).Picture = LoadPicture(App.Path & "\GFX\MaleHeads.bmp")
End If
If FileExists("GFX\MaleBodys.bmp") Then
frmNewChar.iconn(1).Picture = LoadPicture(App.Path & "\GFX\MaleBodys.bmp")
End If
If FileExists("GFX\MaleLegs.bmp") Then
frmNewChar.iconn(2).Picture = LoadPicture(App.Path & "\GFX\MaleLegs.bmp")
End If
else
if frmNewChar.optFemale.value = true then
If FileExists("GFX\FemaleHeads.bmp") Then
frmNewChar.iconn(0).Picture = LoadPicture(App.Path & "\GFX\FemaleHeads.bmp")
End If
If FileExists("GFX\FemaleBodys.bmp") Then
frmNewChar.iconn(1).Picture = LoadPicture(App.Path & "\GFX\FemaleBodys.bmp")
End If
If FileExists("GFX\FemaleLegs.bmp") Then
frmNewChar.iconn(2).Picture = LoadPicture(App.Path & "\GFX\FemaleLegs.bmp")
End If
end if
End if
Great! Looks good... But wait, it only loads only the Male or only the Female sets at any given time, it won't let me use the radio and gender buttons to my advantage. HELP!