is there anything similar to Unified Modeling Language written with plain ASCII text only instead of diagrams to describe objects and program flow? That can then be converted automatically into a diagram?
So I have quick question: I want to have a list of objects. by going through the list, I update each object. But by updating the object, the object changes it's own position in the list So that doesn't work.... Is there an elegant solution for this? Or should I just create a temporary list in which the order is changed and swap the normal list with the temporary, after i have updated all my objects? programming in c# by the way
@MattD I dont't fully understand what you mean, It's actually a list of windows, and i just want the one that has last been clicked to be the last item in the list
@berry so, typically, the "container" of the windows know which one was last clicked. and will be able to just move that item to the end of the list. this is pretty much the one time a linked list would be useful. or as @kikaimaru suggested. two lists one with the render order. which is also an elegant solution. i'd probably do both ;) but hey
anyway. i'd do a bounds check first. then if needed check which window i clicked on by sorting the list by z, then doing a bounds check from second highest down
well i wrote my own custom windows in XNA, and they don;t have controls yet... currently I only have windows that store textures within them. I am writing my own GUI. But i Think i will do a bounds check on ALL windows, instead of the second highest, so that if you are clicking within the window that has focus, I can immediatly use that mouselocation to determine of i am clicking any buttons or something
as thats what you're really doing here. you're using the order of the "windows" to determine what is selected. so a dropdown for example, draws over another component. it technically has a higher (or lower) z than its base
hehe. i'd probably try and use webkit these days for sure. i've written a few. i keep meaning to write one. but these days yeah. id be trying to use html/js
the main reason i'd write a UI would be for timeline animation