05-17-2017, 06:15 PM
(This post was last modified: 05-17-2017, 08:25 PM by Random Talking Bush.)
(05-16-2017, 05:29 AM)Sylk Wrote: Radiobuttons are not clickable because the length of the labels covers them.Unfortunately, it doesn't seem like that works correctly in 3DS Max 2010 (which is what I'm using). It appears as it should in 2013 and onward, though. Probably because the "offsets" option doesn't exist in 2010.
This code fix it and relooks ui a bit:
Code:rollout BFRESImporter "Wii U BFRES model importer" width:390 height:230
(
local r1=85,r2=10
label lblDisclaimer "This script was written by ItsEasyActually and Random Talking Bush, with some assistance from both Ploaj and Sylk. If you use it, consider giving us all thanks for this. If something doesn't work right, please contact RTB on The VG Resource (Random Talking Bush), Twitter, Tumblr or Steam (RandomTBush) so that any problems can be fixed." \
pos:[8,8] width:375 height:75
button btnLoad "Load BFRES" pos:[8,85] width:90 height:20
button btnImport "Import BFMDL" pos:[108,85] width:90 height:20
dropdownlist lstFMDL pos:[208,85] width:175 height:20 items:#()
label lblOptions "Options:" pos:[8,115] width:375 height:15
radiobuttons tglTexFormat "Texture format:" labels:#("DDS","PNG") height:10 columns:2 offsets:#([r1,-16],[r2,-16]) align:#left
radiobuttons tglUVLayers "UV layering:" labels:#("Split","Merge","No") height:10 columns:3 offsets:#([r1,-16],[r2,-16],[-r1+r2*2.5,-16]) align:#left
radiobuttons tglRigModel "Import rigging:" labels:#("Yes","No") height:10 columns:2 offsets:#([r1,-16],[r2+4,-16]) align:#left
radiobuttons tglLODs "Import LODs:" labels:#("No","Yes") height:10 columns:2 offsets:#([r1,-16],[r2+7,-16]) align:#left
checkbox tglDebug "Print debug information to Listener" pos:[8,BFRESImporter.height-20] width:200
label lblUpdate "(Updated 05/16/2017)" pos:[BFRESImporter.width-115,BFRESImporter.height-19] width:110
I'll try setting up something different for that.
(EDIT: Will this work? At least it's consistent between versions now. I'm also re-integrating the ability to import more than one BFMDL at once, as I've been asked to do a few months back.)