2023-10-18 13:53:17 +08:00
|
|
|
package memory
|
|
|
|
|
|
|
|
import (
|
2023-10-26 17:16:07 +08:00
|
|
|
"joylink.club/bj-rtsts-server/ts/protos/graphicData"
|
2023-10-18 13:53:17 +08:00
|
|
|
"joylink.club/rtsssimulation/fi"
|
|
|
|
)
|
|
|
|
|
2023-10-27 14:57:37 +08:00
|
|
|
// 操作esb按钮
|
2023-10-18 13:53:17 +08:00
|
|
|
func ChangeEsbButtonState(sim *VerifySimulation, mapId int32, btnId string, pressDown bool) {
|
|
|
|
uid := QueryUidByMidAndComId(mapId, btnId, &graphicData.EsbButton{})
|
|
|
|
if pressDown {
|
|
|
|
fi.PressDownButton(sim.World, uid)
|
|
|
|
} else {
|
|
|
|
fi.PressUpButton(sim.World, uid)
|
|
|
|
}
|
|
|
|
}
|