mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Allow some key binds in editor when GUI is hidden
This commit is contained in:
parent
daf83470cc
commit
89ca2cfe8b
|
@ -5108,6 +5108,12 @@ void CEditor::Render()
|
|||
if(m_ShowServerSettingsEditor && !m_ShowPicker)
|
||||
View.HSplitBottom(250.0f, &View, &ExtraEditor);
|
||||
}
|
||||
else
|
||||
{
|
||||
// hack to get keyboard inputs from toolbar even when GUI is not active
|
||||
ToolBar.HSplitTop(53.0f, &ToolBar, 0);
|
||||
ToolBar.Margin(-1000, &ToolBar);
|
||||
}
|
||||
|
||||
// a little hack for now
|
||||
if(m_Mode == MODE_LAYERS)
|
||||
|
@ -5160,11 +5166,14 @@ void CEditor::Render()
|
|||
|
||||
RenderBackground(StatusBar, ms_BackgroundTexture, 128.0f, Brightness);
|
||||
StatusBar.Margin(2.0f, &StatusBar);
|
||||
}
|
||||
|
||||
// do the toolbar
|
||||
if(m_Mode == MODE_LAYERS)
|
||||
DoToolbar(ToolBar);
|
||||
// do the toolbar
|
||||
if(m_Mode == MODE_LAYERS)
|
||||
DoToolbar(ToolBar);
|
||||
|
||||
if(m_GuiActive)
|
||||
{
|
||||
if(m_ShowEnvelopeEditor || m_ShowServerSettingsEditor)
|
||||
{
|
||||
RenderBackground(ExtraEditor, ms_BackgroundTexture, 128.0f, Brightness);
|
||||
|
|
Loading…
Reference in a new issue