Topic: Behavior variable "list of values" type

Hi,
I'm a programmer involved in a group of people that wants to write a FPS (more info at http://www.code43.net/?page_id=9), and during my "engine selecting and reviewing" duty I've recently came across your fantastic piece of software.
I'm amazed by the readability of your source, I can tell by reading it that your approach is very KISS-oriented, for this (and many other) reason I'm very inclined to present Maratis as our chosen engine!

Playing with the behavior class I was wondering:
Can I present a list of values for a MVariable of a MBehavior in the editor like the "shape" list under the Physics properties?

I have other questions but I don't want to engage you in a interrogation smile

Sorry if I wasn't clear, feel free to ask me for further explanations.


Many Thanks

Last edited by yuredd (2012-11-29 00:15:19)

Re: Behavior variable "list of values" type

Hi,
welcome, thank you for chosing Maratis ! : )
I recently heard out about KISS, and yes I totally feel connected to this idea.

About your question for a MVariable menu, I know what you mean, it's not possible now,
it will only be visible as a integer in the editor, but I did something like that for another software I do using MGui,
I'll try to implement it in Maratis too at some point (not sure when though).

Just pass a M_VARIABLE_UINT for now :
MVariable("shape", &m_shape, M_VARIABLE_UINT);

Later we'll implement an optional argument to MVariable that will looks like :
MVariable("shape", &m_shape, M_VARIABLE_UINT, "box,sphere,cone");

Keep in touch with the development from the google code page