Posts tagged preview

Static Multidimensional Array!?


This is the first time I made a static multidimensional array, moreso, one with 3 dimensions. I’m still experimenting to find out how efficient this is, but so far it is proving to be extremely efficient as its structured so indexing it uses enum’s that correspond to the right data you want. There were some comments and stuff describing which block did what but I’m not allowed to discuss the project this is for so I had to remove them. Its also indented nicely but WordPress owned my indentation.

static Vector2[][][] StaticData=
{
new Vector2[][]
{
new Vector2[]
{
new Vector2(500,534),
new Vector2(582,534),
new Vector2(663,533),
new Vector2(746,534),
},
new Vector2[]
{
new Vector2(500,87),
new Vector2(582,87),
new Vector2(663,86),
new Vector2(746,87),
},
},
new Vector2[][]
{
new Vector2[]
{
new Vector2(582,445),
new Vector2(663,445),
new Vector2(582,561),
new Vector2(663,561),
},
new Vector2[]
{
new Vector2(582,50),
new Vector2(663,50),
new Vector2(582,165),
new Vector2(663,165),
},
}, Read the rest of this entry »

PropertyGrid Awesomeness

So I’ve learned some more about Class Attributes, before I was just using [Serialization()] but in order to customize the way the WinForm PropertyGrid control works, there are some nifty attributes you can tie your code to.

Can now change how the texture previews are rendered through the use of a property grid. Not much of a feat, but, I’m proud of it.

Texture Render Previewpreeleet


Video & Audio Comments are proudly powered by Riffly