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:
jeefo 2022-12-22 21:32:45 +03:00
commit 0a45ea6ad7
No known key found for this signature in database
GPG key ID: D85B0637366787C3
2 changed files with 24 additions and 0 deletions

View file

@ -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 "";