You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
Add borders to BitMap in BitMapEditor
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user