-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: Drawing functions for creating and modifying #5154
Comments
I tested the basics ( In the
When an unrecognized shape type is provided to
They should be told something more specific like For the shape types that take a JSON object of parameters (e.g.,
But I don't think the message would be clear enough even if translated. I'd rather it tell me what is missing, as is done when a field is mispelled:
If the
We should do our own bounds checking and provide a clear and succinct message if there is a problem. I would suggest enforcing that the Another thought, incompatible with the above, is that users would probably find it more intuitive to supply an array of coordinate pairs rather than a pair of coordinate arrays. E.g., allow one of these forms: {
...
"points": [[0, 0], [100, 0], [100, 100], [0, 100]]
...
} ...
"points": [{"x": 0, "y": 0}, {"x": 100, "y": 0}, {"x": 100, "y": 100}, {"x": 0, "y": 100}]
... |
Also some implementation notes. I see you've added support for
At the end of it all, it looks like campaigns don't store any I actually think that outcome is for the best, at least for now. I'm a little sketched by the idea of serializaing a 3rd party type into our campaign XML, especially for the sake of an experimental feature. Once it's in there we're stuck with it. So I would suggest we explicitly avoid that, and also represent paths more consistently. I.e., use |
No great shock. I hate Dtos. They are tres awkward.
Sheesh. You create one decent error message and suddenly you are expected to have made all error messages nice. Also, I dispute the cryptic. You have been clearly informed that "polygon-wonky" doesn't work. Additionally, you have been given an error type that is helpful for devs in bug-hunting. We actually need to cut down all the error messages to be less specific. This way we can recycle them instead of constantly adding new strings for translators to get confused about. Something like Am upgrading the error message.
Changed this to just spit out the first missing key.
You were just complaining about My error messages? Not sure I should be idiot-proofing code. Now returns a friendlier OoBE.
Sensible, but that's not how Java does it, and this is just exposing Java's shape constructors to macro coders. If someone wants to make variants that follow common sense, they will have to do that themselves. |
Having trouble with this.
|
Describe the Problem
Drawing functions are limited in that they only permit rudimentary modifcation of existing drawings generated through the GUI.
Functionality should also include the creation and modification of the geometry.
The Solution you'd like
Expand existing drawing functions to include generating and modifying the underlying geometry.
Alternatives that you've considered.
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: