Ok. I've added it to the tracker.
In the interim, I would like to be able to simply change the values on the fly from the prefs screen. I managed to find the code section that allows me to add it to the prefs in
state.cpp and I just placed it into the General Input section.
Code: Select all
declareCategory ("General Input");
declareBool ("cycle", "Cyclic next/previous", false).
setTooltip ("When using next/previous functions at the last/first item of a "
"list go to the first/last item");
declareDouble ("MarkerShaftWidth", "Marker Shaft Width", 30.0).
setRange (0.001, 100.0);
declareDouble ("MarkerShaftBaseLength", "Marker Shaft Base Length", 70.0).
setRange (0.001, 100.0);
declareDouble ("MarkerHeadWidth", "Marker Header Width", 50.0).
setRange (0.001, 100.0);
declareDouble ("MarkerHeadLength", "Marker Header Length", 50.0).
setRange (0.001, 100.0);
I'm not sure how to get those values into apps/opencs/view/render/object.cpp, where they are currently declared as static constants. Can you give me a little guidance on how to proceed here? I'm an experienced coder but a bit rusty using C. I've spent the last 5 or 6 years working in Scheme and PHP, with just a little C++ here and there. I'm also very unfamiliar with the design of OpenMW project.
Thanks!