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)
- Crash while using an editor HOT 1
- Shape Painter does not work on mobile devices if using high-quality anti-aliasing HOT 6
- Crash while using an editor HOT 1
- Crash while using an editor HOT 1
- Particle emitters don't always despawn when tank is empty, especially with low tank amounts. HOT 1
- Unify search bar position (top) on instance list
- In App Purchase is stuck after the purchase HOT 2
- [AdMob] Error occurs after 15-17 times of loading rewarded video
- Standardise Shift and Ctrl key presses across the App. HOT 1
- Crash while using an editor HOT 1
- Mouse Pointer Lock or TimeDelta() bug in Mac browser run games when scenery is moving.
- GDevelop exports corrupted AAB file HOT 2
- Hint is over the JS editor when expanded. HOT 1
- iOS crash "evaulating new THREE_ADDONS.EffectComposer" HOT 3
- eventsFunctionContext.getArgument() doesn't work with "Objects" argument type HOT 2
- An error occured in the Instance editor ... HOT 1
- Typo for 3D stuff HOT 1
- Raycast collision bug,skipping first collision iteration HOT 1
- GDevelop branding should be optional on leaderboards
- Layer effects not working properly on Mobile.
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.