Mirage Source http://miragesource.net/forums/ |
|
... http://miragesource.net/forums/viewtopic.php?f=201&t=2309 |
Page 1 of 6 |
Author: | William [ Fri Jul 20, 2007 9:26 pm ] |
Post subject: | ... |
I reached the max amount of controls on frmMirage... |
Author: | Lea [ Fri Jul 20, 2007 9:29 pm ] |
Post subject: | Re: ... |
Looks like it's time to start coding efficiently. |
Author: | Harry [ Fri Jul 20, 2007 9:35 pm ] |
Post subject: | Re: ... |
You have 255 controls? 0_O |
Author: | Dragoons Master [ Fri Jul 20, 2007 10:09 pm ] |
Post subject: | Re: ... |
I reached that a long time ago, just make objects arrays, like, don't use optGround, optMask, optAnim, optFringe, etc. Use optLayer(0), optLayer(1), optLayer(2), optLayer(3), optLayer(etc). And repeat the process... It takes a while xD |
Author: | Matt [ Fri Jul 20, 2007 10:17 pm ] |
Post subject: | Re: ... |
Dragoons Master wrote: I reached that a long time ago, just make objects arrays, like, don't use optGround, optMask, optAnim, optFringe, etc. Use optLayer(0), optLayer(1), optLayer(2), optLayer(3), optLayer(etc). And repeat the process... It takes a while xD That's pretty smart. Of course, you remove quite a bit of controls if you move the map editor. |
Author: | William [ Fri Jul 20, 2007 10:22 pm ] |
Post subject: | Re: ... |
Dave wrote: Looks like it's time to start coding efficiently. It has nothing to do with that. I have so many labels due to the item description, spell description and stats menu. And also because I have so many menus.. I dont have the map editor on frmMirage. Gotta remove many controls though, so making them into arrays just counts as 1. Nice |
Author: | Iluvlamp [ Fri Jul 20, 2007 10:23 pm ] |
Post subject: | Re: ... |
Simple: Draw everything on screen through DirectX =P |
Author: | bhenhur [ Fri Jul 20, 2007 10:26 pm ] |
Post subject: | Re: ... |
I know I'm suppose to be supportive of you William, but having 200+ controls on one form is ridiculas. I know i saw a lot of controls on the form when i looked at it but i didn't know it was 200+. |
Author: | Iluvlamp [ Fri Jul 20, 2007 10:28 pm ] |
Post subject: | Re: ... |
bhenhur wrote: I know I'm suppose to be supportive of you William, but having 200+ controls on one form is ridiculas. I know i saw a lot of controls on the form when i looked at it but i didn't know it was 200+. Well depending on what each control is doing, it shouldn't slow down an average computer these days, so in reality, it's only a mess, not a something that's bad... unless you're like me and hate messes. |
Author: | Robin [ Fri Jul 20, 2007 10:30 pm ] |
Post subject: | Re: ... |
Ew. I don't even have 50 >< |
Author: | bhenhur [ Fri Jul 20, 2007 10:39 pm ] |
Post subject: | Re: ... |
Iluvlamp wrote: bhenhur wrote: I know I'm suppose to be supportive of you William, but having 200+ controls on one form is ridiculas. I know i saw a lot of controls on the form when i looked at it but i didn't know it was 200+. Well depending on what each control is doing, it shouldn't slow down an average computer these days, so in reality, it's only a mess, not a something that's bad... unless you're like me and hate messes. lol, cant stand messy projects & code. I sometimes take a whole minute just to come up with the best name for a variable. |
Author: | William [ Sat Jul 21, 2007 12:59 am ] |
Post subject: | Re: ... |
My frmMirage is covered with labels, lets count some on it. I got: Spell Description: 28 Item Description: 16 Trade Menu: 26 Never mind, lets just look at this.. http://img442.imageshack.us/img442/5484/hmmiw5.png There are just so many things that I need on frmMirage. Guess I could put a few menus in other forms, but does it really matter. |
Author: | Iluvlamp [ Sat Jul 21, 2007 1:33 am ] |
Post subject: | Re: ... |
bhenhur wrote: Iluvlamp wrote: bhenhur wrote: I know I'm suppose to be supportive of you William, but having 200+ controls on one form is ridiculas. I know i saw a lot of controls on the form when i looked at it but i didn't know it was 200+. Well depending on what each control is doing, it shouldn't slow down an average computer these days, so in reality, it's only a mess, not a something that's bad... unless you're like me and hate messes. lol, cant stand messy projects & code. I sometimes take a whole minute just to come up with the best name for a variable. Oh god... I need to have the perfect variable names too... *type*.... *backspace*....*type*....*backspace*...etc If I really don't care I just use single letters =P William wrote: My frmMirage is covered with labels, lets count some on it. I got: Spell Description: 28 Item Description: 16 Trade Menu: 26 Never mind, lets just look at this.. http://img442.imageshack.us/img442/5484/hmmiw5.png There are just so many things that I need on frmMirage. Guess I could put a few menus in other forms, but does it really matter. Why not make all of the non-changing labels all object arrays. They'll only take up one count of control on the form even if you have like 100. |
Author: | Lea [ Sat Jul 21, 2007 1:42 am ] |
Post subject: | Re: ... |
Why don't you draw them in real time using DirectX. You'd shrink the EXE size a ton. |
Author: | Verrigan [ Sat Jul 21, 2007 2:19 am ] |
Post subject: | Re: ... |
There is also a Print() function... Haven't used it in a while, so I don't know the correct syntax... but you can print to the form in whatever font, in whatever location you wish. (Without a control) |
Author: | James [ Sat Jul 28, 2007 6:46 am ] |
Post subject: | Re: ... |
Ugh, yea, Plus adding so much to a form makes it huge which makes teh EKE bigger! Ahh! I removed a ton of forms and compressed them and the filesize of the EXE went down to like 2.83MB. |
Author: | William [ Sun Jul 29, 2007 1:24 pm ] |
Post subject: | Re: ... |
I will remove all the edit forms efore release. There aint really many controls I can get rid of o my frmMirage.. |
Author: | FrankJScott [ Mon Mar 04, 2024 4:39 pm ] |
Post subject: | Recommended Product Website |
Please try Google before asking about Best Product Guide 92af4fc |
Page 1 of 6 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |