GUI 值检索

命令 0xac: 获取 GUI 变量#

ubyte string
变量 (Variable) 视图 ID (View ID)

请求某个 GUI 变量的值。视图 ID 通常类似于 "View #0",其中最后一位数字统计了仿真 GUI 中打开的(子)窗口数量。当取消最大化视图子窗口时,该 ID 会显示在视图标题栏中(这通常在打开新视图时自动发生)。

可以检索以下变量值,返回值的类型也在表中显示。

**可检索的 GUI 变量概览**
变量 (Variable) 值类型 (ValueType) 描述 (Description) Python 方法
zoom (0xa0) double 当前缩放级别(百分比) getZoom
offset (id 0xa1) 2D-position 当前可见网络部分的中心 getOffset
schema (id 0xa2) string 使用的可视化方案(例如 "standard" 或 "real world") getSchema
boundary (id 0xa3) 2D-polygon 可见网络的左下角和右上角 getBoundary
has view (id 0xa7) bool 给定 ID 的视图是否存在 hasView

响应 0xbc: GUI 变量#

ubyte string ubyte <return_type>
变量 (Variable) 视图 ID (View ID) 变量的返回值类型 (Return type of the variable) <VARIABLE_VALUE>

"命令 获取 GUI 变量" 的响应。