From d302808d24c85864f3a7469177dfb8588ab5627f Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Mon, 19 Nov 2018 13:08:41 -0500 Subject: [PATCH] Add mip maps to importer --- .gitignore | 1 + .vs/Switch_Toolbox/v15/.suo | Bin 300032 -> 297472 bytes .../FileFormats/Texture/FTEX.cs | 4 +-- .../GUI/TextureUI/BNTXEditor.cs | 1 - .../BinaryTextureImporterList.Designer.cs | 4 ++- .../TextureUI/BinaryTextureImporterList.cs | 26 ++++++++++++++++-- 6 files changed, 30 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 59a3d509..9358f7bb 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ Release/ .vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide-shm .vs/Switch_Toolbox/v15/Server/sqlite3/storage.ide .vs/Switch_Toolbox/v15/.suo +.vs/Switch_Toolbox/v15/.suo diff --git a/.vs/Switch_Toolbox/v15/.suo b/.vs/Switch_Toolbox/v15/.suo index 5dec7181f66f761d3694c0da5229560f5bb47d44..d2cf4e1e7855a48ad3562df4195af88a44b5ff70 100644 GIT binary patch delta 1537 zcmb7@Z)jUp6u@)tyX{_Tvc9EV`o~(g*ws#BlD@UWNd;N68fr~Ksi?J7*R4`Y8Btz` z;Dk8#VXHybcf~7gj2K7g2Rqulk_W>LMoa0Z{#$geAEs_HQ2bCaplsTBZj+$>P{a$r zch0-_+;h)4_nzp4Bl?Nsyzd!HaVQpxj5QcQ*1tfi!I1BE{gv{gsrJ6VBo){Y6)Sab6yq^ z;!=*SR5TdbMjPl|0Un5hn|urWWE{GA@GQ7lwku=@5wHlfXwS5lL##dgrs3Li2lPrm z_2A;B{TEsgAj3vO7YwE6S&&8A|Ll4tmKY$q;K@saYGAUgl&rLA^J|mPzLIV;eI;<#TtYqD%zl!=aL=775%#whUSPt z;w_@TFlz_VQlhnr_h@AMZIB4(-<+WwUx(8}$sr)RBOnXEMLVWBLTt9Q*~mIgK8?;3=}?klL%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17RHt0_5( z*pgeLJ|`=RojUT`v}!ZZ&63j8Od(9h<93*+2)pMc(WiJ}yoh?Lt#k{GPOOOAyB6Z&{esf9fO?6y`ghrSv19(#Pog21>5?oO_ zzB$lyKv6yvdv|rp&onKecvY*8AQ{M`|<}x~ODf>Z2Rx(xk*0DnAYXDbb1#?RGItUx# zD%NQhKE)zt_ZAr5O>8wf_ws24BT&9BI_hgnR<+E}S9Kg=BRS{s|g@BB76D0w?u zu&*6`*S0gS5ol*cAUiCOWi)lLet;b^e1x5bUYU86U6g+uWp5b`3ATT1&nIkGwz2Cn z+p@0bK0D=<53;yb6f3In{Ug@sk!m9>koHC>9e#Pl`J#o!!d!lyNp~^#%eD&0GioCI z1nVi_->= 1; + if (num > 0) + ++MipmapNum.Value; + else + break; + } + MipmapNum.Maximum = MipmapNum.Value; } } + + private void BinaryTextureImporterList_Load(object sender, EventArgs e) + { + } + + private void MipmapNum_ValueChanged(object sender, EventArgs e) + { + SelectedTexSettings.MipCount = (uint)MipmapNum.Value; + } } }