|
virtual void | draw (Compositor &) override |
| gets called once per frame. More...
|
|
virtual void | update (float dt_sec, const Controller &controller) override |
| gets called for once (per logical) frame. More...
|
|
virtual void | setup () override |
| gets called before this screen gets activated (which is at least once before the first draw or update call
|
|
virtual void | leave () override |
| gets called when the current screen is temporarily suspended
|
|
virtual IntegrationStatus | get_status () const override |
| Gives details about what the user is doing right now. More...
|
|
void | event (const SDL_Event &ev) |
|
void | update_keyboard (const Controller &controller) |
|
void | check_unsaved_changes (const std::function< void()> &action) |
|
void | quit_editor () |
|
void | reactivate () |
|
void | open_particle_directory () |
|
void | save (const std::string &filename, bool retry=false) |
|
void | save (Writer &writer) |
|
void | request_save (bool is_save_as=false, const std::function< void(bool)> &callback=[](bool was_saved){}) |
|
void | open (const std::string &filename) |
|
void | new_file () |
|
void | reload () |
| Reloads the particle object from the filename in m_filename. More...
|
|
◆ draw()
void ParticleEditor::draw |
( |
Compositor & |
compositor | ) |
|
|
overridevirtual |
gets called once per frame.
The screen should draw itself in this function. State changes should not be done in this function, but rather in update
Implements Screen.
◆ get_status()
Gives details about what the user is doing right now.
- Returns
- activity details for presence integrations
Implements Screen.
◆ reload()
void ParticleEditor::reload |
( |
| ) |
|
Reloads the particle object from the filename in m_filename.
If m_filename is empty, loads the default file (/particles/default.stcp)
◆ update()
void ParticleEditor::update |
( |
float |
dt_sec, |
|
|
const Controller & |
controller |
|
) |
| |
|
overridevirtual |
gets called for once (per logical) frame.
Screens should do their state updates and logic here
Implements Screen.
The documentation for this class was generated from the following files: