ocraft / ocraft-s2client

StarCraft II Client - Java library supported on Windows, Linux and Mac designed for building scripted bots and research using the SC2API.
MIT License
55 stars 15 forks source link

how can I cancel drawings. #49

Closed sakurawald closed 3 years ago

sakurawald commented 3 years ago

it's ok to use DebugDraw to draw graphics inside the game, while I can't find any function to erase or cancel the drawings before.

ocraft commented 3 years ago

https://github.com/ocraft/ocraft-s2client/blob/397cab9b7a9e522be317213ed464125d7abd04d7/ocraft-s2client-bot/src/main/java/com/github/ocraft/s2client/bot/gateway/DebugInterface.java#L240 - sending a new set of debug commands clears the previous ones.

sakurawald commented 3 years ago

https://github.com/ocraft/ocraft-s2client/blob/397cab9b7a9e522be317213ed464125d7abd04d7/ocraft-s2client-bot/src/main/java/com/github/ocraft/s2client/bot/gateway/DebugInterface.java#L240

  • sending a new set of debug commands clears the previous ones.

thanks, i am reading the javadoc currently. the projeict is a great design.

sakurawald commented 3 years ago

it seems i can't control every drawing independently. (sad