mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed some bugs in the editor
This commit is contained in:
parent
959a028e09
commit
c984efd3a9
|
@ -120,6 +120,9 @@ int LAYER_TILES::brush_grab(LAYERGROUP *brush, RECT rect)
|
|||
|
||||
void LAYER_TILES::brush_draw(LAYER *brush, float wx, float wy)
|
||||
{
|
||||
if(readonly)
|
||||
return;
|
||||
|
||||
//
|
||||
LAYER_TILES *l = (LAYER_TILES *)brush;
|
||||
int sx = convert_x(wx);
|
||||
|
@ -214,12 +217,15 @@ int LAYER_TILES::render_properties(RECT *toolbox)
|
|||
};
|
||||
|
||||
PROPERTY props[] = {
|
||||
{"Image", image, PROPTYPE_IMAGE, 0, 0},
|
||||
{"Width", width, PROPTYPE_INT_STEP, 1, 1000000000},
|
||||
{"Height", height, PROPTYPE_INT_STEP, 1, 1000000000},
|
||||
{"Image", image, PROPTYPE_IMAGE, 0, 0},
|
||||
{0},
|
||||
};
|
||||
|
||||
if(editor.map.game_layer == this)
|
||||
props[2].name = 0;
|
||||
|
||||
static int ids[NUM_PROPS] = {0};
|
||||
int new_val = 0;
|
||||
int prop = editor.do_properties(toolbox, props, ids, &new_val);
|
||||
|
|
Loading…
Reference in a new issue