mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Copy tile layer color to brush and picker
This commit is contained in:
parent
0336b662c5
commit
0f6bd99d12
|
@ -2215,6 +2215,7 @@ void CEditor::DoMapEditor(CUIRect View)
|
||||||
Graphics()->MapScreen(x, y, x+w, y+h);
|
Graphics()->MapScreen(x, y, x+w, y+h);
|
||||||
m_TilesetPicker.m_Image = t->m_Image;
|
m_TilesetPicker.m_Image = t->m_Image;
|
||||||
m_TilesetPicker.m_TexID = t->m_TexID;
|
m_TilesetPicker.m_TexID = t->m_TexID;
|
||||||
|
m_TilesetPicker.m_Color = t->m_Color;
|
||||||
m_TilesetPicker.Render();
|
m_TilesetPicker.Render();
|
||||||
if(m_ShowTileInfo)
|
if(m_ShowTileInfo)
|
||||||
m_TilesetPicker.ShowInfo();
|
m_TilesetPicker.ShowInfo();
|
||||||
|
|
|
@ -179,6 +179,7 @@ int CLayerTiles::BrushGrab(CLayerGroup *pBrush, CUIRect Rect)
|
||||||
pGrabbed->m_TexID = m_TexID;
|
pGrabbed->m_TexID = m_TexID;
|
||||||
pGrabbed->m_Image = m_Image;
|
pGrabbed->m_Image = m_Image;
|
||||||
pGrabbed->m_Game = m_Game;
|
pGrabbed->m_Game = m_Game;
|
||||||
|
pGrabbed->m_Color = m_Color;
|
||||||
|
|
||||||
pBrush->AddLayer(pGrabbed);
|
pBrush->AddLayer(pGrabbed);
|
||||||
|
|
||||||
|
@ -206,6 +207,7 @@ int CLayerTiles::BrushGrab(CLayerGroup *pBrush, CUIRect Rect)
|
||||||
pGrabbed->m_TexID = m_TexID;
|
pGrabbed->m_TexID = m_TexID;
|
||||||
pGrabbed->m_Image = m_Image;
|
pGrabbed->m_Image = m_Image;
|
||||||
pGrabbed->m_Game = m_Game;
|
pGrabbed->m_Game = m_Game;
|
||||||
|
pGrabbed->m_Color = m_Color;
|
||||||
|
|
||||||
pBrush->AddLayer(pGrabbed);
|
pBrush->AddLayer(pGrabbed);
|
||||||
|
|
||||||
|
@ -239,6 +241,7 @@ int CLayerTiles::BrushGrab(CLayerGroup *pBrush, CUIRect Rect)
|
||||||
pGrabbed->m_TexID = m_TexID;
|
pGrabbed->m_TexID = m_TexID;
|
||||||
pGrabbed->m_Image = m_Image;
|
pGrabbed->m_Image = m_Image;
|
||||||
pGrabbed->m_Game = m_Game;
|
pGrabbed->m_Game = m_Game;
|
||||||
|
pGrabbed->m_Color = m_Color;
|
||||||
|
|
||||||
pBrush->AddLayer(pGrabbed);
|
pBrush->AddLayer(pGrabbed);
|
||||||
|
|
||||||
|
@ -271,6 +274,7 @@ int CLayerTiles::BrushGrab(CLayerGroup *pBrush, CUIRect Rect)
|
||||||
pGrabbed->m_TexID = m_TexID;
|
pGrabbed->m_TexID = m_TexID;
|
||||||
pGrabbed->m_Image = m_Image;
|
pGrabbed->m_Image = m_Image;
|
||||||
pGrabbed->m_Game = m_Game;
|
pGrabbed->m_Game = m_Game;
|
||||||
|
pGrabbed->m_Color = m_Color;
|
||||||
pBrush->AddLayer(pGrabbed);
|
pBrush->AddLayer(pGrabbed);
|
||||||
|
|
||||||
// copy the tiles
|
// copy the tiles
|
||||||
|
@ -299,6 +303,7 @@ int CLayerTiles::BrushGrab(CLayerGroup *pBrush, CUIRect Rect)
|
||||||
pGrabbed->m_TexID = m_TexID;
|
pGrabbed->m_TexID = m_TexID;
|
||||||
pGrabbed->m_Image = m_Image;
|
pGrabbed->m_Image = m_Image;
|
||||||
pGrabbed->m_Game = m_Game;
|
pGrabbed->m_Game = m_Game;
|
||||||
|
pGrabbed->m_Color = m_Color;
|
||||||
pBrush->AddLayer(pGrabbed);
|
pBrush->AddLayer(pGrabbed);
|
||||||
|
|
||||||
// copy the tiles
|
// copy the tiles
|
||||||
|
@ -314,6 +319,7 @@ int CLayerTiles::BrushGrab(CLayerGroup *pBrush, CUIRect Rect)
|
||||||
pGrabbed->m_TexID = m_TexID;
|
pGrabbed->m_TexID = m_TexID;
|
||||||
pGrabbed->m_Image = m_Image;
|
pGrabbed->m_Image = m_Image;
|
||||||
pGrabbed->m_Game = m_Game;
|
pGrabbed->m_Game = m_Game;
|
||||||
|
pGrabbed->m_Color = m_Color;
|
||||||
pBrush->AddLayer(pGrabbed);
|
pBrush->AddLayer(pGrabbed);
|
||||||
|
|
||||||
// copy the tiles
|
// copy the tiles
|
||||||
|
|
Loading…
Reference in a new issue