graph: add adjust_height per request (resolves #388)
this command adjusts height (z-component) of all the graph nodes on map with specified height offset, negative height offset can be passed as parameter as well.
This commit is contained in:
parent
65884329dc
commit
0a45ea6ad7
2 changed files with 24 additions and 0 deletions
|
|
@ -124,6 +124,7 @@ private:
|
|||
int cmdNodeIterateCamp ();
|
||||
int cmdNodeShowStats ();
|
||||
int cmdNodeFileInfo ();
|
||||
int cmdAdjustHeight ();
|
||||
|
||||
private:
|
||||
int menuMain (int item);
|
||||
|
|
@ -187,6 +188,13 @@ public:
|
|||
return m_args[arg].int_ ();
|
||||
}
|
||||
|
||||
float floatValue (size_t arg) const {
|
||||
if (!hasArg (arg)) {
|
||||
return 0.0f;
|
||||
}
|
||||
return m_args[arg].float_ ();
|
||||
}
|
||||
|
||||
StringRef strValue (size_t arg) {
|
||||
if (!hasArg (arg)) {
|
||||
return "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue