mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add borders to BitMap in BitMapEditor
This commit is contained in:
parent
74907876d3
commit
af48059e97
2 changed files with 50 additions and 4 deletions
|
|
@ -34,14 +34,25 @@
|
|||
#include "editor/plugins/editor_plugin.h"
|
||||
#include "scene/resources/bit_map.h"
|
||||
|
||||
class AspectRatioContainer;
|
||||
class TextureRect;
|
||||
|
||||
class BitMapEditor : public VBoxContainer {
|
||||
GDCLASS(BitMapEditor, VBoxContainer);
|
||||
|
||||
private:
|
||||
AspectRatioContainer *centering_container = nullptr;
|
||||
Control *outline_overlay = nullptr;
|
||||
TextureRect *texture_rect = nullptr;
|
||||
Label *size_label = nullptr;
|
||||
|
||||
Color cached_outline_color;
|
||||
|
||||
void _draw_outline();
|
||||
|
||||
protected:
|
||||
void _notification(int p_what);
|
||||
|
||||
public:
|
||||
void setup(const Ref<BitMap> &p_bitmap);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue