Skip to content

Commit

Permalink
Merge branch 'teeworlds:master' into solofng
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon committed Nov 28, 2019
2 parents 63ee6bd + 2c492f2 commit 37f49da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/game/editor/popups.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ int CEditor::PopupGroup(CEditor *pEditor, CUIRect View)
}
}

// new tile layer
// new quad layer
View.HSplitBottom(10.0f, &View, &Button);
View.HSplitBottom(12.0f, &View, &Button);
static int s_NewQuadLayerButton = 0;
Expand All @@ -162,13 +162,13 @@ int CEditor::PopupGroup(CEditor *pEditor, CUIRect View)
return 1;
}

// new quad layer
// new tile layer
View.HSplitBottom(5.0f, &View, &Button);
View.HSplitBottom(12.0f, &View, &Button);
static int s_NewTileLayerButton = 0;
if(pEditor->DoButton_Editor(&s_NewTileLayerButton, "Add tile layer", 0, &Button, 0, "Creates a new tile layer"))
{
CLayer *l = new CLayerTiles(50, 50);
CLayer *l = new CLayerTiles(pEditor->m_Map.m_pGameLayer->m_Width, pEditor->m_Map.m_pGameLayer->m_Height);
l->m_pEditor = pEditor;
pEditor->m_Map.m_lGroups[pEditor->m_SelectedGroup]->AddLayer(l);
pEditor->m_SelectedLayer = pEditor->m_Map.m_lGroups[pEditor->m_SelectedGroup]->m_lLayers.size()-1;
Expand Down

0 comments on commit 37f49da

Please sign in to comment.