Comments (4)
In fact, the class can't contain the polygon treeview editor as it contains some specific Sprite features such as copying the mask to the whole animation and so on...
from gdevelop.
A PolygonEditorHelper
class would be still nice I think :) It should provide as you said so feature so that it can be connected to a wxPanel (the poloygon editor helper should be agnostic regarding what is displayed inside the panel: it should just draw the polygon and the anchors, and handle events using its OnLeftDownEvent
method).
For the treeview, it may be excluded from this refactoring for now.. Maybe it could be included just after, and provide a separate method to customize the toolbar (so that the sprite editor can add its own buttons in the toolbar :) )
from gdevelop.
Currently working on it on my fork's polygon-edition-helper branch.
I've made the choice to pass almost all the required stuff (vector of polygons, offset, maximum polygon point position) in each functions (OnPaint, OnMouseLeftDown, OnMouseMove, ...) to make it work easily with the sprite editor (as the mask is got again and again in each editor's functions).
So the PolygonEditionHelper is restricted only to the drawing and to the point drag&drop without owning the polygons and even a pointer to the polygons.
I plan to do almost a similar thing for the Tree view but it'll come afterwards.
from gdevelop.
Excellent choice, I think it's the best choice to make for a helper class
(having methods that can be simply used by a call with all the necessary
argument). It will be easy to plug this helper class into the already
existing sprite editor !
Keep up the good work, let me know if you need help on a particular point :)
from gdevelop.
Related Issues (20)
- Snapping objects in editor
- Corrupted value in Scene editor's tooltip right after instance deletion HOT 1
- Fullscreen Detection broken HOT 4
- Adding the ability to specify Cordova and NPM plugin parameters in extension dependencies HOT 1
- Platformer Deacceleration shows the wrong tooltip HOT 1
- High-Speed Collision Detection Limitation HOT 3
- Crash while using an editor
- Toggle switches don't work in 5.3.196 HOT 2
- User Interface Sound Effects
- "Preload as" toggles for audio files in the Resources Panel do not behave the same as the "Preload as" event actions. HOT 1
- Crash while using an editor
- Crash while using an editor
- Electron 18.x.y has reached end-of-support
- Text related actions and conditions suggest objects that are not concerned
- [5-5.3.200 bug] (PLATFORMER OBJECT) is on platform (PLATFORM OBJECT) condition no longer works HOT 1
- Top-down Tanks Redux - Kenney
- Fantasy UI Borders - Kenney
- Crash when I try to export manually and one-click
- Icons can not be generated when project is a cloud project HOT 1
- Help fix AUR packages HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdevelop.